Forum

> > Stranded II > General > Item: Pen Knife
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Item: Pen Knife

7 replies
To the start Previous 1 Next To the start

old Item: Pen Knife

E_net4
User Off Offline

Quote
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.
edited 8×, last 13.06.09 09:40:52 pm

old Re: Item: Pen Knife

EwokChieftain
User Off Offline

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

old Re: Item: Pen Knife

E_net4
User Off Offline

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

old Re: Item: Pen Knife

EwokChieftain
User Off Offline

Quote
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

old Re: Item: Pen Knife

E_net4
User Off Offline

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

old Re: Item: Pen Knife

CoreyRDean
User Off Offline

Quote
2small2betall has written
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

old closed Re: Item: Pen Knife

Thomazz
User Off Offline

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

Admin/mod comment

uhm he edited the code. it's okay. however your post is spam. /DC
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview