Question about grabbing item pointers

Discussion in 'General Modification' started by Jesse Heinig, Aug 24, 2006.

Remove all ads!
  1. Jesse Heinig

    Jesse Heinig Established Member

    Joined:
    Jun 26, 2005
    Messages:
    126
    Likes Received:
    0
    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.
     
  2. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    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.
     
  3. Jesse Heinig

    Jesse Heinig Established Member

    Joined:
    Jun 26, 2005
    Messages:
    126
    Likes Received:
    0
    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?
     
  4. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    I'm online again. Let's talk.
     
Our Host!