YAN[asian]
Mario & Luigi
- 27/3/07
- 812
- 417
Cho hỏi 2 trigger này có vấn đề ở chỗ nào mà ko thấy MUI được?
[spoil]
[/spoil]
[spoil]
[/spoil]
[spoil]
Mã:
Untitled Trigger 147
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Double Rocket
Actions
Set RocketMui[1] = (RocketMui[1] + 1)
Set RocketUnit2[RocketMui[1]] = (Triggering unit)
Set RocketReal2[RocketMui[1]] = ((Current flying height of RocketUnit2[RocketMui[1]]) + 20.00)
Set RocketReal3[RocketMui[1]] = ((Current flying height of RocketUnit2[RocketMui[1]]) + 0.00)
Set RocketPoint[3] = (Position of RocketUnit2[RocketMui[1]])
Set RocketPoint[4] = (RocketPoint[3] offset by 50.00 towards ((Facing of RocketUnit2[RocketMui[1]]) - 90.00) degrees)
For each (Integer A) from 0 to 1, do (Actions)
Loop - Actions
Set RocketPoint[5] = (RocketPoint[4] offset by (Real(((Integer A) x 100))) towards (Angle from RocketPoint[4] to RocketPoint[3]) degrees)
Unit - Create 1 Captain for (Owner of RocketUnit2[RocketMui[1]]) at RocketPoint[5] facing (Facing of RocketUnit2[RocketMui[1]]) degrees
Unit Group - Add (Last created unit) to RocketGr[RocketMui[1]]
Unit - Add Crow Form to (Last created unit)
Unit - Remove Crow Form from (Last created unit)
Animation - Change (Last created unit) flying height to RocketReal2[RocketMui[1]] at 0.00
Custom script: call RemoveLocation(udg_RocketPoint[5])
Custom script: call RemoveLocation(udg_RocketPoint[3])
Custom script: call RemoveLocation(udg_RocketPoint[4])
[spoil]
Mã:
Untitled Trigger 148
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
For each (Integer RocketIndex[1]) from 1 to RocketMui[1], do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RocketReal2[RocketIndex[1]] Less than or equal to 0.00
Then - Actions
Unit Group - Pick every unit in RocketGr[RocketIndex[1]] and do (Actions)
Loop - Actions
Unit - Add a 0.01 second Generic expiration timer to (Picked unit)
Unit Group - Remove all units from RocketGr[RocketIndex[1]]
For each (Integer B) from RocketIndex[1] to (RocketMui[1] - 1), do (Actions)
Loop - Actions
Set RocketGr[(Integer B)] = RocketGr[((Integer B) + 1)]
Set RocketReal2[(Integer B)] = RocketReal2[((Integer B) + 1)]
Set RocketReal3[(Integer B)] = RocketReal3[((Integer B) + 1)]
Set RocketUnit2[(Integer B)] = RocketUnit2[((Integer B) + 1)]
Set RocketMui[1] = (RocketMui[1] - 1)
Else - Actions
Set RocketReal2[RocketIndex[1]] = (RocketReal2[RocketIndex[1]] - 7.50)
Unit Group - Pick every unit in RocketGr[RocketIndex[1]] and do (Actions)
Loop - Actions
Set RocketPoint[3] = (Position of (Picked unit))
Set RocketPoint[4] = (RocketPoint[3] offset by 30.00 towards (Facing of (Picked unit)) degrees)
Unit - Move (Picked unit) instantly to RocketPoint[4]
Unit - Add Crow Form to (Picked unit)
Unit - Remove Crow Form from (Picked unit)
Animation - Change (Picked unit) flying height to RocketReal2[RocketIndex[1]] at 0.00
Custom script: call RemoveLocation(udg_RocketPoint[3])
Custom script: call RemoveLocation(udg_RocketPoint[4])




.