Nenad
~Choco Coronet~ Omnomnom
- Reaction score
- 137
Hello pps long time no see. Well anyway i stoped making my map but i was bored so i started making it again and me and my friend tested it and supisingly there were lots of stuff that actually worked!!!
well heres my all random trigger that i took from this site from free trigger section and its got a problem. when u type in -ar it chooses the same hero for every player. Now, i know i have to put in a wait action somwhere or rearenge the whole trigger but i just cant seem to get it right. Heres the trigger
HF with that trigger ill be back in like 2 hours hope i get some answers
well heres my all random trigger that i took from this site from free trigger section and its got a problem. when u type in -ar it chooses the same hero for every player. Now, i know i have to put in a wait action somwhere or rearenge the whole trigger but i just cant seem to get it right. Heres the trigger
Code:
Events
Player - Player 1 (Red) types a chat message containing -ar as An exact match
Conditions
Actions
Trigger - Turn off Random Pick Human <gen>
Trigger - Turn off Random Pick Undead <gen>
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
Then - Actions
Set Random_Hero = (Random integer number between 1 and MaxHeros)
Unit - Create 1 RandomHero[RandomData[Random_Hero]] for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
Selection - Select (Last created unit) for (Owner of (Last created unit))
Game - Display to (All players) for 9.00 seconds the text: ((Player_Colors[(Player number of (Owner of (Last created unit)))] + ((Name of (Owner of (Last created unit))) + |r)) + ( has chosen + (Name of (Last created unit))))
Set RandomData[Random_Hero] = RandomCount
Set RandomCount = (RandomCount - 1)
Else - Actions
Do nothing
HF with that trigger ill be back in like 2 hours hope i get some answers


