Forum

> > Stranded II > Scripts > Scripting Questions
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Scripting Questions

2.429 Antworten
Seite
Zum Anfang Vorherige 1 2 3 4 5121 122 Nächste Zum Anfang

alt Re: Scripting Questions

Joku
User Off Offline

Zitieren
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.

alt Re: Scripting Questions

bizzl
User Off Offline

Zitieren
Joku hat geschrieben
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 hat geschrieben
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

alt Re: Scripting Questions

Gast

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

alt Re: Scripting Questions

bizzl
User Off Offline

Zitieren
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)

alt Stubborn Sharks!!!

Midnight
User Off Offline

Zitieren
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.)

alt Re: Scripting Questions

bizzl
User Off Offline

Zitieren
Midnight hat geschrieben
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 hat geschrieben
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; }

alt Re: Scripting Questions

Midnight
User Off Offline

Zitieren
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?

alt Re: Scripting Questions

bizzl
User Off Offline

Zitieren
Midnight hat geschrieben
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

alt Re: Scripting Questions

AdidasOFC1
BANNED Off Offline

Zitieren
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.

alt Re: Scripting Questions

Gast

Zitieren
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.?

alt Re: Scripting Questions

Midnight
User Off Offline

Zitieren
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?

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
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 ?

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
Flying Lizard hat geschrieben
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?

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
banane hat geschrieben
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 Kommentar

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

alt Re: Scripting Questions

Midnight
User Off Offline

Zitieren
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?
Zum Anfang Vorherige 1 2 3 4 5121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht