Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Zelda Fourswords Battle script

3 replies · 1,283 views · Started 23 May 2008

ffc script idon'thaveacluewhatyourtalkingabout{
void what(){
if(vague>Rand(9)+rand/huh)what+=10;
else vague+=10000;
}
}

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).