Forum

> > Stranded II > Scripts > Load random map support
Forums overviewStranded II overview Scripts overviewLog in to reply

English Load random map support

6 replies
To the start Previous 1 Next To the start

old Load random map support

Lion_Hearted
User Off Offline

Quote
I want to make it so that I can make, and load a random map from a random map.

Basically, this is how I want the script to work...


You make a boat, and you ride to the edge of the island on say the east side...


Then, after you pass over the edge of the map on the east side, you would make a new map but, you would also use a random map generator in the making of this new map. And you would be coming from a random map, into another random map. And you would be able to walk back and forth between the two random maps. You'd go east on the first map to get to the second map, and you'd go west on the second map to get to the first map.


But, I have a couple problems... first... I have no idea how I would make it generate a random map then load it, and after doing it the first time it would just return to that map next time I went to visit it. 2nd, I always had the problem of duplicate items, wrong return point. And I also had the problem that when I put both "savemap" and "loadmap" in the same script, the save map would activate, but leave the rest of the script without activating the loadmap function.


So to sum my thread up.

Is it possible, and how would I make it so that the game would create a new random map, and load it, and remember it for when I went to visit it again.

How do I get past the problems of duplicate items, savemap and loadmap conflicts, and wrong return points.

old Re: Load random map support

Yates
Reviewer Off Offline

Quote
I don't know the solution. But wouldn't you get another random map if you want to go back to the first random map?

old Re: Load random map support

Lion_Hearted
User Off Offline

Quote
Thats what I want, I want it to make a random map at first, then remember that it has already made a map, and load the save file for that map.

old Re: Load random map support

amstel bier9
User Off Offline

Quote
sorry for opening an old topic again but I'm also looking for this script.
so if anyone has it, I beg you to place it here.

already a great thanks,
Amstelbier9

old Re: Load random map support

Vectarrio
User Off Offline

Quote
I can't make whole script, but I can tell you that you should use s2 cmd loop and s2 cmd randomcreate commands.
EDIT:
thought a bit more about it, you'll need an empty map which is generated and saved in some folder.
and then generate something there with scripts.
So:
you create a map, leave it empty, add a generation script there, save it in some folder, and load it with your first map.
Did you get it?
edited 1×, last 30.12.11 01:30:29 pm

old Re: Load random map support

amstel bier9
User Off Offline

Quote
a bit, but I think it's really complicated..
and is it simpler to use only 1 random map?
because i would like to make (in a random game) a mine(it's fulled with blocks, like in minecraft).
if you got some ores, then you can left the mine and go back to your island.

already thanks
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview