In my work on alternative forms of the Warp Wood spell, I'm looking to grab pointers to a creature's weapons, shield, and ammo wielded. What would I use to get those? For example: ammo_obj = target_item.obj.item_worn_at ( item_wield_ammo ) Except that "item_wield_ammo" is wrong, and I don't know what it should be. I know the armor slot because it's used in Heat Metal ( item_wear_armor ). Thanks, Jess.
For ammo, try replacing item_wielded_ammo with 9. Like this: Code: ammo_obj = target_item.obj.item_worn_at ( 9 ) I know using 12 for robes works. It may have to be 09, but try it with 9 first. If that works, then shields should be 11, primary weapon should be 3, and secondary weapon should be 4.
I just found Darmagon's notes on the slots, and that looks correct. Is there a way to tell if an item is, say, a type_missile_weapon or something?