[Trigger] Making this "WarClub" ability work...

Status
Not open for further replies.
Level 15
Joined
Jun 10, 2007
Messages
389
I know this is the JASS section but this does have JASS in it.

  • War Club
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to War Club
    • Actions
      • Custom script: local effect treeeffect
      • Wait 1.00 seconds
      • Unit - Remove War Club from (Triggering unit)
      • Unit - Add Carrying Tree to (Triggering unit)
      • Custom script: set treeeffect = AddSpecialEffectTarget("war3Imported\\TreeClub.mdl", GetTriggerUnit(), "right hand")
      • Wait 30.00 seconds
      • Custom script: call DestroyEffect(treeeffect)
      • Unit - Remove Carrying Tree from (Triggering unit)
      • Unit - Add War Club to (Triggering unit)
When I use this ability The Club model never shows up! I tried using .mdx in the custom script but no sucess.
 
I have no idea why this doesn't work, have you checked if your model is ok? And for the future, use "starts the effect of an ability" event instead of "begins casting an ability". I have read somewhere that event responses don't work after waits....I doubt that, but try to put a unit in a variable and use that variable after the wait, and see if it works
 
Status
Not open for further replies.
Back
Top