Warriors of Darkness Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Warriors of Darkness Forum

Welcome to Clan WoD's Forum!
 
HomeHome  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  

 

 -ar and -random commands need help

Go down 
2 posters
AuthorMessage
bee.
Member
bee.


Number of posts : 155
Age : 30
Location : Mars
Registration date : 2008-01-24

-ar and -random commands need help Empty
PostSubject: -ar and -random commands need help   -ar and -random commands need help EmptyMon 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
Back to top Go down
http://region-of-fire.users-board.net
Alex
World Editor Mod
Alex


Number of posts : 44
Username : SirAlexander
Registration date : 2008-01-26

-ar and -random commands need help Empty
PostSubject: Re: -ar and -random commands need help   -ar and -random commands need help EmptyMon 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.
Back to top Go down
bee.
Member
bee.


Number of posts : 155
Age : 30
Location : Mars
Registration date : 2008-01-24

-ar and -random commands need help Empty
PostSubject: Re: -ar and -random commands need help   -ar and -random commands need help EmptyTue Feb 12, 2008 2:19 am

oh nvm zero lock this i found the problem
Back to top Go down
http://region-of-fire.users-board.net
Sponsored content





-ar and -random commands need help Empty
PostSubject: Re: -ar and -random commands need help   -ar and -random commands need help Empty

Back to top Go down
 
-ar and -random commands need help
Back to top 
Page 1 of 1
 Similar topics
-
» The *Insert Random Name here* Award! (NOT A FORUM GAME)

Permissions in this forum:You cannot reply to topics in this forum
Warriors of Darkness Forum :: Others :: Graveyard-
Jump to: