Climbing ladders
Started by
Weasels
, Jan 22 2009 07:24 PM
8 replies to this topic
#1
Posted 22 January 2009 - 07:24 PM
I would really appreciate getting a script that allows you to climb ladders, with animations like he is climbing, to replace the slow walk thing! It would be cool if It didnt only work on ladders and also on vines and junk, and it only has to be a two frame animation. any help on this would be greatly appreciated!
#3
Posted 22 January 2009 - 09:09 PM
The two climbing scripts that I know of...
Climbing Script by Joe123 (This is the same thread that Blaman linked to, but goes to the post containing the last updated version.)
Sidescroll Ladder Script by Pkmnfrk
I have no idea which one works better, I'll leave that to you to decide.
Climbing Script by Joe123 (This is the same thread that Blaman linked to, but goes to the post containing the last updated version.)
Sidescroll Ladder Script by Pkmnfrk
I have no idea which one works better, I'll leave that to you to decide.
#4
Posted 23 January 2009 - 04:19 AM
CODE
const int F_LADDER = 98;
bool ComboFI(int x,int y,int combotype){ if(Screen->ComboF[ComboAt(x,y)] == combotype || Screen->ComboI[ComboAt(x,y)] == combotype) return true;
}
global script Slot_2{
void run(){
while(true){
//other global functions go here...
Climbing(true);
Waitdraw();
Climbing(false);
Waitframe();
}
}
//Climbing functions
void Climbing(bool before){
if(before){
if(OnLadder()){
Link->InputA = false;
Link->InputB = false;
Link->InputL = false;
}
}else{
if(OnLadder()) Link->Dir = 0;
}
}
//Check whether Link is on a ladder combo
bool OnLadder(){
if(ComboFI(Link->X+8,Link->Y+8,F_LADDER) && Link->Z == 0) return true;
}
}
This script is what you want. It turns all flag 98's (or you can change the flag at the top if you want) in the game into ladders. All you have to do is set it as your global script.
Credit goes to it's creator Joe123.
Edited by Christian, 23 January 2009 - 04:25 AM.
#5
Posted 23 January 2009 - 11:25 AM
I have no idea which one works better, I'll leave that to you to decide.
Well, they're for different things.
Mine makes a top-down 'ladder'; where Link will always face upwards whilst walking on it, and pkmnfrk's creates a side-view ladder; so that you can climb upwards in sideview gravity areas.
#6
Posted 23 January 2009 - 10:46 PM
Perfect! thanks a million guys!
#7
Posted 25 January 2009 - 12:06 PM
Ok, I'm having trouble with this script. I run it through the compiler and it gives me this:
What does this mean? I'm using the script Chistian posted on Beta 923.
QUOTE
Pass 1: Parsing
Pass 2: Preprocessing
Pass 3: Building Symbol Tables
TMP, Line 5: Error S10:Function Comboat is undeclared.
TMP, Line 5: Error S10:Function Comboat is undeclared.
Pass 2: Preprocessing
Pass 3: Building Symbol Tables
TMP, Line 5: Error S10:Function Comboat is undeclared.
TMP, Line 5: Error S10:Function Comboat is undeclared.
What does this mean? I'm using the script Chistian posted on Beta 923.
#8
Posted 25 January 2009 - 12:50 PM
Make sure you have
CODE
import "std.zh"
at the top of your script file, and that all of your scripts are in the same file.
#9
Posted 25 January 2009 - 01:20 PM
Huzzah! It worked. Thanks!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users