Fire Ball icon ???
I know that there is a fire ball icon that the player uses in the magic box in the game tools/menu area.
I attached get-fb to a scroll and when Dink picks it up the scroll shows up not the Fire ball icon. He can use fireballs, just the icon in the game tray/toolbar/menu is the scroll.
What steps do I need to take to make the right icon show up - Mind I have other things too that I will want to attach icons too.
Thanks
I attached get-fb to a scroll and when Dink picks it up the scroll shows up not the Fire ball icon. He can use fireballs, just the icon in the game tray/toolbar/menu is the scroll.
What steps do I need to take to make the right icon show up - Mind I have other things too that I will want to attach icons too.
Thanks
Well, the line of code that controls the icon is this one:
//for magic items
add_magic("item-abc",234, 1);
//for general items
add_item("item-abc",123, 2);
The first parameter is the name of the item's script (without .c or .d), the second one is the sequence of the item's icon and the third one is the number of the icon in the sequence. So you'll need to look in the editor for the right icon and remember the numbers and place them in the script. Usually these can be found in sequence 437 and 438. So just copy the working script and modify this line, then it'll display the correct icon.
//for magic items
add_magic("item-abc",234, 1);
//for general items
add_item("item-abc",123, 2);
The first parameter is the name of the item's script (without .c or .d), the second one is the sequence of the item's icon and the third one is the number of the icon in the sequence. So you'll need to look in the editor for the right icon and remember the numbers and place them in the script. Usually these can be found in sequence 437 and 438. So just copy the working script and modify this line, then it'll display the correct icon.