Oh sorry, I mean I do not attack any object neither up nor down ..
![Photo](https://www.purezc.net/forums/uploads/profile/photo-thumb-168841.jpg?_r=1438178373)
Sideview Ladder?
Started by
Cereal Guy
, Sep 22 2012 02:28 PM
21 replies to this topic
#16
Posted 24 September 2012 - 04:09 PM
#17
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();
}
}
}
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
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;
Link->PressA = false;
Link->InputA = false;
Link->PressB = false;
Link->InputB = false;
#19
Posted 24 September 2012 - 09:12 PM
Right. It keeps you from attacking on the ladder.
#20
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
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
https://dl.dropbox.c...eviewladder.zip
#22
Posted 06 March 2013 - 06:11 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
![icon_smile.gif](http://www.purezc.com/forums/public/style_emoticons/default/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