Forum

> > Stranded II > Maps/Editor > Random Island Units
Forums overviewStranded II overview Maps/Editor overviewLog in to reply

English Random Island Units

6 replies
To the start Previous 1 Next To the start

old Random Island Units

Felldoh
User Off Offline

Quote
I basically want access to other units, like the professor, pirate and chieftain on my random island. I read another thread that told me how to do it but it involves me creating a new random island. I worked hard on my existing random island and want to know how to add these characters right into my saved file. I would also like to know how to add sheep because there are no sheep on my random island. Thanks in advance

old Re: Random Island Units

Mc Leaf
Super User Off Offline

Quote
Check the random*.inf's in the mods\Stranded II\sys-folder and also random_start.s2s in mods\Stranded II\sys\scripts\...

old Re: Random Island Units

DC
Admin Off Offline

Quote
• open the console
• enter dm
• click execute script
• copy&paste:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$id=randomcreate("unit",40,50,1000000);
addscript "unit",$id,"sys/scripts/random_charscripts.s2s","chieftain";

$id=randomcreate("unit",38,50,1000000);
addscript "unit",$id,"sys/scripts/random_charscripts.s2s","hempguy";

$id=randomcreate("unit",34,50,1000000);
addscript "unit",$id,"sys/scripts/random_charscripts.s2s","native";

$id=randomcreate("unit",37,50,1000000);
addscript "unit",$id,"sys/scripts/random_charscripts.s2s","pirate";

$id=randomcreate("unit",41,50,1000000);
addscript "unit",$id,"sys/scripts/random_charscripts.s2s","prof";
• execute it

same procedure for the sheep with that code (paste that line several times to add more sheep):
1
randomcreate "unit",11,50,1000000;


I didn't test it but it should work that way.

old Re: Random Island Units

Felldoh
User Off Offline

Quote
Thanks a lot I did what you said DC and I got all the characters on my island but I'm still having trouble adding the sheep. I tried using this code with the numbers you gave me for the sheep "$id=randomcreate("unit",11,50,1000000);", and also just "randomcreate "unit",11,50,1000000;". I kept getting a script error thinking I messed up somewhere.

old Re: Random Island Units

Mc Leaf
Super User Off Offline

Quote
Oh... now I red your first post again and finally got the issue.

user Felldoh has written
Thanks a lot I did what you said DC and I got all the characters on my island but I'm still having trouble adding the sheep. I tried using this code with the numbers you gave me for the sheep "$id=randomcreate("unit",11,50,1000000);", and also just "randomcreate "unit",11,50,1000000;". I kept getting a script error thinking I messed up somewhere.

11 is only the ID for some silly fish... Try 15 instead. That should work.

To set more than one sheep you can use a loop:
1
2
3
loop("count",50) {
	randomcreate "unit",15,50,1000000;
}
(which would set 50 sheeps)
edited 1×, last 29.03.12 05:49:09 am

old Re: Random Island Units

Felldoh
User Off Offline

Quote
Awesome thanks for your help Mc Leaf, I now added sheep to my random island . One more thing, lets say I just wanted to add one unit would I just have to change the loop code to have a count of 1. And since I have no more gold rocks on my island is this the correct code below that should give me one gold rock on my random island?? Sorry I'm a beginner with working with these scripts, that's why i'm asking a lot of questions

loop("count",1) {
randomcreate "objects_stone",71,50,1000000;
}
edited 1×, last 30.03.12 01:21:57 am

old Re: Random Island Units

Mc Leaf
Super User Off Offline

Quote
Instead of making a one-time-loop you could also make no loop... That means

1
randomcreate "object",71,50,1000000;
     
instead of

1
2
3
loop("count",1) {
randomcreate "object",71,50,1000000;
}

which would actually result in the same. And yes, it's "object", not "objects_stone"...

(there are "object","unit","item","info" for the different classes)
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewStranded II overviewForums overview