Could someone make me a script when you get the tunic, and when you start swimming, that you can only swim for 10 seconds. When 10 seconds is over, you drown and loose half a heart.
Swimming tunic script add-on
Started by
ZebraStallion
, Mar 09 2008 09:53 AM
7 replies to this topic
#1
Posted 09 March 2008 - 09:53 AM
#2
Posted 10 March 2008 - 03:20 PM
Well, you could easily attain a similar effect with just combo cycling, but you wouldn't be able to set the time at which the first heart is lost, since that would require resetting the animation when Link enters the water.
A shortcut to this script might be to reset the combo animation whenever Link enters the water. I'm not sure if you can script that event, but it'd make the task simpler if you can.
A shortcut to this script might be to reset the combo animation whenever Link enters the water. I'm not sure if you can script that event, but it'd make the task simpler if you can.
#3
Posted 10 March 2008 - 05:04 PM
I think scripting would be so much simpler. How hard can it be? I might even try to script this myself.
#4
Posted 11 March 2008 - 01:10 AM
Simple, get the lava script (or whatever it's called) and add a delay of 600 ticks after the ComboAt but before the effect bit, then add an else delay=0; If Link is not on the desired combo type, the timer resets.
#5
Posted 11 March 2008 - 06:20 PM
Then I would have to make an ffc for every time I have water.
#6
Posted 11 March 2008 - 06:23 PM
Yeah, I wouldn't do it like that.
A simple counter that checks 'if(Link->Action == LA_SWIMMING){' in the global script, then increments a variable for howeverlong, and then removes the flippers when it gets to the right time would be preferrable I'd say.
A simple counter that checks 'if(Link->Action == LA_SWIMMING){' in the global script, then increments a variable for howeverlong, and then removes the flippers when it gets to the right time would be preferrable I'd say.
#7
Posted 12 March 2008 - 05:26 PM
Can't you just say, Link->Action = LA_DROWNING instead of taking away the flippers?
#8
Posted 12 March 2008 - 05:27 PM
Urm...
Probably yes, good idea.
Probably yes, good idea.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users