View Single Post
  #7  
Old November 11th, 2007, 04:37 PM

mantari mantari is offline
Private
 
Join Date: May 2007
Posts: 38
Thanks: 0
Thanked 1 Time in 1 Post
mantari is on a distinguished road
Default Re: Request: some randomness

Quote:
Phlagm said:
I noticed that there is some user accessable randomness in the game (such as fomax's failure to understand your request: "ITEM random life"), but I don't know if there is an option for a random integer generator.
Oh! You gave me an idea! You'd have to account for all your various lifeforms but, the flowchat would go something like this?

ITEM random life
If you haveitem (lifeform1) then set RND=1 and REMV lifeform1
If you haveitem (lifeform2) then set RND=2 and REMV lifeform2
If you haveitem (lifeform3) then set RND=3 and REMV lifeform3

Could that be done at the start of the game?

Basically, you give the player a random lifeform, and depending on which one it is, you set a random number, and then remove that lifeform?