Forum

> > Stranded II > Mods > Can't figure out command for reusable waterskin
Forums overviewStranded II overview Mods overviewLog in to reply

English Can't figure out command for reusable waterskin

4 replies
To the start Previous 1 Next To the start

old Can't figure out command for reusable waterskin

Captain Napalm
User Off Offline

Quote
I'm new to Stranded II, but it's quickly becoming one of my favorite games. I've been trying my hand at modding -- like beer from grain, water, and bitterroot, and making coffee from coffee beans which are made from roasted coffee fruit. I'm having a problem with something I'm trying to incorporate...

I'm trying to make reusable water skins (from skin and cord), but I'm having trouble. It works when I use it for water for anything else (like making dough or potions), but when I drink the water from the full skin, I can't get the empty water skin to generate. Here's the section of the code I used in the items_edible.inf file:

### Full Waterskin
id=125
name=Full Waterskin
group=potion
icon=gfx\fullskin.bmp
model=gfx\bag.b3d
scale=0.3
mat=glass
weight=500
info=a full waterskin
script=start
     on:eat {
          drink 5,0,50,0;
          alteritem 1,124:
          process "drinking",1000;
     }
script=end


Item 124 is the empty skin. I used the bag model for the 3D because I don't know how to make my own 3D graphics for this.

Can anybody suggest something else to try? Keep in mind that I'm not a programmer (the last thing I programmed was a GPA calculator in college and that was in Pascal... I'm old).

Thanks in advance.

old Re: Can't figure out command for reusable waterskin

lev258
User Off Offline

Quote
I'm sure, Extension mod has roasted coffee beans and also coffee. Don't know about beer. I'm just trying to say, if you want to learn more about Stranded modding, you are not alone, you can learn a lot from and even contribute to ongoing projects. Help is always appreciated.

old Re: Can't figure out command for reusable waterskin

Captain Napalm
User Off Offline

Quote
user Hurri04 has written
1
alteritem 1,124:
this line has to end with a semicolon: ";".

if it still doesnt work try this instead:
1
alteritem 1, 125, 1, 124;


(also please use the code-tag in the future )



1
alteritem 1, 125, 1, 124;
sorta worked... I'd get back an empty, but I'd lose 2 full ones. I tinkered around with it and got it to work using:
1
alteritem 0, 125, 1, 124;
Your help was very much appreciated. Thanks!!
To the start Previous 1 Next To the start
Log in to reply Mods overviewStranded II overviewForums overview