A script request thread
#31
Posted 28 February 2008 - 02:20 AM
#32
Posted 28 February 2008 - 12:04 PM
Are you putting water combos and the script together?
#33
Posted 28 February 2008 - 01:41 PM
#34
Posted 28 February 2008 - 02:08 PM
#35
Posted 28 February 2008 - 02:11 PM
Edit: for some reason or other, every other tile was made walkable And I did not to do that. But with animating tiles I have been have problems with them changing on me. So I guess its a bug and I will report it back at agn then. Sorry
Edited by ennonfenom, 28 February 2008 - 02:18 PM.
#36
Posted 28 February 2008 - 02:16 PM
Well I don't really see how it can have anything to do with the script if it's not even applied to the screen...
Are you sure it isn't?
#37
Posted 28 February 2008 - 02:19 PM
#38
Posted 28 February 2008 - 05:07 PM
#39
Posted 28 February 2008 - 05:13 PM
#40
Posted 28 February 2008 - 05:17 PM
#41
Posted 28 February 2008 - 05:22 PM
#42
Posted 28 February 2008 - 05:31 PM
I can't remember where it'd be best to look for it.
#43
Posted 28 February 2008 - 05:45 PM
import "std.zh"
ffc script deepwater{
void run(){
int x; int y; int loc;
bool bootson; int btimer;
bool stchk; bool fhchk;
int framedelay;
int speed = 2;
int flg = 98; // 35 is centre statue, change it to something else if you want.
int boots = 55; // set here the item ID number of your boots item
int s = 1; // set here the SFX ID that you want to play when Link equips the boots.
int swimLTM = 123; // set here the item ID number of the LTM item that makes link look like he's swimming
while(true){
x = Link->X+8; y = Link->Y+8;
loc = ComboAt(x,y);
if(Link->InputL && Link->Item[boots] && btimer == 0){
if(s != 0)Game->PlaySound(s);
bootson = !bootson;
btimer = 20;
}
if(Screen->ComboF[loc] == flg || Screen->ComboI[loc] == flg){
if(fhchk) fhchk = false;
if(!stchk){
Game->PlaySound(55);
stchk = true;
}
if(!bootson){
Link->InputA = false;
Link->InputB = false;
if(!Link->Item[swimLTM]) Link->Item[swimLTM] = true;
}else{
if(Link->Item[swimLTM]) Link->Item[swimLTM] = false;
}
if(!bootson){speed = 2; Trace(speed);}
else{speed = 1; Trace(speed);}
if(Link->Action != LA_FROZEN && Link->Action != LA_ATTACKING){
if(Link->InputLeft && Link->Dir == 2){
if(framedelay == speed){Link->X = Link->X+1; framedelay = 0;}
else framedelay++;
}
if(Link->InputRight && Link->Dir == 3){
if(framedelay == speed){Link->X = Link->X-1; framedelay = 0;}
else framedelay++;
}
if(Link->InputUp && Link->Dir == 0){
if(framedelay == speed){Link->Y = Link->Y+1; framedelay = 0;}
else framedelay++;
}
if(Link->InputDown && Link->Dir == 1){
if(framedelay == speed){Link->Y = Link->Y-1; framedelay = 0;}
else framedelay++;
}
}
}else{
if(Link->Item[swimLTM]) Link->Item[swimLTM] = false;
if(stchk) stchk = false;
if(!fhchk){
Game->PlaySound(55);
fhchk = true;
}
}
if(btimer > 0) btimer --;
Waitframe();
}
}
}
#44
Posted 01 March 2008 - 10:36 PM
#45
Posted 02 March 2008 - 05:31 AM
When are you going?
I might be able to do it tomorow evening, but I am very busy today I'm afraid.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users