(not a bug) Item_action

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

(not a bug) Item_action

Post by Joramun »

Hi,

For some reason, item_action didn't work as expected in DM. The goal was to instantly create a firestaff_gem in the mouse hand.
I set it up that way, activated by the amalgam_gembare, with firestaff as an opby (and destroy=true to make sure the hand was free).

I avoided the bug by using a qswapper instead. Might be a problem of sync: the item_action firing before the firestaff in hand is destroyed.
What Is Your Quest ?
User avatar
Sophia
Concise and Honest
Posts: 4306
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: (bug ?) Item_action

Post by Sophia »

Yes, that's the issue. The opby item is destroyed only after triggers operated by it are handled. This is normally desirable. :)
Using a swap is probably the sanest and most elegant solution.
Post Reply