Jump to content

Photo

Sign Warp Script?


  • Please log in to reply
5 replies to this topic

#1 Dawnlight

Dawnlight

    My name is NOT Jason!

  • Members
  • Real Name:Justin
  • Location:Chicago, IL

Posted 05 August 2009 - 10:30 AM

Hey guys, I need a script which is extremely similar to the signpost script, but instead of reading a sign to make a text box appear, you warp.

Thanks!

#2 Christian

Christian

    Summoner

  • Members
  • Real Name:Chris
  • Location:New Jersey

Posted 05 August 2009 - 10:54 AM

You mean when you press "A" in front of the FFC it warps to the given screen?

#3 Dawnlight

Dawnlight

    My name is NOT Jason!

  • Members
  • Real Name:Justin
  • Location:Chicago, IL

Posted 05 August 2009 - 11:49 AM

Exactly.

#4 Christian

Christian

    Summoner

  • Members
  • Real Name:Chris
  • Location:New Jersey

Posted 05 August 2009 - 12:32 PM

CODE


const int CMB_AUTOWARPA = 0; //enter here the combo i.d number of a transparent combo with an Autowarp(A) combotype.

ffc script Signpost_Warp{
    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 || Link->Z != 0) Waitframe();
            Link->InputA = false;
            this->Data = CMB_AUTOWARPA;
            Waitframe();
        }
    }
}



Try that and see if it works. Note that you need to set the screen's sidewarp data on the screen the warp signpost is.

If with the autowarp combotype doesn't work then I'll try to warp link using another method. But try that first.

Edited by Christian, 05 August 2009 - 02:02 PM.


#5 Plissken

Plissken

    What's with these homies dissing our girls?

  • Members

Posted 05 August 2009 - 08:29 PM

Why not just Link->Warp() him, no need for an autowarp combo. Then you can use that 'm' variable that's randomly in void run(). icon_razz.gif

#6 Christian

Christian

    Summoner

  • Members
  • Real Name:Chris
  • Location:New Jersey

Posted 05 August 2009 - 11:12 PM

Oh right! Forgot to remove that unnesesary variable since it serves no purpose at all. Thing was, i was going to add in the string as well before the warp, but instead, I removed the string line but also forgot to remove that arguments variable.

Link->Warp will work yes, but it warps using insta-warp and it's pretty much kind of ugly really. Although, i can draw a black rectangle to cover up the screen while he warps simulating an "insta-warp with backout effects" warp. Wouldn't be that diificult at all.

Edited by Christian, 05 August 2009 - 11:30 PM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users