- Joined
- Nov 30, 2007
- Messages
- 1,202
-
Initialization
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Set HeroType[1] = Girl Child
-


Set HeroType[2] = Boy Child (blond)
-


Set HeroType[3] = Boy Child (brunette)
-


Set HeroType[4] = Teenage Girl
-


Set HeroType[5] = Teenage Boy
-


Set HeroType[6] = White Woman
-


Set HeroType[7] = White Man
-


Set HeroType[8] = Black Man
-


Set HeroType[9] = Old Man
-


Set HeroRegion[0] = Start Hero Random <gen>
-


Set HeroRegion[1] = Start Hero Girl Child <gen>
-


Set HeroRegion[2] = Start Hero Boy Child Blond <gen>
-


Set HeroRegion[3] = Start Hero Boy Child Brunette <gen>
-


Set HeroRegion[4] = Start Hero Teenage Girl <gen>
-


Set HeroRegion[5] = Start Hero Teenage Boy <gen>
-


Set HeroRegion[6] = Start Hero White Woman <gen>
-


Set HeroRegion[7] = Start Hero White Man <gen>
-


Set HeroRegion[8] = Start Hero Black Man <gen>
-


Set HeroRegion[9] = Start Hero Old Man <gen>
-
-
-
Pick Hero
-

Events
-


Unit - A unit enters Start Hero Girl Child <gen>
-


Unit - A unit enters Start Hero Boy Child Blond <gen>
-


Unit - A unit enters Start Hero Boy Child Brunette <gen>
-


Unit - A unit enters Start Hero Teenage Girl <gen>
-


Unit - A unit enters Start Hero Teenage Boy <gen>
-


Unit - A unit enters Start Hero White Woman <gen>
-


Unit - A unit enters Start Hero White Man <gen>
-


Unit - A unit enters Start Hero Black Man <gen>
-


Unit - A unit enters Start Hero Old Man <gen>
-
-

Conditions
-


(Unit-type of (Triggering unit)) Equal to Spirit
-
-

Actions
-


Custom script: local integer int
-


Custom script: local unit u = GetTriggerUnit()
-


Custom script: local location loc = GetRectCenter(gg_rct_Start_Location)
-


Custom script: local player p = GetOwningPlayer(u)
-


Game - Display to (All players) the text: trigger is running!
-


For each (Integer A) from 0 to 9, do (Actions)
-



Loop - Actions
-




Game - Display to (All players) the text: loop
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-
-




[B] (HeroRegion[(Integer A)] contains (Triggering unit)) Equal to True[/B]
-





Then - Actions
-






Game - Display to (All players) the text: true 1
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Integer A) Not equal to 0
-
-







Then - Actions
-








Game - Display to (All players) the text: true 2
-








Game - Display to (All players) the text: (String((Integer A)))
-
-







Else - Actions
-








Game - Display to (All players) the text: false 2
-








Custom script: set int = GetRandomInt(1, 8)
-








Custom script: call DisplayTextToForce( GetPlayersAll(), ( "Random: " + I2S(int) ) )
-
-
-
-





Else - Actions
-
-
-
-


Custom script: set u = null
-


Custom script: set p = null
-


Custom script: call RemoveLocation(loc)
-
-
For some reason the regions [0] to [4] isnt working at all.
Last edited:





