Forum
Scripts
Scripting Questions
setcam ,
movecam or
campath. Just read the reference, and if you have any questions, ask me, because sequences are my special thing, I have experience with this and made/modified 3 sequences yet, one of them even with sounds and cool effects, it's a total of one minute and 26 seconds long, telling the arrival of Robinson Crusoe on his island ;). 1.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.
cammode with mode 1. Then give class and id and it should work.
(I mean your advices are brief, simple and very comprehensible)
skycolor and figure out the rest by yourself. 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 06: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 09:27:21 pm
Scripting Questions


Offline