- Joined
- Mar 25, 2008
- Messages
- 2,955
So, the following snippet is supposed to randomly pick a point on the map and create units accompanied by a floating text.
Creating units works fine but the FText doesn't work for all of them (sometimes 3, sometimes 4) although it's the exact same "code".
Creating units works fine but the FText doesn't work for all of them (sometimes 3, sometimes 4) although it's the exact same "code".
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random integer number between 1 and 2) Equal to 1
-
-
Then - Actions
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
-
Set aura_rnd_pkt = (Random point in region bla <gen>)
-
Unit - Create 1 +MS Aura for Player 12 (Brown) at aura_rnd_pkt facing Default building facing degrees
-
Floating Text - Create floating text that reads |cFF8080C0+Movement... at aura_rnd_pkt with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set aura_textms[(Integer A)] = (Last created floating text)
-
Floating Text - Show aura_textms[(Integer A)] for (All players)
-
Custom script: call RemoveLocation(udg_aura_rnd_pkt)
-
-
-
-
Else - Actions
-
Set aura_rnd_pkt = (Random point in region bla <gen>)
-
Unit - Create 1 +MS Aura for Player 12 (Brown) at aura_rnd_pkt facing Default building facing degrees
-
Floating Text - Create floating text that reads |cFF8080C0+Movement... at aura_rnd_pkt with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set aura_textms[0] = (Last created floating text)
-
Floating Text - Show aura_textms[0] for (All players)
-
Custom script: call RemoveLocation(udg_aura_rnd_pkt)
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random integer number between 1 and 2) Equal to 1
-
-
Then - Actions
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
-
Set aura_rnd_pkt = (Random point in region bla <gen>)
-
Unit - Create 1 -AS Aura for Player 12 (Brown) at aura_rnd_pkt facing Default building facing degrees
-
Floating Text - Create floating text that reads |cFF8080C0-Attack S... at aura_rnd_pkt with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set aura_textas[(Integer A)] = (Last created floating text)
-
Floating Text - Show aura_textas[(Integer A)] for (All players)
-
Custom script: call RemoveLocation(udg_aura_rnd_pkt)
-
-
-
-
Else - Actions
-
Set aura_rnd_pkt = (Random point in region bla <gen>)
-
Unit - Create 1 -AS Aura for Player 12 (Brown) at aura_rnd_pkt facing Default building facing degrees
-
Floating Text - Create floating text that reads |cFF8080C0-Attack S... at aura_rnd_pkt with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set aura_textas[0] = (Last created floating text)
-
Floating Text - Show aura_textas[0] for (All players)
-
Custom script: call RemoveLocation(udg_aura_rnd_pkt)
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random integer number between 1 and 2) Equal to 1
-
-
Then - Actions
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
-
Set aura_rnd_pkt = (Random point in region bla <gen>)
-
Unit - Create 1 -ATK Aura for Player 12 (Brown) at aura_rnd_pkt facing Default building facing degrees
-
Floating Text - Create floating text that reads |cFF8080C0-Attack D... at aura_rnd_pkt with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set aura_textatk[(Integer A)] = (Last created floating text)
-
Floating Text - Show aura_textatk[(Integer A)] for (All players)
-
Custom script: call RemoveLocation(udg_aura_rnd_pkt)
-
-
-
-
Else - Actions
-
Set aura_rnd_pkt = (Random point in region bla <gen>)
-
Unit - Create 1 -ATK Aura for Player 12 (Brown) at aura_rnd_pkt facing Default building facing degrees
-
Floating Text - Create floating text that reads |cFF8080C0-Attack D... at aura_rnd_pkt with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set aura_textatk[0] = (Last created floating text)
-
Floating Text - Show aura_textatk[0] for (All players)
-
Custom script: call RemoveLocation(udg_aura_rnd_pkt)
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random integer number between 1 and 2) Equal to 1
-
-
Then - Actions
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
-
Set aura_rnd_pkt = (Random point in region bla <gen>)
-
Unit - Create 1 +HP Aura for Player 12 (Brown) at aura_rnd_pkt facing Default building facing degrees
-
Floating Text - Create floating text that reads |cFF8080C0+HP Regen... at aura_rnd_pkt with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set aura_texthp[(Integer A)] = (Last created floating text)
-
Floating Text - Show aura_texthp[(Integer A)] for (All players)
-
Custom script: call RemoveLocation(udg_aura_rnd_pkt)
-
-
-
-
Else - Actions
-
Set aura_rnd_pkt = (Random point in region bla <gen>)
-
Unit - Create 1 +HP Aura for Player 12 (Brown) at aura_rnd_pkt facing Default building facing degrees
-
Floating Text - Create floating text that reads |cFF8080C0+HP Regen... at aura_rnd_pkt with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set aura_texthp[0] = (Last created floating text)
-
Floating Text - Show aura_texthp[0] for (All players)
-
Custom script: call RemoveLocation(udg_aura_rnd_pkt)
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random integer number between 1 and 2) Equal to 1
-
-
Then - Actions
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
-
Set aura_rnd_pkt = (Random point in region bla <gen>)
-
Unit - Create 1 +AR Aura for Player 12 (Brown) at aura_rnd_pkt facing Default building facing degrees
-
Floating Text - Create floating text that reads |cFF8080C0+Armor|r at aura_rnd_pkt with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set aura_textarmor[(Integer A)] = (Last created floating text)
-
Floating Text - Show aura_textarmor[(Integer A)] for (All players)
-
Custom script: call RemoveLocation(udg_aura_rnd_pkt)
-
-
-
-
Else - Actions
-
Set aura_rnd_pkt = (Random point in region bla <gen>)
-
Unit - Create 1 +AR Aura for Player 12 (Brown) at aura_rnd_pkt facing Default building facing degrees
-
Floating Text - Create floating text that reads |cFF8080C0+Armor|r at aura_rnd_pkt with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Set aura_textarmor[0] = (Last created floating text)
-
Floating Text - Show aura_textarmor[0] for (All players)
-
Custom script: call RemoveLocation(udg_aura_rnd_pkt)
-
-
-