Forum

> > Stranded II > Scripts > Scripting Questions
Forums overviewStranded II overview Scripts overviewLog in to reply

English Scripting Questions

2,429 replies
Page
To the start Previous 1 263 64 65121 122 Next To the start

old Re: Scripting Questions

Tau
User Off Offline

Quote
Well, it's lots of scripting. For a reference, look here. You start with seqstart, then you can use commands like s2 cmd setcam , s2 cmd movecam or s2 cmd 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 ;).

old Re: Scripting Questions

The Second
User Off Offline

Quote
OK. Some guestions:
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!)

old Re: Scripting Questions

Tau
User Off Offline

Quote
1.Use movecam. The difference between time and finish time gives the speed. While in movement, you can't change the speed afaik. The you'll have to create a third info.
2. I'm afraid I didn't get your question. Maybe you mean s2 cmd camfollow to follow units? If not, make your question more precise.
3.Use s2 cmd 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.

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
nmG you have very useful posts. It's clear that you're needful for this forum (I mean your advices are brief, simple and very comprehensible)

old Re: Scripting Questions

Tau
User Off Offline

Quote
I think it's counting the items in range lying on the ground, not those in the player's inventory or stored somewhere else.

old Re: Scripting Questions

The Second
User Off Offline

Quote
Is it possible to make: When I go to a cave, suddenly is dark and you can't see anything whitout torch, and when I go out of the cave, again is sunny.

old Re: Scripting Questions

Sirnik
User Off Offline

Quote
Can I make a building with two behaviours? Say, "aligntowater" and "cover"? Or? can I change the behavior after the buildeng has been built?

old Re: Scripting Questions

Tau
User Off Offline

Quote
Modus 1. Experiment with the colors, I'd try 30,30,30. "Mischen" 1. I'm sorry, I was in a hurry. When I looked at the english reference, I was stunned. Someone should update it IMO, even though SII isn't developed further.

Changing behaviours isn't possible. I don't know whether a building can have 2 behaviours.

old Re: Scripting Questions

Tau
User Off Offline

Quote
modus 0. Modus 1 is "skycolor modification on", modus 0 is "skycolor modification off". Nevertheless you have to give the parameters again when you re-activate skycolor.

old Re: Scripting Questions

Sirnik
User Off Offline

Quote
I think you misunderstood me a bit. What I mean is: Is it possible to create the following script
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'
?

old Re: Scripting Questions

The Second
User Off Offline

Quote
What script gets the island to "sink", so the water level rises? Or is it possible? As an example: on:chanceday or time trigger?

old Re: Scripting Questions

Tau
User Off Offline

Quote
Well, Sirnik, that should be possible, but only by modificating the .inf-files in sys/ .
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 s2 cmd 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
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++;
		}
	}
}
I hope this works, for <VALUE> use negative integers for the terrain to sink. If it doesn't work try leaving $mapsize--. If it still doesn't work, I made some mistakes or DC lied.
edited 1×, last 02.05.09 11:27:21 pm
To the start Previous 1 263 64 65121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview