Jump to content

Photo

A quick question


  • Please log in to reply
8 replies to this topic

#1 ZebraStallion

ZebraStallion

    Follower of Destiny

  • Members

Posted 29 January 2008 - 08:00 PM

How do I make it so this script is activated when you press L instead of A?


Signpost script:

CODE
//remove this line if you already have a script file.
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);
        }
    }
}


thanks!




#2 Zephlon

Zephlon

    Experienced Forumer

  • Members

Posted 29 January 2008 - 08:16 PM

Easy. Just change all instances of Link->InputA to Link->InputL.

#3 ZebraStallion

ZebraStallion

    Follower of Destiny

  • Members

Posted 30 January 2008 - 10:03 AM

I tried that, and unfortunately, it didn't work. I found 2" input A's." And I changed them both to "L." Maybe I missed one.

#4 Russ

Russ

    Caelan, the Encouraging

  • Administrators
  • Location:Washington

Posted 30 January 2008 - 04:08 PM

You know, I have never been able to get that particular script to work. I know Joe123 got a sign post script to work in his two week quest. Maybe you could ask him for it (with it being edited to change the button to "L").

#5 ZebraStallion

ZebraStallion

    Follower of Destiny

  • Members

Posted 30 January 2008 - 04:27 PM

I got the script to work and everything, I just wanted it to work with "L" instead of "A."
(If that's what you meant.)

#6 Joe123

Joe123

    Retired

  • Members

Posted 30 January 2008 - 04:31 PM

Go into notepad, and go into the 'find and replace' tool.
Type in 'InputA' in find and 'InputL' in replace.

Then press 'Replace All' (well, not if you have other scripts in the file).

There's nothing else to it.


I think there's only two instances of 'Link->InputA' in the script anyway...

#7 ZebraStallion

ZebraStallion

    Follower of Destiny

  • Members

Posted 30 January 2008 - 05:23 PM

Okay. I will do that. Thanks! icon_biggrin.gif

#8 ZebraStallion

ZebraStallion

    Follower of Destiny

  • Members

Posted 30 January 2008 - 06:27 PM

It worked! icon_thumbsup.gif

#9 Joe123

Joe123

    Retired

  • Members

Posted 30 January 2008 - 06:45 PM

Good.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users