Jump to content

Photo

Sideview Ladder?


  • Please log in to reply
21 replies to this topic

#16 Cereal Guy

Cereal Guy

    Senior

  • Members
  • Location:ConcepciĆ³n, CHL

Posted 24 September 2012 - 04:09 PM

Oh sorry, I mean I do not attack any object neither up nor down ..

#17 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 24 September 2012 - 05:06 PM

CODE
const int CT_SIDEVIEWLADDER =142; //The combo type for the ladder combo change it as you need. By default it's the Script 1 combo type.

ffc script SideView_Ladder
{
    void run(){
        while (true){
            int underlink=ComboAt(Link->X+8, Link->Y+15);
            if (Screen->ComboT[underlink]==CT_SIDEVIEWLADDER){
                Link->Jump=0;
                Link->PressA = false;
                Link->InputA = false;
                Link->PressB = false;
                Link->InputB = false;
                    if (Link->InputUp){
                        if ( Screen->isSolid(Link->X+1, Link->Y-1) == false &&  Screen->isSolid(Link->X+8, Link->Y-1) == false &&  
                        Screen->isSolid(Link->X+14, Link->Y-1) == false){
                            Link->Y-=1;  
                        }
                    }
                    else if (Link->InputDown){
                        if ( Screen->isSolid(Link->X+1, Link->Y+1) == false &&  Screen->isSolid(Link->X+8, Link->Y+1) == false &&  
                        Screen->isSolid(Link->X+14, Link->Y+1) == false ){  
                            Link->Y+=1;
                        }
                    }
            }
        Waitframe();
        }
    }
}


#18 Cereal Guy

Cereal Guy

    Senior

  • Members
  • Location:ConcepciĆ³n, CHL

Posted 24 September 2012 - 08:03 PM

I have not noticed a difference, except this:

Link->PressA = false;
Link->InputA = false;
Link->PressB = false;
Link->InputB = false;


#19 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 24 September 2012 - 09:12 PM

Right. It keeps you from attacking on the ladder.

#20 bladeofjudgement

bladeofjudgement

    Newbie

  • Members

Posted 25 February 2013 - 11:51 AM

I have no idea what I'm doing wrong, I import and compile the script just fine and without error messages but it just won't work and so far it's the only script I use to get an idea how at all. I put a Freeform Combo with this script in the room, I set a tile combo with flag 99 in, not knowing for sure I also check the script options on the screen and the D-Map/Map in case this has to be on and still, it just won't freaking work. WHAT DO I WRONG?

#21 accela2me

accela2me

    Illustrious

  • Members
  • Real Name:Juliano
  • Location:Minas Gerais, Brazil

Posted 25 February 2013 - 04:09 PM

bladeofjudgement, I have a test file that uses exactly this script. you can use it as a reference to find the problem :)

https://dl.dropbox.c...eviewladder.zip


#22 bladeofjudgement

bladeofjudgement

    Newbie

  • Members

Posted 06 March 2013 - 06:11 PM

QUOTE(accela2me @ Feb 25 2013, 10:09 PM) View Post
bladeofjudgement, I have a test file that uses exactly this script. you can use it as a reference to find the problem icon_smile.gif

https://dl.dropbox.c...eviewladder.zip


I'll try that thank you.
Update:
Works perfectly fine now (though I still don't know why it wasn't) and I can live with the missing animation. It only would be nice if you could use an item or Sword while on it but thank you again.

Edited by bladeofjudgement, 11 March 2013 - 12:52 PM.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users