free "self";
Forum
 
 
Scripts 
 Scripting Questionsfree "self";
1
open "professor" [adventure1]
### 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 07:03:16 am
 Quote
other question: 
is there a script when a unit hit the player, it dies?
is there a script when a unit hit the player, it dies?
Increase attack of the unit?
 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
 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
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.
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...
 terraintexture  Bloodshot has written
where to put that can you make an example?
 terraintexture is for whole terrain. ### 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
 Withoutname has written
The last } is not needed
ik thanks im trying this now...
So i can't help ya , sorry
 
  
 Scripting Questions


 Offline