- Joined
- Jun 15, 2009
- Messages
- 37
This trigger is supposed to land a player's ship to one of the 2 landing area on the targeted planet.There is 4 landing area per planet (2/Team)
The problem is that the custom value of planets only works for the first second of the trigger. I mean after the waits it does not work any more (Unit appear in the middle of the map) If I remove waits it still bugs but this time only for last actions
I checked and variables are set correctly(Planet custom value is set before elevator positions ect ...)
Variables:
SlotC and SlotD: Boolean that says if the area is used or not (C and D for each team)
Slot_PosC and Slot_PosD: Destructible, gives the position of elevators(Depending on custom value of the planet)
SlotC_Who and Ves_Slot_PosC are used in other triggers, ignore them.
If anyone could help me debug that or if not possible give me a working jass version (Or GUI ...)
The problem is that the custom value of planets only works for the first second of the trigger. I mean after the waits it does not work any more (Unit appear in the middle of the map) If I remove waits it still bugs but this time only for last actions
I checked and variables are set correctly(Planet custom value is set before elevator positions ect ...)
Variables:
SlotC and SlotD: Boolean that says if the area is used or not (C and D for each team)
Slot_PosC and Slot_PosD: Destructible, gives the position of elevators(Depending on custom value of the planet)
SlotC_Who and Ves_Slot_PosC are used in other triggers, ignore them.
If anyone could help me debug that or if not possible give me a working jass version (Or GUI ...)
-
Land 2 test
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equals to Atterir
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Casting unit)) Equals to Intercepteur Jedi
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
SlotC[(Custom value of (Target unit of ability being cast))] Equals to TRUE
-
-
Then - Actions
-
Floating text - Create floating text that reads |cff00CC00Atterriss... above (Casting unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] = (Last created floating text)
-
Floating text - Change Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))]: Desactivate permanence
-
Floating text - Change the lifespan of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 5.00 seconds
-
Floating text - Change the fading age of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 0.00 seconds
-
Floating text - Set the velocity of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 15.00 towards 90.00 degrees
-
Wait 1.20 seconds
-
Destructible - Set height of Slot_PosC[(Custom value of (Target unit of ability being cast))] to 3
-
Wait 0.80 seconds
-
Unit - Move (Casting unit) instantly to (Position of Slot_PosC[(Custom value of (Target unit of ability being cast))])
-
Unit - Make (Casting unit) face (Current life of Slot_PosC[(Custom value of (Target unit of ability being cast))]) over 0.00 seconds
-
Destructible - Set height of Slot_PosC[(Custom value of (Target unit of ability being cast))] to 1
-
Unit - Pause (Casting unit)
-
Animation - Change (Casting unit)'s size to (180.00%, 180.00%, 180.00%) of its original size
-
Animation - Change (Casting unit) flying height to 0.00 at 0.00
-
Set SlotC_Who[(Custom value of (Casting unit))] = (Custom value of (Target unit of ability being cast))
-
Set Ves_Slot_PosC[(Custom value of (Casting unit))] = TRUE
-
Set SlotC[(Custom value of (Target unit of ability being cast))] = FALSE
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
SlotC[((Custom value of (Target unit of ability being cast)) + 200)] Equals to* TRUE
-
-
Then - Actions
-
Floating text - Create floating text that reads |cff00CC00Atterriss... above (Casting unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] = (Last created floating text)
-
Floating text - Change Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))]: Desactivate permanence
-
Floating text - Change the lifespan of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 5.00 seconds
-
Floating text - Change the fading age of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 0.00 seconds
-
Floating text - Set the velocity of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 15.00 towards 90.00 degrees
-
Wait 1.70 seconds
-
Destructible - Set height of Slot_PosC[((Custom value of (Target unit of ability being cast)) + 200)] to 3
-
Wait 0.20 seconds
-
Unit - Move (Casting unit) instantly to (Position of Slot_PosC[((Custom value of (Target unit of ability being cast)) + 200)])
-
Unit - Pause (Casting unit)
-
Animation - Change (Casting unit)'s size to (180.00%, 180.00%, 180.00%) of its original size
-
Animation - Change (Casting unit) flying height to 0.00 at 0.00
-
Unit - Make (Casting unit) face (Current life of Slot_PosC[((Custom value of (Target unit of ability being cast)) + 200)]) over 0.00 seconds
-
Destructible - Set height of Slot_PosC[((Custom value of (Target unit of ability being cast)) + 200)] to 1
-
Set Ves_Slot_PosC[(Custom value of (Casting unit))] = FALSE
-
Set SlotC_Who[(Custom value of (Casting unit))] = ((Custom value of (Target unit of ability being cast)) + 200)
-
Set SlotC[((Custom value of (Target unit of ability being cast)) + 200)] = FALSE
-
-
Else - Actions
-
Floating text - Create floating text that reads |cffFF0000Impossibl... above (Casting unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] = (Last created floating text)
-
Floating text - Change Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))]: Deactivate permanence
-
Floating text - Change the lifespan of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 5.00 seconds
-
Floating text - Change the fading age of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 0.00 seconds
-
Floating text - Set the velocity of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 15.00 towards 90.00 degrees
-
-
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
-
SlotD[((Custom value of (Target unit of ability being cast)) + 10)] Equals to* TRUE
-
-
Then - Actions
-
Floating text - Create floating text that reads |cff00CC00Atterriss... above (Casting unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] = (Last created floating text)
-
Floating text - Change Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))]: Deactivate permanence
-
Floating text - Change the lifespan of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 5.00 seconds
-
Floating text - Change the fading age of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 0.00 seconds
-
Floating text - Set the velocity of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 15.00 towards 90.00 degrees
-
Wait 1.70 seconds
-
Destructible - Set height of Slot_PosD[((Custom value of (Target unit of ability being cast)) + 10)] to 3
-
Wait 0.20 seconds
-
Unit - Move (Casting unit) instantly to (Position of Slot_PosD[((Custom value of (Target unit of ability being cast)) + 10)])
-
Unit - Pause (Casting unit)
-
Animation - Change (Casting unit)'s size to (180.00%, 180.00%, 180.00%) of its original size
-
Animation - Change (Casting unit) flying height to 0.00 at 0.00
-
Unit - Make (Casting unit) face (Current life of Slot_PosD[((Custom value of (Target unit of ability being cast)) + 10)]) over 0.00 seconds
-
Destructible - Set height of Slot_PosD[((Custom value of (Target unit of ability being cast)) + 10)] to 1
-
Set SlotD_Who[((Custom value of (Casting unit)) + 10)] = ((Custom value of (Target unit of ability being cast)) + 10)
-
Set Ves_Slot_PosD[((Custom value of (Target unit of ability being cast)) + 10)] = TRUE
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
SlotD[((Custom value of (Target unit of ability being cast)) + 210)] Equals to TRUE
-
-
Then - Actions
-
Floating text - Create floating text that reads |cff00CC00Atterriss... above (Casting unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] = (Last created floating text)
-
Floating text - Change Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))]: Deactivate permanence
-
Floating text - Change the lifespan of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 5.00 seconds
-
Floating text - Change the fading age of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 0.00 seconds
-
Floating text - Set the velocity of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 15.00 towards 90.00 degrees
-
Wait 1.70 seconds
-
Destructible - Set height of Slot_PosD[((Custom value of (Target unit of ability being cast)) + 210)] to 3
-
Wait 0.20 seconds
-
Unit - Move (Casting unit) instantly to (Position of Slot_PosD[((Custom value of (Target unit of ability being cast)) + 210)])
-
Unit - Pause (Casting unit)
-
Animation - Change (Casting unit)'s size to (180.00%, 180.00%, 180.00%) of its original size
-
Animation - Change (Casting unit) flying height to 0.00 at 0.00
-
Unit - Make (Casting unit) face (Current life of Slot_PosD[((Custom value of (Target unit of ability being cast)) + 210)]) over 0.00 seconds
-
Destructible - Set height of Slot_PosD[((Custom value of (Target unit of ability being cast)) + 210)] to 1
-
Set SlotD_Who[((Custom value of (Casting unit)) + 210)] = ((Custom value of (Target unit of ability being cast)) + 210)
-
Set Ves_Slot_PosD[((Custom value of (Casting unit)) + 210)] = FALSE
-
-
If - Actions
-
Floating text - Create floating text that reads |cffFF0000Impossibl... above (Casting unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] = (Last created floating text)
-
Floating text - Change Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))]: Deactivate permanence
-
Floating text - Change the lifespan of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 5.00 seconds
-
Floating text - Change the fading age of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 0.00 seconds
-
Floating text - Set the velocity of Ply_Txt_Ves[(Player number of (Owner of (Casting unit)))] to 15.00 towards 90.00 degrees
-
-
-
-
-
-
-
-
-
Last edited: