- Joined
- May 8, 2010
- Messages
- 150
1/My spell i created doesn't do damage, this is the trigger below and can somebody tell me what i've done wrong?
[trigger=AOE Slam Spell]
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Staff Slam
Actions
Set HammerSlamCast[(Player number of (Triggering player))] = (Casting unit)
Set HammerSlamEnemy[(Player number of (Triggering player))] = (Target unit of ability being cast)
Floating Text - Create floating text that reads Staff Slam! above HammerSlamCast[(Player number of (Triggering player))] with Z offset 0.00, using font size 7.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Set staffslamtext[(Player number of (Triggering player))] = (Last created floating text)
Floating Text - Set the velocity of staffslamtext[(Player number of (Triggering player))] to 64.00 towards 90.00 degrees
Floating Text - Change the fading age of staffslamtext[(Player number of (Triggering player))] to 2.00 seconds
Wait 1.00 seconds
If ((Level of Staff Slam for (Casting unit)) Equal to 1) then do (Unit - Cause HammerSlamCast[(Player number of (Triggering player))] to damage HammerSlamEnemy[(Player number of (Triggering player))], dealing (8.00 x ((Real((Strength of HammerSlamCast[(Player number of (Triggering player))] (Include bonuses)))) / 10.00)) d else do (Do nothing)
Wait 2.00 seconds
Floating Text - Hide staffslamtext[(Player number of (Triggering player))] for (All players)[/trigger]
2/I want to be able to change heroes names to the players name when they choose the hero. <- Using c/p jass or GUI.
Thanks, + rep for helpers again.
[trigger=AOE Slam Spell]
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Staff Slam
Actions
Set HammerSlamCast[(Player number of (Triggering player))] = (Casting unit)
Set HammerSlamEnemy[(Player number of (Triggering player))] = (Target unit of ability being cast)
Floating Text - Create floating text that reads Staff Slam! above HammerSlamCast[(Player number of (Triggering player))] with Z offset 0.00, using font size 7.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Set staffslamtext[(Player number of (Triggering player))] = (Last created floating text)
Floating Text - Set the velocity of staffslamtext[(Player number of (Triggering player))] to 64.00 towards 90.00 degrees
Floating Text - Change the fading age of staffslamtext[(Player number of (Triggering player))] to 2.00 seconds
Wait 1.00 seconds
If ((Level of Staff Slam for (Casting unit)) Equal to 1) then do (Unit - Cause HammerSlamCast[(Player number of (Triggering player))] to damage HammerSlamEnemy[(Player number of (Triggering player))], dealing (8.00 x ((Real((Strength of HammerSlamCast[(Player number of (Triggering player))] (Include bonuses)))) / 10.00)) d else do (Do nothing)
Wait 2.00 seconds
Floating Text - Hide staffslamtext[(Player number of (Triggering player))] for (All players)[/trigger]
2/I want to be able to change heroes names to the players name when they choose the hero. <- Using c/p jass or GUI.
Thanks, + rep for helpers again.