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 282 83 84121 122 Nächste Zum Anfang

alt Re: Scripting Questions

amstel bier9
User Off Offline

Zitieren
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?
1× editiert, zuletzt 26.12.09 08:03:16

alt Re: Scripting Questions

Vibhor
User Off Offline

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

Increase attack of the unit?

alt Re: Scripting Questions

amstel bier9
User Off Offline

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

alt Re: Scripting Questions

Spicy Night Owl
User Off Offline

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

alt Re: Scripting Questions

amstel bier9
User Off Offline

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

alt Re: Scripting Questions

amstel bier9
User Off Offline

Zitieren
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

alt Re: Scripting Questions

The Second
User Off Offline

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

alt Re: Scripting Questions

jauke
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 282 83 84121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht