- Joined
- Oct 20, 2012
- Messages
- 3,075
Hey guys, I'm kinda having problems with my spell.. It's supposed to create a lightning bolt to hit a targeted point. units nearby that area is damaged based on the caster's intelligence. But when I tested this in my map, there are times when it doesn't do any damage but still shows the floating texts.. I just have no idea why this is happening..
EDIT:
Extra question:
Am I doing the point removal in this trigger right?
Oh and, I noticed that this doesn't make the teleportation really random.. at the start, all entering units exit at the same place.. so is it possible to make it more random?
-
Lightning Strike
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Lightning Strike
-
Actions
- Set Skill_Temp_point = (Target point of ability being cast)
- Set Skill_Yozshura_LS_Real = ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 0.50)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Lightning Strike for (Triggering unit)) Equal to 1
-
Then - Actions
- Set Skill_Yozshura_LS_Real2 = (75.00 + Skill_Yozshura_LS_Real)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Lightning Strike for (Triggering unit)) Equal to 2
-
Then - Actions
- Set Skill_Yozshura_LS_Real2 = (125.00 + Skill_Yozshura_LS_Real)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Lightning Strike for (Triggering unit)) Equal to 3
-
Then - Actions
- Set Skill_Yozshura_LS_Real2 = (175.00 + Skill_Yozshura_LS_Real)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Lightning Strike for (Triggering unit)) Equal to 4
-
Then - Actions
- Set Skill_Yozshura_LS_Real2 = (225.00 + Skill_Yozshura_LS_Real)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Special Effect - Create a special effect at Skill_Temp_point using war3mapImported\LightningWrath.mdx
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect at Skill_Temp_point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 300.00 of Skill_Temp_point matching (((((Matching unit) is A structure) Equal to False) and (((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True)) and ((((Matching unit) is Magic Immune) Equal to False) and ((M and do (Actions)
-
Loop - Actions
- Unit - Cause source to damage (Picked unit), dealing Skill_Yozshura_LS_Real2 damage of attack type Spells and damage type Normal
- Floating Text - Create floating text that reads (|CFF0042FF + ((String((Integer(Skill_Yozshura_LS_Real2)))) + !|R )) above (Picked unit) with Z offset 0.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
- Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Skill_Temp_point)
- Game - Display to (All players) the text: (String(Skill_Yozshura_LS_Real2))
-
Events
-
Lightning Strike
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Lightning Strike
-
Actions
- Set Skill_Temp_point = (Target point of ability being cast)
- Set Skill_Yozshura_LS_Real = ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 0.50)
- Set Skill_Yozshura_LS_Real2 = ((Real((Level of Lightning Strike for (Triggering unit)))) x (50.00 + 25.00))
- Special Effect - Create a special effect at Skill_Temp_point using war3mapImported\LightningWrath.mdx
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect at Skill_Temp_point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 300.00 of Skill_Temp_point matching (((((Matching unit) is A structure) Equal to False) and (((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True)) and ((((Matching unit) is Magic Immune) Equal to False) and ((M and do (Actions)
-
Loop - Actions
- Unit - Cause (Triggering unit) to damage (Picked unit), dealing Skill_Yozshura_LS_Real2 damage of attack type Spells and damage type Normal
- Floating Text - Create floating text that reads (|CFF0042FF + ((String((Integer(Skill_Yozshura_LS_Real2)))) + !|R )) above (Picked unit) with Z offset 0.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
- Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Skill_Temp_point)
- Game - Display to (All players) the text: (String(Skill_Yozshura_LS_Real2))
-
Events
EDIT:
Extra question:
Am I doing the point removal in this trigger right?
-
Teleport
-
Events
- Unit - A unit enters Teleport Entrance 1 <gen>
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
-
Actions
- Set Teleport_Exits[1] = (Center of Teleport Exit 1 <gen>)
- Set Teleport_Exits[2] = (Center of Teleport Exit 2 <gen>)
- Set Teleport_Exits[3] = (Center of Teleport Exit 3 <gen>)
- Set Teleport_Exits[4] = (Center of Teleport Exit 4 <gen>)
- Set Temp_point_arena = (Position of (Triggering unit))
- Special Effect - Create a special effect at Temp_point_arena using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Move (Triggering unit) instantly to Teleport_Exits[(Random integer number between 1 and 4)]
- Custom script: call RemoveLocation(udg_Temp_point_arena)
- Set Temp_point_arena = (Position of (Triggering unit))
- Camera - Pan camera for (Owner of (Triggering unit)) to Temp_point_arena over 0.00 seconds
- Special Effect - Create a special effect at Temp_point_arena using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_Temp_point_arena)
- Custom script: call RemoveLocation(udg_Teleport_Exits[1])
- Custom script: call RemoveLocation(udg_Teleport_Exits[2])
- Custom script: call RemoveLocation(udg_Teleport_Exits[3])
- Custom script: call RemoveLocation(udg_Teleport_Exits[4])
-
Events
Last edited: