I've read that you just put all your scripts into one file, but I always get an error message whenever I try to import the scripts file.
This is my current script file:
Code: Select all
include, plotscr.hsd
include, [Game name here].hsi
#----------------------------------------
#Allows you to run with Z
plotscript, on keypress handler, begin
if(hero is walking(me) == false) then(
set hero speed(me, 4)
if(key is pressed(key:Z)) then(
set hero speed(me, 10)
)
)
end
#----------------------------------------
#Teleports you to Ban Haven
plotscript, simple item teleport, begin
fade screen out
teleport to map (map:Ban Haven,11,4)
wait (1)
fade screen in
end
Code: Select all
ERROR: in script onkeypresshandler on line 10 in MQ.txt
if(key is pressed(key:Z)) then(
Unrecognised name key:z. It has not been defined as script, constant,
variable, or anything else
So I'm not sure what I'm doing wrong.
Thanks in advance.