Jump to content

Photo

problem importing script text file


  • Please log in to reply
2 replies to this topic

#1 ZebraStallion

ZebraStallion

    Follower of Destiny

  • Members

Posted 22 December 2007 - 03:02 PM

I'm trying to import a script from a text file using Tools > Scripts > import ASM FFC but can't get past the error I'm getting
"unable to parse instruction 1". icon_wacky.gif This is my first attempt at importing a script. Can anybody help? Thanks. icon_biggrin.gif


CODE

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);
        }
    }
}


#2 Plissken

Plissken

    What's with these homies dissing our girls?

  • Members

Posted 22 December 2007 - 03:46 PM

1. Open up Notepad
2. Copy & Paste the script into there.
3. "Save as" and when naming the file say nameoffile.z
4. Go to Compile ZScript in ZQ and then hit import and locate the file you just saved.
5. Then hit "Compile" and assign the script to a FFC slot.

#3 ZebraStallion

ZebraStallion

    Follower of Destiny

  • Members

Posted 22 December 2007 - 03:52 PM

Thank you SO much! That really helped me out! I didn't put ".z" at the end of the file. icon_lol.gif icon_biggrin.gif


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users