Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ Area Editor ➜ General ➜ Using 'Area Editor' to equip a mobile with objects - An anomaly (I think)

Using 'Area Editor' to equip a mobile with objects - An anomaly (I think)

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #15 on Tue 09 Oct 2007 12:47 AM (UTC)
Message
There is a comment above the list when you do Choose Object "Must have a 'wear' flag set". Do those objects have that flag set?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #16 on Tue 09 Oct 2007 12:51 AM (UTC)
Message
Quote:

The ultimate problem I'm having is that all objects with a wear flag after 'flag19' do not appear in the 'Choose object' box after clicking the equip button. Maybe this is built into area editor?


You are right, it is hard-coded, sorry. See this part:


  switch (m_iItemType)
    {
    case eAny: bUseThis = true; break;
    case eShopItem: bUseThis = object->cost > 0; break;
    case eWearItem: bUseThis = (object->wear_flags &
                                (
                                ITEM_WEAR_FINGER	  |
                                ITEM_WEAR_NECK		  |
                                ITEM_WEAR_BODY		  |
                                ITEM_WEAR_HEAD		  |
                                ITEM_WEAR_LEGS		  |
                                ITEM_WEAR_FEET		  |
                                ITEM_WEAR_HANDS		  |
                                ITEM_WEAR_ARMS		  |
                                ITEM_WEAR_SHIELD	  |
                                ITEM_WEAR_ABOUT		  |
                                ITEM_WEAR_WAIST		  |
                                ITEM_WEAR_WRIST		  |
                                ITEM_WIELD		      |
                                ITEM_HOLD		        |
                                ITEM_DUAL_WIELD		  |
                                ITEM_WEAR_EARS		  |
                                ITEM_WEAR_EYES		  |
                                ITEM_MISSILE_WIELD  
                                )) != 0; break;
    case eTakeItem: bUseThis = (object->wear_flags & ITEM_TAKE) != 0; break;
    case eContainerItem: bUseThis = object->item_type == ITEM_CONTAINER; break;
    }   // end of switch


As a work-around all I can suggest doing is add one of those wear types, as well as the one you want (eg. HOLD).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nallen   USA  (8 posts)  Bio
Date Reply #17 on Tue 09 Oct 2007 05:12 AM (UTC)
Message
Thanks for all your help Nick, much appreciated.

I'm sure this has been answered somewhere, but do you plan on releasing any updates/patches or newer versions of Area Editor?

Also, in reference to this issue . . . I've expanded a little on your 'work around.' So for anyone else who may experience the issue, here's what you can do:

Workaround

  1. Edit an object's wear flags - Add the take wear flag, your desired wear flag, and the head wear flag (as head is likely to be at the top of most, if not all config files) to an object.
  2. Equipping - Equip the object on the desired mobile and choose the desired wear location (eg. wield if you're equipping a dagger). This will successfully create the reset.
  3. Return to the object - Remove the unnecessary wear flag. Which if followed from above would be the head wear flag.
  4. Save - The reset will work as desired, Area Editor will not view this as an error. And your mobile will be happy!
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #18 on Tue 09 Oct 2007 05:53 AM (UTC)
Message
I don't have any immediate plans to release a new version. The source is publicly available if anyone wants to amend it to suit their own MUDs. I know it already doesn't support the nested resets in FUSS SMAUG which is quite fiddly to add.

Your idea for making the resets work is ingenious. The code I posted above is only used to populate the combo box for when you choose where to put the item, so removing the flag as you suggest won't cause any problems.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


67,118 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.