Jump to content

Photo

Scripting Problem


  • Please log in to reply
1 reply to this topic

#1 LinkFan64

LinkFan64

    Newbie

  • Banned
  • Real Name:Connor
  • Location:England, UK, Old Skelmersdale

Posted 18 September 2010 - 09:57 AM

Okay, I made a script sign here it is> import "std.zh"
ffc script sign {
void run(int m) {
while(true) {
while(Link->X < this->X - 8 || Link->X > this->X + 24 || Link->Y < this->Y || Link->Y > this->Y + 24 || Link->Dir != DIR_UP || !Link->InputA) {
Waitframe();
}
Link->InputA = false;
Screen->Message(m);

while(Link->X >= this->X - 8 && Link->X <= this->X + 24 && Link->Y >= this->Y && Link->Y <= this->Y + 24 && Link->Dir == DIR_UP) {
Waitframe();
}

Screen->Message(0);
}
}
}

I went through all the process of scripting, then when it said OK then I pressed OK again going back to my ZQuest, the sign wasn't there....?! Anyone who can help me!

--LinkFan64(Pancake)

#2 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 19 September 2010 - 02:24 PM

I'm pretty sure the arguments (int m) can be used like this: "ffc script sign(int m)"

It would also help to add code formatting and indentation to your forum post.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users