Forum

> > Stranded II > General > Item: Pen Knife
ForenübersichtStranded II-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Item: Pen Knife

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Item: Pen Knife

E_net4
User Off Offline

Zitieren
Here is my first item: A pen knife!

How to install:
Download the gfx here.
And add the following code into file \mods\Stranded II\sys\items_tools.inf
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
### Pen Knife
id=121
name=Pen Knife
group=tool
icon=gfx\penknife.bmp
model=gfx\penknife.3ds
scale=0.15
behaviour=blade
mat=metal
weight=100
damage=4
info=this portable knife is great for cutting small plants and bushes
healthchange=0
script=start
	on:impact {
		$tmp=impact_class();
		$tmp2=impact_id();
		//+ Bonus Damage on Bushes
		if (compare_material($tmp,$tmp2,"bush")==1){
			damage $tmp,$tmp2,6;
		}
		freevar $tmp;
		freevar $tmp2;
	}
		//+ Bonus Damage on Leaves and Hemp
		if (compare_material($tmp,$tmp2,"leaf")==1){
			damage $tmp,$tmp2,8;
		}
		freevar $tmp;
		freevar $tmp2;
	}
script=end

NOTE: If ID 121 is already occupied, you'll have to use another ID.

Edit: Changed the ID to 121 to be compatible with the latest version of StrandedII, which uses ID 120 already.
8× editiert, zuletzt 13.06.09 21:40:52

alt Re: Item: Pen Knife

EwokChieftain
User Off Offline

Zitieren
My dream has come true.
A respectable knife. If you want to make it even better, you could make a drawn and an undrawn version. Long, short, long short, hee hee.

alt Re: Item: Pen Knife

E_net4
User Off Offline

Zitieren
The drawn version's done, so.. But wait, why would we need an undrawn knife?
For more realism, I suppose? I can make it, if you really want it.

alt Re: Item: Pen Knife

EwokChieftain
User Off Offline

Zitieren
Weeeell... an undrawn knife is great
- as ammunition for a slingshot
- to look at
- as a paperweight (use at desk)
- to draw it in order to obtain a drawn knife

alt Re: Item: Pen Knife

E_net4
User Off Offline

Zitieren
lol? In Stranded?
Pherhaps I didn't check the desk yet.
Anyway, I fixed the script, as it wasn't strong enough.
Replace it.

alt Re: Item: Pen Knife

CoreyRDean
User Off Offline

Zitieren
2small2betall hat geschrieben
Do we just copy and paste the code for the knife into the directory? sorry kinda late

Copy the code into "mods/StrandedII/sys/items_weapons.inf" then put the gfx in their directory

alt geschlossen Re: Item: Pen Knife

Thomazz
User Off Offline

Zitieren
Wtf ? O.o the Topic is from last year

Admin/Mod Kommentar

uhm he edited the code. it's okay. however your post is spam. /DC
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtStranded II-ÜbersichtForenübersicht