Forum

> > Stranded II > General > Your item scripts.
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Your item scripts.

4 replies
To the start Previous 1 Next To the start

old Your item scripts.

Qtw
User Off Offline

Quote
When you Play around with the defs and scripts for items and you want to share what you found and made place them here! I want everyone to enjoy this awesome game to fullest! So please place everything you find/make here.
And maybe we all might learn some new things about the game by combining a few of these!

old Re: Your item scripts.

Silent_Control
User Off Offline

Quote
I don't understand. Do you mean to post here the items that we create (by modelling, scripting) or you want the item combinations in the game/mods?

old Re: Your item scripts.

Qtw
User Off Offline

Quote
what i meant was post any items that have scripts here. things that you find out about.

old Re: Your item scripts.

aimeewilbury
User Off Offline

Quote
Here's one for coffee and one for coconut milk. Using already existing models (I have a model for the coffeecup, but it was created by someone else for me so don't want to infringe copyrights).

For items_edible:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
### Coconut Milk
id=125
name=Coconut Milk
group=potion
icon=gfx\water.bmp
model=gfx\water.b3d
scale=0.28
mat=glass
weight=450
info=milk squeezed out of coconuts
script=start
     on:eat {
          process "drinking",1000;
          drink 5,10,30,0;
     }
script=end

### Coffee
id=130
name=Coffee
group=potion
icon=gfx\juice.bmp
model=gfx\juice.b3d
scale=0.28
mat=glass
weight=450
info=mmmm, fresh coffee
script=start
	on:eat {
		process "drinking",1000;
		drink 20,15,40,20;
	}
script=end

And for combinations_potions:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
### Coconut Milk (1xCoconut + Stone)
combi=start
id=125
req=27,1
req=23,1,stay
gen=125
script=start
     play "bubbles.wav";
     process "squeezing coconut",2270;
script=end
combi=end

### Coffee (30xCoffee Fruits + Water + Stone)
combi=start
id=juice
req=70,30
req=23,1,stay
req=38,1
gen=130
script=start
	play "bubbles.wav";
	process "brewing coffee",2270;
script=end
combi=end



Also created a buildable raptor you can ride without worries of him dumping you. And he doesn't run off when you jump off him.

units file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
### Buildable Raptor
id=80
name=Buildable Raptor
group=vehicle
model=gfx\raptor.b3d
icon=gfx\raptor.bmp
scale=0.5
colxr=15
colyr=30
health=110
eyes=10
turnspeed=3.0
ani_idle1=4,8,0.02
ani_move=2,3,0.06
ani_die=8,11,0.05
fx=24
speed=20
sfx=raptor
rideoffset=5
col=1
steering=0
behaviour=vehicle
script=start
	on:use { ride; }
	on:kill { free "self"; }
	on:build_finish {
		event "raptorbuild",0,0;
	}
			
script=end

And for Buildings

1
2
3
4
5
6
7
8
### Buildable Raptor
id=80
group=vehicle
unitid=80
req=96,5
req=71,30
req=95,30
req=94,30

I think you'll have to put "unlockbuilding 80" under one of the other buildings to unlock it.

Also, if you change the raptor's behavior to "aircraft" he'll fly! its kinda funny.
edited 1×, last 28.06.09 04:13:00 am

old Re: Your item scripts.

bezmolvie
User Off Offline

Quote
I tried to make one of these called Custom Items. Flying Lyzard closed it. My next thread was that of the MKVCS mod thread, where I put these items... My thread.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview