Jump to content
  • entries
    441
  • comments
    1186
  • views
    771332

Wardrobe

Sign in to follow this  
JTippetts

1372 views

So it turns out, Goblinson Crusoe is kind of a clothes horse. Well, not really, at least not yet. But he just might end up that way.

Today, I created a wardrobe to add to the list of workbenches:

LvcUR1f.jpg

Using the wardrobe will give you a spellbook of your currently-possessed equipment. (Just one weapon for now.) You can select and "cast" any item from the spellbook to equip that item.

OntkzxI.jpg

Casting the equip selection will equip the weapon, along with any effects the weapon description specifies, and switches GC to the correct stance for the weapon:

OzhAThQ.jpg

In this case, the weapon descriptor includes a staff, a light and a glowy particle effect.

The weapon switcher is implemented as a component that, when given a table describing a node chain for a weapon, will instance the node chain and parent it to the weapon bone in the animated model skeleton of the owning node. The skeleton contains a specially-named bone for this purpose. The switcher will then send an event to trigger a stance change based on the specified stance of the weapon.

Eventually, the weapon description will also optionally include a list of buffs that affect combat stats and actions; currently, though, it is merely cosmetic. I still have some work to do on the combat system before I start throwing a bunch of buffs around. That might be a project for the very near future.
Sign in to follow this  


3 Comments


Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!