PDA

View Full Version : 6 trigger flags I could use.



Archangel
04-24-2009, 10:40 PM
If someone could make these for me, it would much be appreciated.

Cross Beams
Hurricane Spin
Super Quake

Let me point out that numbers 3 should be the quake stun radius and not the impact with the charged hammer.

EDIT: Updated... 3 done, 3 to go...

Christian
04-25-2009, 02:48 PM
i thought zscript only lets us use 5 flags based on scripts.

pkmnfrk
04-25-2009, 05:44 PM
The flags aren't set aside for any particular purpose. The best way to use this would be to make FFCs that take the flag number as an argument. Something like:


ffc script PerilBeam {
void run (int flag, ...) {
...
}
}

Edit: That said, the beam attacks show up to scripts as ordinary sword beams, so until there's a means of telling them apart from ordinary sword beams, you can't create specific scripts for them.

Archangel
04-25-2009, 10:59 PM
if(Link->HP < 17 && Link->Item[103] = true){ ;)

EDIT: In case you're wondering, the above code line checks to see if you have no more then one full heart and have the peril beam scroll as well.

pkmnfrk
04-25-2009, 11:05 PM
There you go! I knew you could do it :)

Archangel
04-25-2009, 11:14 PM
Yeah, now I just need to figure out how to make it work? Any tips. :)

Archangel
04-26-2009, 02:40 PM
Perilbeam check, it's kind of buggy though.

import "std.zh"


ffc script PBeam_Flag{
void run(int combo, int power){
while(true){
if(Link->HP <= 16 && Link->Item[103] == true){
Screen->ComboF[combo] = 82 + power;
}
if(Link->HP > 16 || Link->Item[103] == false){
Screen->ComboF[combo] = 14;
}
Waitframe();
}
}
}

And yes I did it with the wooden sword on a wooden sword beam trigger. If you can fix it, it would be appreciated. :)

_L_
04-28-2009, 12:01 AM
Quake Hammer
Super Quake

Let me point out that numbers 5 and 6 should be the quake stun radius and not the impact with the charged hammer.

You can indirectly check for this by noting if Screen->Quake changes.

Archangel
04-28-2009, 01:20 AM
L...

You are a Divine Sensation. <-La Mulana reference

So test for quake changes, and test links position relative to the ffc for the radius check right?