The Dink Network

Reply to Re: More trouble than it's worth.

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
December 17th 2009, 02:00 PM
knightgl.gif
Castman
Peasant He/Him Brazil
Some day I'll finish my mod... Some day... 
Thank you everybody

What I want to do is was MsDinkalot said, a chest to store items, but my new mod is already using lots of variables, if I need to create another one to identify each item on the chest I'll overbound the variables limt soon

Using variables I already know how to do, just something like this:

void talk ( void )
{
store:
&ssword = count_item("item-sw1");
&csword = count_item("item-sw2");
&lsword = count_item("item-sw3");

choice_start();
...
"Which item would you like to lay on the trunk?"
(&ssword > 0) "Simple Sword"
(&csword > 0) "Claws Sword"
(&lsword > 0) "Light Sword"
...

if (&result == 1)
{
kill_this_item("item-sw1");
&sword1stored = 1;
goto store;
}
if (&result == 2)
{
kill_this_item("item-sw2");
&sword2stored = 1;
goto store;
}
... ...

As you can see I would have to create on MAIN.C a new variable to each item, and the number would be the quant of this item on the chest.

I want something like this:

void talk ( void )
{
store:
&ssword = count_item("item-sw1");
&csword = count_item("item-sw2");
&lsword = count_item("item-sw3");

choice_start();
...
"Which item would you like to lay on the trunk?"
(&ssword > 0) "Simple Sword"
(&csword > 0) "Claws Sword"
(&lsword > 0) "Light Sword"
...

if (&result == 1)
{
kill_this_item("item-sw1");
: ave to chest "item-sw1" += 1::
goto store;
}
if (&result == 2)
{
kill_this_item("item-sw2");
: ave to chest "item-sw2" += 1::
goto store;
}
... ...

So the chest would have the item name instead of variables and numbers... I still haven't found any way to do this, but I've seen so many awesome scripts from people here that I tough someone already did something like it...

Which game got that "items trunk"? If he didn't used variables would be a solution

Thank you and Good Game,
Castman