| 12-06-2007, 11:16 AM | #1 |
Alright. Does anyone have a list of spells that target trees individually and can be detected upon their casting? Or if making a valid target for a spell "tree" works, then let me know. I'm skeptical because the targets allowed for spells sometimes doesn't work for certain spells or certain targets. |
| 12-06-2007, 03:12 PM | #2 |
"Eat Tree" 'Aeat' is a single tree target spell that can be detected. "Warclub"? 'Agra' is another spell but I haven't tested whether this works. "Sentinel" 'Aesn'/'Aesr' works, but it has the owl as an side effect you can't get rid off and you can't target trees more than once. |
| 12-06-2007, 07:44 PM | #3 |
Eat Tree looks good. Warclub is iffy. Sentinel... Uh, that's actually a detectle spell and doesn't have the owl side effect if you remove the buffs and effects, amongst the SFX... But the not being able to target the tree more than once is a pain in the ass. So I'll use Eat Tree and just stop the destruction of the tree. (Stop the casting before it starts) |
| 12-07-2007, 05:55 AM | #4 |
harvest might be a good idea too :) but im not sure you can set any cooldown on it =\ |
| 12-07-2007, 06:21 PM | #5 |
JASS:function CallBack takes nothing returns nothing call SetDestructableInvulnerable( GetHandleDestructable( GetExpiredTimer( ), "d" ), false ) endfunction function Protect_Destructable takes destructable d returns nothing timer t = CreateTimer( ) call SetDestructableInvulnerable( d, true ) call SetHandleHandle( t, "d", d ) call TimerStart( t, 0, false, function CallBack ) set t = null endfunction You should use this function with the target tree so it won't die |
| 12-07-2007, 08:02 PM | #6 |
What exactly is the point of the timer...? I'll use Eat Tree, since I can just check for it's cast and then stop the caster, do the effect, etc. And don't say it can be 'taken advantage of'. If anyone actually has the speed, precision, and care to glitch it then I'd love to see it happen. |
| 12-07-2007, 08:30 PM | #7 |
If you stop the caster on the "Start the effect of an ability" you won't have cooldown and mana spent The timer call the callback function to make the tree vulnerable again |
| 12-07-2007, 10:24 PM | #8 |
Oh that's right, it won't. But if I make the tree invulnerable, won't that stop the ability from working (since the ability kills the tree)? |
| 12-07-2007, 11:52 PM | #9 |
yes, but you need to make him vulnerable again else it won't be allowed to target him again I'm telling this things to you because I have got experience making this map wich uses Force of Nature to base the spell |
| 12-08-2007, 12:14 AM | #10 |
Mkay, I'll give that a try. It looks reasonable, I've just never done work with destructables before, so I wouldn't know. |
