- Joined
- Dec 17, 2009
- Messages
- 1,115
-
AI Pick
-
Events
- Time - Elapsed game time is 30.00 seconds
- Conditions
-
Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Player((Integer A))) controller) Equal to Computer
- (Player((Integer A))) Not equal to Player 1 (Red)
- (Player((Integer A))) Not equal to Player 7 (Green)
-
Then - Actions
- Set CurrentHero = (CurrentHero + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Player((Integer A))) is an ally of Player 1 (Red)) Equal to True
-
Then - Actions
- Set AIRegion = Hero Creation Sentinel <gen>
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Player((Integer A))) is an ally of Player 7 (Green)) Equal to True
-
Then - Actions
- Set AIRegion = Hero Creation Undead <gen>
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
For each (Integer B) from CurrentHero to 37, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- AIPicked[(Integer B)] Equal to False
-
Then - Actions
- Set AI_UnitTypeConfirmed[(Integer A)] = AIType[(Integer B)]
- Set AIPicked[(Integer B)] = True
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Player - Make AI_UnitTypeConfirmed[(Integer A)] Unavailable for training/construction by (Player((Integer A)))
- Unit - Create 1 AI_UnitTypeConfirmed[(Integer A)] for (Player((Integer A))) at (Center of AIRegion) facing Default building facing degrees
- Set AIUnit[(Integer A)] = (Last created unit)
- Game - Display to (All players) the text: ((Name of (Owner of AIUnit[(Integer A)])) + ( has picked + (Name of AIUnit[(Integer A)])))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Events
The Problem is this:
I waited 30 seconds...
After that, it successfuly picked, but the picked hero won't show up, or sometimes it'll be always the number 37 type....
EDIT:
just noticed i made a wrong post, sorry mods..
Someone move this to Triggers& SCripts please?