Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SCRIPT]Change to specific random map
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#5
RE: [SCRIPT]Change to specific random map

If you want to avoid to choosing 2, I'd suggest you to use a "While" function to help with this.

Like say:

SetGlobalVarInt("maper", RandInt(1,3));
While (GetGlobalVarInt("maper")==2)
{
SetGlobalVarInt("maper", RandInt(1,3));
}


The above will keep picking random numbers until you get one you're "happy with". Afterwards, just do your map changing stuff.

[Image: Tv0YgQb.gif]
Image by BandyGrass
(This post was last modified: 11-19-2012, 07:26 PM by Kreekakon.)
11-19-2012, 06:04 PM
Find


Messages In This Thread
RE: [SCRIPT]Change to specific random map - by Kreekakon - 11-19-2012, 06:04 PM



Users browsing this thread: 2 Guest(s)