The Dink Network

Reply to Re: Turnip Blues

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:
 
 
February 27th 2005, 06:15 PM
spike.gif
There are a few commands...

count_item("item-bah");

returns how many item-bahs you have.

compare_weapon("item-bah");

returns 1 if item-bah is currently armed, this was used in the original Dink at the goblin sanctuary.

I think there's at least one more command, but I forgot it. For magic simply change "weapon" or "item" to "magic".

To do something do something like

if (count_item("item-bah") > 0)
{
say("Bah", 1);
kill_game();
}

or

int &bah = compare_weapon("item-bah");
if (&bah == 1)
{
say("Bah", 1);
restart_game();
}