The Dink Network

Reply to Re: Script question: adding an item

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:
 
 
October 30th 2002, 05:55 PM
wizardg.gif
Paul
Peasant He/Him United States
 
: I want to add an item with no extra features.

: Just add item, with an icon, and then, when Dink needs it, load item and talk to someone. But, though I've tried several scripts of the source, it doesn't work: I can't get the item into the inventory by using add_item(), let alone do the rest. What script do I have to use?

I'm not quite sure I understand. An item should always have a script IMO, if nothing else it should make Dink say "this is so and so, boy it's ugly." or somesuch, and if made to be compatable with the orginal games items, load Dink's unarmed graphics.

When you say "load item and talk to someone" do you mean you want the game to automatically select the item? Or the player would? There's no good way to do the former.

If it's the icon you're having trouble with, all there is to it is giving the correct sequence and frame number of the graphic you want, it's not connected to the script at all. You could for example give Dink a longsword with a potion graphic (or the reverse).