PDA

View Full Version : Zelda Fourswords Battle script



bluedeath
05-23-2008, 03:45 PM
I am wondering if anyone could make a foursword adventure sword combo script if its possible, thanks!

Russ
05-23-2008, 04:24 PM
I've never played FSA. What exactly is the script supposed to do?

Gleeok
05-23-2008, 06:26 PM
ffc script idon'thaveacluewhatyourtalkingabout{
void what(){
if(vague>Rand(9)+rand/huh)what+=10;
else vague+=10000;
}
}

CJC
05-23-2008, 07:10 PM
I believe he means he wants the sword to swing in combo cycles. Four Swords had a few set combo cycles (Like stab stab slash spin, or whatever).

So pretty much (THIS IS MOCK CODE. DON'T PASTE THIS INTO YOUR QUEST!)

if(Link->InputDirection && Link->InputA && Swing==0){//I don't know what I'm doing, so this is just to help the veteran scripters.
Swing = 1;
Code that makes Link stab
Code that plays sound effect 1
}
else if(Link->InputDirection && Link->InputA && Swing==1){//Again, this is mock code, don't just paste this into your game
Swing = 2;
Code that makes Link stab
Code that plays sound effect 2
}
else if(Link->InputDirection && Link->InputA && Swing==2){
Swing = 3;
Code that makes Link slash
Code that plays sound effect 3
}
else if (Link->InputDirection && Link->InputA && Swing==3){
Code that makes Link spin attack
Code that plays sound effect 4
}
if (!Link->InputA && Waitframes(12)){//This is meant to detect a delay in "A" input. Since I don't know how to do it, best to wait for a veteran scripter to correct me.
Swing = 0;
}


The above WON'T work, but should help somebody more talented at this than I am get a start.
A separate set of if brackets would be needed for stationary attacks, of which the combo is slash slash backslash jumpslash (I believe).