Forum
Stranded II Scripts Scripting Questions1.how to set camera moving speed from info to other?
2.how to set cam stay and follow e.g. a monkey?
3.how add a state to that monkey? (not at start!)
2. I'm afraid I didn't get your question. Maybe you mean camfollow to follow units? If not, make your question more precise.
3.Use seqevent , give time, eventname, "unit" and the id of the monkey. Write a script at the monkey adding the state on the event givenin seqevent.
skycolor modus??,red,green,blue;
What modus?
Changing behaviours isn't possible. I don't know whether a building can have 2 behaviours.
edited 1×, last 02.05.09 08:45:12 am
1) While selecting the place for the building and constructing it, the building has the "aligntowater" behaviour
2) After it is built, the behaviour changes to "cover'
?
1. Create one building with "aligntowater"-behaviour and one(the target building) with "cover"-behaviour. The first building should also have the same name and icon as the second one.
2. Make the first building buildable, the second a normal object.
3. Write a script so that when the first building is finished, it is replaced by the second one using alterobject.
4. ???
5. Profit!
The Second('s) question:
It could be possible, but it's very hard to do.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
on:start{	 	local $a,$b,$x,$mapsize; 	$x=mapsize(); 	$x=$x*$x; 	$mapsize=mapsize(); 	$mapsize--; } on:changeday{ 	loop ("count",$x){ 		terrain $a,$b,3,<VALUE>; 		$a++; 		if ($a==$mapsize){ 			$a=0; 			$b++; 		} 	} }
edited 1×, last 02.05.09 11:27:21 pm