cur_weapon/cur_magic not arming correctly
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:
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();
add these two commands
arm_magic();
arm_weapon();
and possibly a
draw_status();
after those
arm_magic();
arm_weapon();
and possibly a
draw_status();
after those