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 282 83 84121 122 Next To the start

old Re: Scripting Questions

amstel bier9
User Off Offline

Quote
what is wrong with this script?


### Palm
id=1
name=Palm01
group=palm
icon=gfx\palm01.bmp
model=gfx\palm01.b3d
swayspeed=2
swaypower=2
fx=16
scale=2.3
mat=wood
health=300
find=15,15,3
behaviour=tree
healthchange=15
script=start
     // Spawn Trunk
     on:kill {
          if (spawntimer("self")>=0){
               event "iskill_wood","global";
               create "object",247,getx("self"),getz("self");
               corona getx("self"),getz("self");
          }
     }
     on:use {
     alterobject 262;
     free "self";
script=end

other question:
is there a script when a unit hit the player, it dies?
edited 1×, last 26.12.09 08:03:16 am

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
Quote
other question:
is there a script when a unit hit the player, it dies?

Increase attack of the unit?

old Re: Scripting Questions

amstel bier9
User Off Offline

Quote
Withoutname has written
Amstel, you forgot to put } at ending of use event. Its also extra } at line before use event.


thanks, i'm going to try it now..

and attack the player

old Re: Scripting Questions

Spicy Night Owl
User Off Offline

Quote
Quote
Also how do i add a diary to an info. here is the code.

1
open "professor" [adventure1]


Nobody is gonna help me?

OT:
Here is the script for the kill self help.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
### Leatherman
id=125
name=Leatherman
group=tool
icon=gfx\leatherman.bmp
model=gfx\ironbar.b3d
scale=2
mat=metal
weight=10
rate=1000
damage=5
info=my Leatherman Fuse
healthchange=0
script=start

	on:attack2 { 

                alteritem $Leathermans_qty,125,$Leathermans_qty,126;
		alteritem  1,126;
                                   kill "self";
 
		msg "Knife Mode",4;

script=end

Copy the script and bold the edited parts.

old Re: Scripting Questions

amstel bier9
User Off Offline

Quote
is there a script to change the color of the ground when a tree spawns?
like
spawn:object,123;
     change color,54;

or after 4 days that the color changed and 4 days later it change again but only another color?

something like that?

already thanks...

old Re: Scripting Questions

amstel bier9
User Off Offline

Quote
does anyone know whats wrong with this weather script?


### Palm
id=380
name=Palm02 (autumn)
group=palm
icon=gfx\palm02.bmp
model=gfx\amstel bier9\palm02herfst.b3d
swayspeed=1
swaypower=2
fx=16
scale=2.5
mat=wood
health=200
find=15,10,3
behaviour=tree
healthchange=15
script=start
     // Spawn Trunk
     on:kill {
          if (spawntimer("self")>=0){
               event "iskill_wood","global";
               create "item",7,getx("self"),getz("self");
               corona getx("self"),getz("self");
          }
     }
     on:changeday {
          alterobject "self",381;
          getweather1;
          }
     }
script=end

old Re: Scripting Questions

The Second
User Off Offline

Quote
How can I add a flare (22) state to a bolt when I fire it from somewhere? I tried to copy that bolt and write on it weaponstate=22 but It just don't have any states when it's flying.

old Re: Scripting Questions

jauke
User Off Offline

Quote
I wanted this too ... a long time ago , but i gave up hope ,because i could't succeed....
So i can't help ya , sorry
To the start Previous 1 282 83 84121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview