Ladders in SIDE VIEW!! =O
#1
Posted 15 August 2010 - 08:14 AM
#2
Posted 15 August 2010 - 09:23 AM
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.
Came from this thread. Search function is your friend
#3
Posted 15 August 2010 - 10:17 AM
=.=' ok i MUST be a retard! i added it into the quest and it cant read something in line 3
Edited by Uindo_Ookami, 15 August 2010 - 10:22 AM.
#4
Posted 16 August 2010 - 01:53 PM
//global variables go here
bool hasHoverBoots = false;
bool onLadder = false;
global script Slot2
{
void run()
{
while(true)
{
Ladder();
Waitdraw();
LadderDir();
Waitframe();
}
}
void Ladder()
{
if(!ScreenFlag(SF_ROOMTYPE, 2))
return;
if(!ComboFI(Link->X + 8, Link->Y + 15, CF_LADDER))
{
if(onLadder)
{
Link->Item[I_HOVERBOOTS] = hasHoverBoots;
onLadder = false;
}
return;
}
if(!onLadder)
{
onLadder = true;
hasHoverBoots = Link->Item[I_HOVERBOOTS];
Link->Item[I_HOVERBOOTS] = false;
}
Link->Jump = 0;
Link->Z = 0;
Link->Dir = DIR_UP;
if(Link->InputDown)
{
Link->InputDown = false;
Link->Action = LA_WALKING;
if(!Screen->isSolid(Link->X, Link->Y + 16))
Link->Y++;
}
if(Link->InputUp)
{
Link->InputUp = false;
Link->Action = LA_WALKING;
if(!Screen->isSolid(Link->X, Link->Y - 1))
Link->Y--;
}
if(Link->InputLeft)
{
Link->InputLeft = false;
Link->Action = LA_WALKING;
if(!Screen->isSolid(Link->X - 1 , Link->Y))
Link->X--;
}
if(Link->InputRight)
{
Link->InputRight = false;
Link->Action = LA_WALKING;
if(!Screen->isSolid(Link->X + 16, Link->Y))
Link->X++;
}
}
void LadderDir()
{
if(onLadder)
Link->Dir = DIR_UP;
}
}
You could have looked though, it was only about three threads down in the forum and it wasn't like it had a cryptic name or anything.
#5
Posted 16 August 2010 - 06:55 PM
here that the error says
pass 1: parsing
pass 2: preprocessing
pass3: building symbol tables
tmp, line 22 error s10: function screenflag in undeclared
tmp, line 25 error s10: function combofi is undeclared
tmp, line 29 error s09: variable i_hoverboots is undeclared
tmp, line 38 error s09: variable i_hoverboots is undeclared
tmp, line 39 error s09: variable i_hoverboots is undeclared
tmp, line 44 error s09: variable dir_up is undeclared
tmp, line 49 error s09: variable la_walking is undeclared
tmp, line 56 error s09: variable la_walking is undeclared
tmp, line 63 error s09: variable la_walking is undeclared
tmp, line 70 error s09: variable la_walking is undeclared
tmp, line 79 error s09: variable dirup is undeclared
Edited by Uindo_Ookami, 16 August 2010 - 07:05 PM.
#6
Posted 16 August 2010 - 09:02 PM
at the top of the file.
#7
Posted 17 August 2010 - 12:25 PM
pass 1: parsing
pass 2: preprocessing
Pass 3: building symbol tables
pass 4: type-checking/completing function symbol tables/constant folding
std.zh, line 2220: error t17: cannot cast from, lweapon to eweapon
what does that mean?! o.0
#8
Posted 17 August 2010 - 12:31 PM
#9
Posted 17 August 2010 - 01:02 PM
YAY! =.=
ok...no moe errors but o.0 idk what to do now =.= im a retard? aren't i?
#10
Posted 18 August 2010 - 04:00 AM
#11
Posted 18 August 2010 - 02:48 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users