The Dink Network

cur_weapon/cur_magic not arming correctly

January 25th, 07:24 PM
maiden.gif
I'm currently trying to set current weapon/magic to an item you've just received, but I'm having a little trouble. While I can get both to show up in your hot bar, the weapon won't do anything when pressing the attack button, and the magic will not charge up (generating dnomagic responses if you try and press the spell button). Is there something I'm missing that's required to make this work?

My test code, starting from an empty inventory, looks like this:
add_item("item-sw1",438, 7);
add_magic("item-fb",437, 1);
wait(1)
&cur_weapon = 1
&cur_magic = 1
draw_status();
January 25th, 08:25 PM
custom_simon.gif
SimonK
Peasant He/Him Australia
 
add these two commands

arm_magic();
arm_weapon();

and possibly a

draw_status();

after those
January 25th, 09:38 PM
maiden.gif
Awesome. That fixed it. Thank you!