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 2 3 4 5121 122 Next To the start

old Re: Scripting Questions

Joku
User Off Offline

Quote
I've figured that much out, but then the parrot doesn't move at all when I'm not riding it. What I want is for the bird to have the idle behavior until I start riding in, then I want it to have the aircraft behavior.

old Re: Scripting Questions

bizzl
User Off Offline

Quote
Joku has written
I've figured that much out, but then the parrot doesn't move at all when I'm not riding it. What I want is for the bird to have the idle behavior until I start riding in, then I want it to have the aircraft behavior.

afair you can't change the behaviour of an unit. It's bad, you're right, but DC never implemented it (perhaps in some post-service-time fix ore something)

Though, if there is ani_idle1 defined the unit should at least idle.
I know that in particular from the vehicle behaviour.


Joku has written
True, I probably will need more time, but this isn't exactly a fully-fledged mod; it's only designed to work with one map.

But why my own mod? That's quite simple: I have my own story to tell.

If I could, I would shoot people doing something like that
sry, but I don't think this is a good idea. Most stuff can be done using s2 cmd def_override or s2 cmd def_extend . Anything else (like your parrot) can, if really necessary, be done with some tricks and sequences.
And what doesn't work there should be kept dead.
That's my opinion. Anyone else can off course differ from it

old Re: Scripting Questions

Guest

Quote
do you need spawners to make animals appear regularly. not lions, but fish and such?

old Re: Scripting Questions

bizzl
User Off Offline

Quote
for fish, you can use the coral. lions can get spawned by the lion stone, raptors by the raptor nest, kiwis by the kiwi nest.
For anything else you need the spawn control, yes. (there are other solutions, but this one is the easiest and best)

old Stubborn Sharks!!!

Midnight
User Off Offline

Quote
I have been trying to edit the script in the S2Ext (For myself only...is that ok? o_O; ) so I can ride the sharks. I did it on the S2 but the S2Ext is REALLY different....and the links didn't help.... Can you help? (I am also trying to get it so I can ride the parrots.)

old Re: Scripting Questions

bizzl
User Off Offline

Quote
Midnight has written
I have been trying to edit the script in the S2Ext (For myself only...is that ok? o_O; )

It is okay as long as you don't release maps depending on this changes or release a fork of the mod.

Midnight has written
so I can ride the sharks. I did it on the S2 but the S2Ext is REALLY different....and the links didn't help.... Can you help? (I am also trying to get it so I can ride the parrots.)

Why do so many people wanna ride the freaking parrots? Is that some new sort of perversion ?
Anyway, there is no fundamental difference between S2 and S2Ext, the files in the later are just a bit messier because I'm using an old mod development tool.
However, add the following code to the shark and parrot and it should work:
1
on:use { ride; }

old Re: Scripting Questions

Midnight
User Off Offline

Quote
Ok, Thanks! I will try it immediately, and also, I tried riding a shark when it was underwater, but it died.... is there a way to make it be able to be ridden underwater as well as above?

old Re: Scripting Questions

bizzl
User Off Offline

Quote
Midnight has written
Ok, Thanks! I will try it immediately, and also, I tried riding a shark when it was underwater, but it died.... is there a way to make it be able to be ridden underwater as well as above?

just add the line maxdepth=10000 somewhere above of script=start

old Re: Scripting Questions

AdidasOFC1
BANNED Off Offline

Quote
no. s2 cmd ride is only for land units. You can't.

But.... you could change the behaviour to water vehicle or something, then you could ride them at the surface.

old Re: Scripting Questions

Guest

Quote
How i can make living areas like
lions will not go to some place in island,
but others can, raptors would live in some part of island
etc.?

old Re: Scripting Questions

Midnight
User Off Offline

Quote
For riding parrots, do I put
1
2
3
4
5
6
7
8
9
{
	local $x,$z,$yaw;
	$x=getx("self");
	$z=getz("self");
	$yaw=getyaw("self");
	$x=create("object",287,$x,$z);
	setrot "object",$x,"self",$yaw,"self";  
	free "self";
}
and for behavior=aircraft
or behavior=plane
if I want to be able to ride it in the air?

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
I have urgent question, I just started with scripting, my skills are only that i can add diary note. But now I need just one script. I need to set up unit to be enemy of player, if you understand me. In the concrete I need the negro to attack player... I hope it is possible, is'nt it ?

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
Flying Lizard has written
no, not with your skills in scripting (it is possible, but it's pretty difficult)

If it's so, you can't just type the script, I have to write to write to native units?

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
banane has written
in the german extension mod, there is an aggressive native!

And where can I download it please? And isn't problem, that I can speak german even not a word?

Admin/mod comment

do not write multiple posts in a row! use the edit function! this is spam!

old Re: Scripting Questions

Midnight
User Off Offline

Quote
How can I make it that I have a high skill level to start with (in planting)? Also, how do I unlock all the buildings automatically?
To the start Previous 1 2 3 4 5121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview