Random region

S

spacesnake

Guest
Is there any way to pick a random region out of a group of regions? In fact, is there any way to even create 'region groups'?

Edit: Also, is there a way or code to centralise text in wciii? just like |n and colour codes?
 

Azlier

Old World Ghost
Reaction score
461
As for randomly picking a region, store them all in a region array. Then you can use the random integer function to pick one.

As for centralizing text, I think you'll just have to add spaces by trial and error to centralize it.
 
S

spacesnake

Guest
Thanks. Used ran. numbers and the array and worked perfectly. Too bad I have to trial and error spacing though :( ah well, There's not much i need to centralise, shouldn't take too long.
 

Trithilon-V2

New Member
Reaction score
20
If you want to generate random regions...
Use the function which allows you to define a region with coordinates. and in the coordinates just use... (Math - Random Real between (Min X/Y of (Entire Playable Map)) to (Max X/Y of (Entire Playable Map)))
However....if you want the to use predefined regions, just use and array to denote them. and use a random integer as the index for the array.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top