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 217 18 19121 122 Nächste Zum Anfang

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
bizzl hat geschrieben
HudaJan hat geschrieben
Flying Lizard hat geschrieben
it doesn't work with some behavours, on wich unit do you use it?

Behaviour predator...
Err... Is there different way how to change behaviour raptor onto some other...?

predator = raptor.
And there is btw no way to change the behaviour

Yes I know predator is raptor.. so this script (ai_mode) and this modus("flee")does'nt work whith this behaviour?

alt Re: Scripting Questions

bizzl
User Off Offline

Zitieren
HudaJan hat geschrieben
Yes I know predator is raptor.. so this script (ai_mode) and this modus("flee")does'nt work whith this behaviour?

...
We are both so dumb
You forgot the target class and id (this parameter must be given for "flee") and I didn't recognise that you used this specific mode...

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
bizzl hat geschrieben
...
We are both so dumb
You forgot the target class and id (this parameter must be given for "flee") and I didn't recognise that you used this specific mode...
nono look at this:
1
2
3
4
on:start {
$id=currentid();
ai_mode $id,"flee";
}
and look at this
1
ai_mode Unit-ID, "Modus" [, "Ziel-Klasse", Ziel-ID]
there should be only ID and no class(cause class is always the same-unit)

alt Re: Scripting Questions

bizzl
User Off Offline

Zitieren
[, "Ziel-Klasse", Ziel-ID] << that's what i'm talking about. You need a Target for "flee" (Ziel means target in german...)

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
bizzl hat geschrieben
[, "Ziel-Klasse", Ziel-ID] << that's what i'm talking about. You need a Target for "flee" (Ziel means target in german...)

Yes, I tried this as well, but it also didn't work...
1
2
3
4
on:start {
$id=currentid();
ai_mode $id,"flee","unit",1;
}
Maybe just typology is wrong, what do you think?

alt Re: Scripting Questions

bizzl
User Off Offline

Zitieren
HudaJan hat geschrieben
bizzl hat geschrieben
[, "Ziel-Klasse", Ziel-ID] << that's what i'm talking about. You need a Target for "flee" (Ziel means target in german...)

Yes, I tried this as well, but it also didn't work...
1
2
3
4
on:start {
$id=currentid();
ai_mode $id,"flee","unit",1;
}
Maybe just typology is wrong, what do you think?

no typos... perhaps the raptor behaviour is stronger than the mode, or the mode is kept to short

alt Re: Scripting Questions

Brandon
User Off Offline

Zitieren
I am making desk script......
script=start
on:use {
play "diary.wav";
process "researching...",300;
-------skip---------------
if ($education==1){iskill_"plant","global";}
if ($education==1){msg "Planting skill increased!";}

Then the "parameter", which was my nemesis, become 0 again!

What should I do? ×

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
Brandon hat geschrieben
I am making desk script......
script=start
on:use {
play "diary.wav";
process "researching...",300;
-------skip---------------
if ($education==1){iskill_"plant","global";}
if ($education==1){msg "Planting skill increased!";}

Then the "parameter", which was my nemesis, become 0 again!

What should I do? ×

1
2
3
4
5
6
7
on:use {
play "diary.wav";
process "researching...",300;
-------skip--------------
if ($education==1){iskill_"plant","global";}
if ($education==1){msg "Planting skill increased!";}
$education=0;

I need hint with the skins of bamboos and leafs. How can I make a model, where are leafs made like at bamboo. What texture do I have to put there to make leaf visible and other invisible?

Another question: Why is bomboo skin gray in gfx folder, and in game it is normally colored?
1× editiert, zuletzt 06.03.08 19:05:28

alt Re: Scripting Questions

Brandon
User Off Offline

Zitieren
oops, I made a mistake...

at first...

$education=random(1,30); <-bit annoying....

You can make models by 3dmax...That's what my cafe user said.... And, about the bamboo, maybe they used

color x,y(near 255),z;

alt Re: Scripting Questions

Flying Lizard
User Off Offline

Zitieren
normally the bamboo would just be grey too, but as brandon sayed the color was changed, but it wasn't changed by a command, but by a parameter of the definitions

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
Brandon hat geschrieben
You can make models by 3dmax...That's what my cafe user said....
Ok, I know, I've made several things already (you can have a look on prepared mod) And I've also figured out a model with leaves(all in 3ds Max) But after I tried a unit with the leaves and it shows not the leaves, but white plane with texture of leaves(this is made in milkshape) What's the problem? At units doesn't work .png images or what?

alt Re: Scripting Questions

Brandon
User Off Offline

Zitieren
I've never heard of it......
eyes?

if (condition){effect;}

There's always an error when I put two effects on there.

if (condition){effect1;}
if (condition){effect2;}

This one's too.......

I'll never be able to make counter strike map.

alt Re: Scripting Questions

Flying Lizard
User Off Offline

Zitieren
@HudaJan
some aggresiv units only attack you, when there is a free line between you, and their eyes, without object (polygons) between you two.
The parameter eyes tells the game on which height their eyes are.

@Brandon
actually you're supposed to split the if condition on more lines than one

if (condition) {
effect 1;
effect 2;
}

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
Flying Lizard hat geschrieben
@HudaJan
some aggresiv units only attack you, when there is a free line between you, and their eyes, without object (polygons) between you two.
The parameter eyes tells the game on which height their eyes are.

I've got it. And tell me, is the line between my eyes and it's eyes, or between me and it's eyes?
And so, if the value (eyes) is minus, he can never see you(because of ground)?

alt Re: Scripting Questions

DC
Admin Off Offline

Zitieren
I'm not sure if the algorithm takes account of the ground... try it. however as soon as you set the eyes value, the game will check if there is something between the player and the units eyes. the unit is not going to attack if there is something blocking the way. if you do not change eyes or set it to 0 the unit will attack no matter if there is something blocking.

about the textures with alpha channel in units: the blitz3d engine seems to have problems if you use animated models with textures that contain an alpha channel (like leaves). On my system it works as long as you only see one of the models but as soon as you see two or more all the parts which have such a texture turn invisible. so you have to use normal textures without alpha channel for units.

alt Re: Scripting Questions

Gast

Zitieren
I just need to know what modeling progam should I use to model for Stranded II

alt Re: Scripting Questions

Flying Lizard
User Off Offline

Zitieren
depends on how much money you want to spend.
Milkshape would be best, but you've got to buy it.
but You can also use wings3d or Blender

alt Re: Scripting Questions

Brandon
User Off Offline

Zitieren
Wings3d is hard... I don't recommend that.

Milkshape shareversion was the best!

30 days were gone!

alt Re: Scripting Questions

Chopii
User Off Offline

Zitieren
But if I use Blender or Wings3d and I translationed to *.B3D, it shows a info.

Unable to load thing.B3D.

What I went wrong?

(((PS: My first englisch question.)))
Zum Anfang Vorherige 1 217 18 19121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht