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 244 45 46121 122 Next To the start

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
Yeah with my "noncence" (a bit rude, I'm sorry )
I ment it is not possible

Yeah I know it cause I was trying to make (long time ago) exactly agressive bird (before version 1001 - there is such a behaviour) and I was trying to combine it to make powerful dragon MUHUHAHAHAHA
I gave it up and after version 1001 I just lost interest in the dragon

old Re: Scripting Questions

Vince87
User Off Offline

Quote
is there a way to alter items when I hit it with a tool?
The tool is in my hand and the item lies on the ground for example.

old Re: Scripting Questions

Vince87
User Off Offline

Quote
and how can i alter the position of items that I drop? I want to be able to drop things on tables. script=start
thit script for example doesnt work:

on:drop{
setpos "item", 4,getx("self")+0.5,gety("self"),getz("self");
}
}
script=end

where is the problem?
can somebody help me

old Re: Scripting Questions

Flying Lizard
User Off Offline

Quote
Don't make doubleposts, how often do we have to tell you guys about that, there is an edit button

1.use the event on:hit
2.I've already answerd that question in the german forum.

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
Oh yeah I didn't notice, sorry
I'm just used to work with those scripts cause I work more with stored items than with general items liying around
Never mind...

old Re: Scripting Questions

Vince87
User Off Offline

Quote
I managed to let the items fall wit offset.

but they dont fall in front of the player.only at the x axis.
how do i let them know my rotation?

script=start
on:use {
     $id=create("item",X);
     rpos "item", $id,0,40,20;
     freestored "unit",1,X,1;
}
script=end

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
use s2 cmd setpos and as you can notice there are three params, pitch yaw and roll,
pitch Y,X rotation
yaw Y,Z rotation
roll X,Z rotation

old Re: Scripting Questions

Guest

Quote
it was me,just forgot my password and i cannot get it back because i'm not in house (just cannot edit)

old Re: Scripting Questions

Vince87
User Off Offline

Quote
why doesnt it work?:(the first item just disapears...no error)
on:kill {
      $id=currentid();
$x=getx("item",$id);
      $y=gety("item",$id);
$z=getz("item",$id);
      $b=create("item",4);
      rpos "item", $b,$x,$y+30,$z;
$bla=1;
      if($bla==1){
free "self";
}
}
script=end

I want to replace one item with another. but at exactly the same place. with "create" I can only set x and z coordinates.

can anybody help me?

the height of the item is the important part!

old Re: Scripting Questions

DC
Admin Off Offline

Quote
rpos is for "moving" an item. you should use setpos instead.
1
setpos "item", $b,$x,$y,$z;
and you don't need $id=currentid(); and so on. just use $x=getx("self"); etc.

furthermore the free "self" makes no sense in the kill event of an item. the item will be removed anyway in a kill event.

old modeling animashion help

darksol
User Off Offline

Quote
i made a model of a wiled bore and i used milk shape to animated it all that i need is some help on the script normal I am good at reading script but the script for the units is a little confusing is there a guide that explains the script for the units?
To the start Previous 1 244 45 46121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview