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]Change to specific random map
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
[SCRIPT]Change to specific random map

Hey guys!

So in my custom story i want to change to different maps with one script, posted in the end of all the maps.

It will work like this:

You start in the default map (Which is NOT random).
You get to a point where the script calls and you change map:
There are 3 different maps to change to, and the first change should be completely random.
After getting to the "end-point" in map 1, the script calls again, but now it can only choose between the 2 maps which haven't been played yet.
At last when finishing that map, you will change to the last map, not played.

I cannot figure out how to script this.

Yes it's something with SetGlobalVarInt("Map_1", 1) and GetGlobalVarInt and that... but when it also has to choose randomly between them. It cannot seem to form correctly in my head.
Could anybody help me?
Lets just call the maps:

Path_1
Path_2
Path_3

Trying is the first step to success.
(This post was last modified: 11-19-2012, 05:02 PM by FlawlessHappiness.)
11-19-2012, 05:01 PM
Find


Messages In This Thread
[SCRIPT]Change to specific random map - by FlawlessHappiness - 11-19-2012, 05:01 PM



Users browsing this thread: 2 Guest(s)