[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUDs
. -> [Folder]  MUD Design Concepts
. . -> [Subject]  Armor sets
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Armor sets

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

Posted by Serenity   (18 posts)  [Biography] bio
Date Fri 05 Feb 2010 12:47 PM (UTC)
Hi everyone,

since posting here has been very helpfull in the past, maybe it'll help me with my current puzzle.

Since Playing WoW, i like the idea of armor sets. For example:
Bracer of Light
Legplacets of Light
Shoulder of Light

when wearing 2 items of this set, you get +xx
when wearing 3 items of this set, you also get +yy

How would you go about to implement this?

[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #1 on Fri 05 Feb 2010 04:33 PM (UTC)
You need two main pieces of information:

- what set does an item belong to?
- which bonuses go to which items depending on how many are equipped?

For example, does every item get the same bonus when you have two, and then three items of the set equipped? Or does each item get its own special bonus depending on the number of set items equipped?

One approach is to create a list of 'item_set' structures, each with a unique name. When you save an object, add an extra field: the name of the set it belongs to (or the empty string if none). What to do next depends on what kinds of bonuses you're planning on giving under which circumstances. You could have something like a list of object vnums associated with an effect structure, or you could have a single bonus that is applied to all objects.

A tricky bit will be to be very careful to add and remove effects at exactly the right moments as equipment is equipped and removed. When removing equipment, you need to make sure that you go remove all relevant effects from all other set objects. This means that you need to make sure you distinguish between 'set bonus' effects and effects that are normally on the object.

(As a random note, item sets are an older concept than WoW.)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

[Go to top] 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.


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

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]