Number of posts : 155 Age : 30 Location : Mars Registration date : 2008-01-24
Subject: -ar and -random commands need help Mon Feb 11, 2008 4:22 am
actions: a player types -random as an exact msg conditions: number of units owned by triggering player matching : matching unit is a hero = to 0 actions: set -random = a random number from 1 to (the total number of heros) create 1 HERO[-random] for triggering player at triggering player starting place
ok that was the -random command there was more but its not important jsut adding gold and such
actions: player red types -ar as an exact msg conditions: --NO CONDITIONS-- actions: turn off this trigger for each intregar A from 1 to 10 do actions loop actions if all conditions are true then do thens actions else do elses actions if: ((Player((Integer A))) controller) Equal to User ((Player((Integer A))) slot status) Equal to Is playing then: set -ar = a random number from 1 to (the total number of heros) create 1 HERO[-ar] for player integer A at player intreger A starting place
thats my -ar command
problem is when i do -random i get hero A then i type -repick and -random and i get hero A for about 7 times then after the 7th time when i do -random i get hero B and i dont think thats random AND IT IS ALWAYS LIKE THAT ALWAYS EVERY GAME
Alex World Editor Mod
Number of posts : 44 Username : SirAlexander Registration date : 2008-01-26
Subject: Re: -ar and -random commands need help Mon Feb 11, 2008 11:36 pm
1. Add more heros, then test it again. If it still doesn't work, go on to #2. 2. Limit the ammount of repicks to 1.
bee. Member
Number of posts : 155 Age : 30 Location : Mars Registration date : 2008-01-24
Subject: Re: -ar and -random commands need help Tue Feb 12, 2008 2:19 am