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 215 16 17121 122 Next To the start

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
Is it somehow possible to create, edit, or at least view unit's "behaviour"?
And could someone make list of all behaviour? Cause I could see, that in one .inf, there is "standandshoot" and it is unused so are there more unused behaviours? Thx

old Re: Scripting Questions

Flying Lizard
User Off Offline

Quote
it's not possible to create or edit behaviours themselves, but you can of course change the behaviour of a unit.

You can find a list of all behaviours here , allthough it is in german.

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
that's pity it's in german, but thanks though
And now: I found script ai_signal. But I have seen only example "eat". What else I can attach to script ai_signal please?

old Re: Scripting Questions

Gradir
User Off Offline

Quote
HudaJan: try to search for your answer a bit before asking. Flying Lizard showed you the site where you can find most answers for your questions, probably.
Here you can find list and description of all commands, including s2 cmd ai_signal

it's in german, but there are some free translators, like this one:
http://www.online-translator.com/text.asp?lang=en


About the animations:
I ment that there is that list of unit's animations:
ani_idle1, ani_idle2, ani_idle3, ani_move, ani_attack, ani_use, ani_die

and I suppose there is no way to add another one, lets say, which would start on a trigger?

Plus, could you tell me when is ani_use triggered? When an unit uses something or when IT is used? Thanks

old Re: Scripting Questions

bizzl
User Off Offline

Quote
Gradir has written
About the animations:
I ment that there is that list of unit's animations:
ani_idle1, ani_idle2, ani_idle3, ani_move, ani_attack, ani_use, ani_die

and I suppose there is no way to add another one, lets say, which would start on a trigger?

sure you can, with s2 cmd loadani and s2 cmd animate

Gradir has written
Plus, could you tell me when is ani_use triggered? When an unit uses something or when IT is used? Thanks

afair whenever a unit eats something

old Re: Scripting Questions

Guest

Quote
I need help with fire. Is there a place or way to change it so if it's under a building it won't go out?

old Re: Scripting Questions

Uranium235
User Off Offline

Quote
Guest has written
I need help with fire. Is there a place or way to change it so if it's under a building it won't go out?


i dont think so...

old Re: Scripting Questions

Brandon
User Off Offline

Quote
You have two ways.

1. click the unit you want to add a state. And click "+" button next to the "state". That's it.

2. on:start {
addstate "number you want";
}

old Re: Scripting Questions

bizzl
User Off Offline

Quote
Gast has written
I need help with fire. Is there a place or way to change it so if it's under a building it won't go out?

check with s2 cmd inrange if the building is near the fire, and exchange the fire state through the eternal fire state if needed.
It isn't perfect, but I should work most of the time.

old Re: Scripting Questions

Uranium235
User Off Offline

Quote
i wanted to make a certain creature/animal tamable so that i can ride it. Now that i know how to make something tamable (ty Brandon) is there anyway to make it so that i can ride it when its tame?

old Re: Scripting Questions

DC
Admin Off Offline

Quote
yes. you have to add a script to the definition script of the unit you want to make rideable (mods/Stranded II/sys/units.inf):
1
2
3
4
5
on:use { 
	if (gotstate("self","tame")) {
		ride;
	}
}

old Re: Scripting Questions

E_net4
User Off Offline

Quote
I have a question my self.
I searched the website for a list of events and couldn't find one. It's because I want a turtle to get immediatly killed at the beginning of the map.

old Re: Scripting Questions

bizzl
User Off Offline

Quote
E_net4 has written
Huh, yes? That just tells me the syntax of an event.

Beneath the Heading "Ereignisse" there is a full listing of all system events

old Re: Scripting Questions

Brandon
User Off Offline

Quote
What is children and parents in script?
Same thing as $tmp?

I made CS map, and I want explosion for it.
What should I do for "???"

on: ??? {
if ($C4){explosion $x,$y,$z;}
}
edited 2×, last 25.02.08 09:52:06 am

old Re: Scripting Questions

Alphawar
User Off Offline

Quote
ok i just want to know.

is the tree house done with scripts??

if so would you beable to make it that you could build an expansion onto a building using a simular script??
To the start Previous 1 215 16 17121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview