Simple improved candle script
Overview
Creator:
Mitsukara
Updated: 01 May 2014
Tags:
Item
Downloads: 53
|
View Script
Download Example (862.13 KB) |
Information
This is a very small item script that lets you make a better version of the candle weapon (for a level 3 candle upgrade, or similar idea), without needing to use any global scripts.
Description Setup Reviews Comments
This is a very small item script that lets you make a better version of the candle weapon (for a level 3 candle upgrade, or similar idea), without needing to use any global scripts. It shoots three flames in a straight line from where Link faces (similar to the regular candles), and they travel farther than the normal red and blue candle's flames (see the setup for how to adjust that).
Also, if the player taps the button quickly, additional flames can be fired to create a lot of fire at once (which gets pretty dangerous unless the rule "Link isn't hurt by own fire weapons" is checked... but that's up to the quest designer.).
This script can be attached a candle class item or a custom item class item and will still have mostly the same effects, but I recommend a candle item. If you want to, you could also attach it to a sword or wand or some other type of item, and they would shoots flames the same way (in addition to whatever they normally do).
If you put it on a custom item class item instead of an existing item class, you may want to add the line
If you do just use a candle-type item, however, it should also be noted that the regular built-in candle supports animations for stabbing and slashing (but the latter is only if you check 'slash' on the properties, and if Link learns the slash in your quest), so you could use that to show Link shooting the fires with a weapon animation if you're so inclined. The example quest demonstrates this feature. This makes candles handy for things like a wand, flamethrower, seed shooter, a poor person's pseudo-Cane of Somaria, etc.
Also, if the player taps the button quickly, additional flames can be fired to create a lot of fire at once (which gets pretty dangerous unless the rule "Link isn't hurt by own fire weapons" is checked... but that's up to the quest designer.).
This script can be attached a candle class item or a custom item class item and will still have mostly the same effects, but I recommend a candle item. If you want to, you could also attach it to a sword or wand or some other type of item, and they would shoots flames the same way (in addition to whatever they normally do).
If you put it on a custom item class item instead of an existing item class, you may want to add the line
Link->Action = LA_ATTACKING;right before "//The first flame", so that Link will animate like he's using an item. That's optional, however.
If you do just use a candle-type item, however, it should also be noted that the regular built-in candle supports animations for stabbing and slashing (but the latter is only if you check 'slash' on the properties, and if Link learns the slash in your quest), so you could use that to show Link shooting the fires with a weapon animation if you're so inclined. The example quest demonstrates this feature. This makes candles handy for things like a wand, flamethrower, seed shooter, a poor person's pseudo-Cane of Somaria, etc.



