Jump to content

Photo

Sideview Ladder?


  • Please log in to reply
21 replies to this topic

#1 Cereal Guy

Cereal Guy

    Senior

  • Members
  • Location:Concepción, CHL

Posted 22 September 2012 - 02:28 PM

Someone knows a Sideview Ladder script? Several who are trying them and have lots of errors. Help

#2 accela2me

accela2me

    Illustrious

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

Posted 22 September 2012 - 09:37 PM

This scripts works very well for me:

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


The combo of the ladder must to be set up as type SCRIPT 1 and FLAG 99.

I'm not sure, but I think this script worked well together with another ladder script that I use too because of this flag 99.
Do a test and then tell me if there was any problem :)


#3 Teilyr

Teilyr

  • Members
  • Real Name:Adam
  • Location:Louisiana

Posted 22 September 2012 - 11:37 PM

If someone could confirm this, I'd be grateful.. Seems like a solid addition to the database. icon_smile.gif

#4 accela2me

accela2me

    Illustrious

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

Posted 23 September 2012 - 08:54 AM

I did a test file with the 2 ladder scripts that I have:
• sideview ladder script - a FFC script. place it at the top left of the screen.
• climbing script - a global script.

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



#5 Cereal Guy

Cereal Guy

    Senior

  • Members
  • Location:Concepción, CHL

Posted 23 September 2012 - 01:00 PM

Thanks accela2me, I will thank you when I finish my game .. in the credits

#6 accela2me

accela2me

    Illustrious

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

Posted 23 September 2012 - 01:50 PM

hehe, you're welcome, buddy icon_smile.gif

if you want other scripts, zepinho created a post with a large collection of scripts written by himself and by other people from this forum. worth checking out!

http://www.purezc.co...showtopic=53832

#7 Cereal Guy

Cereal Guy

    Senior

  • Members
  • Location:Concepción, CHL

Posted 23 September 2012 - 02:21 PM

Thank you, you would have the chance to make a script 2x1 items long?

#8 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 23 September 2012 - 02:48 PM

What exactly do you mean by that?

#9 Cereal Guy

Cereal Guy

    Senior

  • Members
  • Location:Concepción, CHL

Posted 23 September 2012 - 02:53 PM

An object of 2 Square... This

#10 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 23 September 2012 - 03:25 PM

What does that have to do with sideview ladders?

Edit: Never mind, I'll write it.
CODE
const int I_BIGCOIN = 0; //The big coin item
global script bigitems{
    void run(){
        while(true){
            for ( int i = Screen->NumItems(); i > 0; i-- ){
                item bigItem = Screen->LoadItem(i);
                if ( bigItem->ID != I_BIGCOIN ) continue;
                bigItem->TileHeight = 2;
                bigItem->HitHeight = 32;
            }
                        Waitframe();
        }
    }
}


#11 Cereal Guy

Cereal Guy

    Senior

  • Members
  • Location:Concepción, CHL

Posted 23 September 2012 - 04:05 PM

QUOTE(MoscowModder @ Sep 23 2012, 02:25 PM) View Post

What does that have to do with sideview ladders?

Edit: Never mind, I'll write it.
CODE
const int I_BIGCOIN = 0; //The big coin item
global script bigitems{
    void run(){
        while(true){
            for ( int i = Screen->NumItems(); i > 0; i-- ){
                item bigItem = Screen->LoadItem(i);
                if ( bigItem->ID != I_BIGCOIN ) continue;
                bigItem->TileHeight = 2;
                bigItem->HitHeight = 32;
            }
        }
    }
}



You could do a quest for example? I'm trying to use it and my screen freezes ZC. :/

#12 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 23 September 2012 - 07:38 PM

Forgot the old waitframe(). Updated ^^

#13 Cereal Guy

Cereal Guy

    Senior

  • Members
  • Location:Concepción, CHL

Posted 24 September 2012 - 03:17 PM

It proved, thanks, hopefully I serve!

#14 Cereal Guy

Cereal Guy

    Senior

  • Members
  • Location:Concepción, CHL

Posted 24 September 2012 - 03:30 PM

This is serious, I need a script that I use just for that link can not use objects or sword, but you can use the sideview ladder ... oh god, I'm in trouble!

#15 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 24 September 2012 - 04:05 PM

Go to the DMap editor and disable all the items you don't want him to use in that DMap.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users