R@i_no_Wyrm
New Member
- Reaction score
- 43
Code:
Slide
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Set PlayerGroup2 = (All players controlled by a User player)
Player Group - Pick every player in PlayerGroup2 and do (Actions)
Loop - Actions
Set temp_group2 = (Units owned by (Picked player))
Unit Group - Pick every unit in temp_group2 and do (Actions)
Loop - Actions
Set temp_point = (Position of (Picked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at temp_point) Equal to Northrend - Ice
((Picked unit) is alive) Equal to True
Then - Actions
Set temp_point_2 = [u][b]((Center of (Playable map area))[/b][/u] offset by (7.70, (Facing of (Picked unit))))
Set HeroSlideEffect[1] = (Position of (Picked unit))
Unit - Move (Picked unit) instantly to temp_point_2, facing (Facing of (Picked unit)) degrees
Custom script: call RemoveLocation (udg_HeroSlideEffect[1])
Custom script: call RemoveLocation (udg_temp_point)
Custom script: call RemoveLocation (udg_temp_point_2)
Custom script: call DestroyForce(udg_PlayerGroup2)
Custom script: call DestroyGroup(udg_temp_group2)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at temp_point) Equal to Icecrown Glacier - Ice
((Picked unit) is alive) Equal to True
Then - Actions
Set temp_point_2 = ((Center of (Playable map area)) offset by (7.70, (Facing of (Picked unit))))
Set HeroSlideEffect[1] = (Position of (Picked unit))
Unit - Move (Picked unit) instantly to temp_point_2, facing (Facing of (Picked unit)) degrees
Custom script: call RemoveLocation (udg_HeroSlideEffect[1])
Custom script: call RemoveLocation (udg_temp_point)
Custom script: call RemoveLocation (udg_temp_point_2)
Custom script: call DestroyForce(udg_PlayerGroup2)
Custom script: call DestroyGroup(udg_temp_group2)
Else - Actions
Custom script: call DestroyForce(udg_PlayerGroup2)
Custom script: call RemoveLocation (udg_temp_point_2)
Custom script: call RemoveLocation (udg_temp_point)
Custom script: call DestroyGroup(udg_temp_group2)
And what's the meaning of center of playable map area?
Code:
Death
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Set FlameLords = (Units of type FlameLord)
Unit Group - Pick every unit in FlameLords and do (Actions)
Loop - Actions
Set temp_point = (Position of (Picked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
(Terrain type at temp_point) Equal to Northrend - Snow
Then - Actions
Unit - Kill [b][u](Triggering unit)[/b][/u]
Custom script: call RemoveLocation (udg_temp_point)
Custom script: call DestroyGroup(udg_FlameLords)
Else - Actions
Custom script: call RemoveLocation (udg_temp_point)
Custom script: call DestroyGroup(udg_FlameLords)
And do NOT use triggering unit!
Use picked unit instead. But it's a good map.