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 217 18 19121 122 Next To the start

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
bizzl has written
HudaJan has written
Flying Lizard has written
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?

old Re: Scripting Questions

bizzl
User Off Offline

Quote
HudaJan has written
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...

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
bizzl has written
...
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)

old Re: Scripting Questions

bizzl
User Off Offline

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

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
bizzl has written
[, "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?

old Re: Scripting Questions

bizzl
User Off Offline

Quote
HudaJan has written
bizzl has written
[, "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

old Re: Scripting Questions

Brandon
User Off Offline

Quote
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? ×

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
Brandon has written
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?
edited 1×, last 06.03.08 07:05:28 pm

old Re: Scripting Questions

Brandon
User Off Offline

Quote
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;

old Re: Scripting Questions

Flying Lizard
User Off Offline

Quote
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

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
Brandon has written
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?

old Re: Scripting Questions

Brandon
User Off Offline

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

old Re: Scripting Questions

Flying Lizard
User Off Offline

Quote
@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;
}

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
Flying Lizard has written
@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)?

old Re: Scripting Questions

DC
Admin Off Offline

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

old Re: Scripting Questions

Guest

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

old Re: Scripting Questions

Flying Lizard
User Off Offline

Quote
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

old Re: Scripting Questions

Brandon
User Off Offline

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

Milkshape shareversion was the best!

30 days were gone!

old Re: Scripting Questions

Chopii
User Off Offline

Quote
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.)))
To the start Previous 1 217 18 19121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview