The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 Help Map choosing
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
Map choosing

I'm just gonna tell you how it is.

There is a main map, which you walk around in.

Then, at a specific point I call the ChangeMap function, and want the player to change map.
It has to change to one of the 10 maps. This map should be picked, randomly. Maybe with the RandInt(1, 10) function

After completing this first map, the player returns to the main map.
Again at a specific point I will call the ChangeMap function, and the player must be changed to one of the 10 maps, BUT it must not be the same as he just went to, or any other he has been at.

When all the maps are completed, he can start over again...

Is there a way i can script this?

It's like

1. Choose random map.
2. Choose new random map, that is not the already chosen.
3. When all maps are tried, with a random map, from 1 out of the 10.

Trying is the first step to success.
03-29-2013, 04:32 PM
Find


Messages In This Thread
Map choosing - by FlawlessHappiness - 03-29-2013, 04:32 PM
RE: Map choosing - by ClayPigeon - 03-29-2013, 04:40 PM
RE: Map choosing - by FlawlessHappiness - 03-29-2013, 04:58 PM



Users browsing this thread: 1 Guest(s)