Igor_Z
You can change this now in User CP.
- Reaction score
- 61
I have a problem with a spell called whiplash.
Description:
So I based the main spell that the hero has of Evasion with all fields set to 0.
I made a Dummy spell based on Critical Strike with never miss = true.
I used a spell book to hide the dummy spell.
P.S: I disable the spellbook in another trigger so don't comment on that.
Triggers:
In my opinion, here is the problem:
The spell book ability is removed instantly before the damage from the critical strike is dealt...
I can trigger the whole spell without using the critical strike dummy ability but I want my hero to attack with different missle art on the fifth attack.
Any idea how to fix this spell?
Description:
The Mamba is able to increase her base damage and unleash devastating attacks that damage multiple enemies. After 5 successful attacks the mamba will have a 100% chance to deal a 1.25x/1.5x/1.75x/2x critical strike and apply 25/50/75/100% splash damage in radius of 175.
So I based the main spell that the hero has of Evasion with all fields set to 0.
I made a Dummy spell based on Critical Strike with never miss = true.
I used a spell book to hide the dummy spell.
P.S: I disable the spellbook in another trigger so don't comment on that.
Triggers:
Trigger:
- Whiplash Add at beginning
- Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
- Actions
- Set W_TempGroup = (Units in (Playable map area))
- Unit Group - Pick every unit in W_TempGroup and do (Actions)
- Loop - Actions
- Trigger - Add to Whiplash Add <gen> the event (Unit - (Picked unit) Takes damage)
- Trigger - Add to Whiplash Remove <gen> the event (Unit - (Picked unit) Takes damage)
- Unit Group - Add (Picked unit) to W_TakeDMG_Group
- Loop - Actions
- Custom script: call DestroyGroup(udg_W_TempGroup)
- Custom script: call DestroyTrigger(gg_trg_Whiplash_Add_at_beginning)
- Events
Trigger:
- Whiplash DS Add
- Events
- Unit - A unit enters (Playable map area)
- Conditions
- ((Triggering unit) is in W_TakeDMG_Group) Equal to False
- Actions
- Unit Group - Add (Triggering unit) to W_TakeDMG_Group
- Trigger - Add to Whiplash Add <gen> the event (Unit - (Triggering unit) Takes damage)
- Trigger - Add to Whiplash Remove <gen> the event (Unit - (Triggering unit) Takes damage)
- Events
Trigger:
- Whiplash Add
- Events
- Conditions
- ((Damage source) is an illusion) Equal to False
- (Level of Whiplash for (Damage source)) Greater than 0
- Actions
- Trigger - Turn off (This trigger)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- W_Attacks Equal to 4
- W_Added Equal to False
- Then - Actions
- Unit - Add Spell Book (Whiplash) to (Damage source)
- Unit - Set level of Whiplash (Dummy) for (Damage source) to (Level of Whiplash for (Damage source))
- Set W_Added = True
- Else - Actions
- Set W_Attacks = (W_Attacks + 1)
- If - Conditions
- Trigger - Turn on (This trigger)
Trigger:
- Whiplash Remove
- Events
- Conditions
- W_Attacks Equal to 4
- ((Damage source) is an illusion) Equal to False
- (Level of Whiplash for (Damage source)) Greater than 0
- (Level of Whiplash (Dummy) for (Damage source)) Greater than 0
- Actions
- Trigger - Turn off (This trigger)
- Set W_Caster = (Damage source)
- Set W_Target = (Triggering unit)
- Set W_DT = (Damage taken)
- Set W_TP = (Position of W_Target)
- Set W_Group = (Units within 175.00 of W_TP matching ((((Matching unit) belongs to an ally of (Owner of W_Caster)) Equal to False) and ((Matching unit) Not equal to W_Target)))
- Unit Group - Pick every unit in W_Group and do (Actions)
- Loop - Actions
- Unit - Cause W_Caster to damage (Picked unit), dealing W_DT damage of attack type Hero and damage type Normal
- Loop - Actions
- Set W_Attacks = 0
- Set W_Added = False
- Set W_DT = 0.00
- Unit - Remove Spell Book (Whiplash) from W_Caster
- Custom script: set udg_W_Caster = null
- Custom script: set udg_W_Target = null
- Custom script: call RemoveLocation(udg_W_TP)
- Custom script: call DestroyGroup(udg_W_Group)
- Trigger - Turn on (This trigger)
In my opinion, here is the problem:
The spell book ability is removed instantly before the damage from the critical strike is dealt...
I can trigger the whole spell without using the critical strike dummy ability but I want my hero to attack with different missle art on the fifth attack.
Any idea how to fix this spell?