• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Looktype change on equipped items

ownidea

New Member
Joined
Jan 20, 2019
Messages
2
Reaction score
0
Hello guys,

I'm trying to find the way about custom outfits depends on what equipment players wear.
In my mind it looks like that right now.

Suppose we have armor and weapon (if I'm correct it will be 3 outfit spirites, except basic if player wear nothing)
  • Armor and no weapon
  • Weapon and no armor
  • Weapon and armor

In this case when I add another weapon and armor I must prepare new spirites for every stance
  • (new) Armor and no weapon
  • (new) Weapon and no armor
  • (old) Weapon and (new) armor
  • (new) Weapon and (old) armor
  • (new) Weapon and (new) armor

For example if I have got so many items I will need to do so many spirites for every stance. Is there any way to avoid it for the future?
I want to find the way to make it more flexible.

Thanks for any advices!
 
You can use something similar to addons, every item has it's equip sprite as a addon. Then when player equip that item, he get that addon.
Also you can make a new outfit which looks like an equipped item. If player is wearing that item just draw his base outfit ("naked man") and then draw outfit assigned to item on it.
I can be made in OTC in function:
Code:
void Creature::internalDrawOutfit(Point dest, float scaleFactor, bool animateWalk, bool animateIdle, Otc::Direction direction, LightView *lightView)[/code
 
@Keal Atis

According to Your idea it will work like multiply addon components if I'm right? Seems to be good enough but is it possible to manipulate addon spirites. I mean, will it work so that I will create one spirite for one item and it will be enough?

For example: if I will have 2 weapons and 3 armors i need to prepare 5 spirites (except basic naked man/woman) and it will work like naked man with possible 5 addons depends on what item was founded.
 
@Keal Atis

According to Your idea it will work like multiply addon components if I'm right? Seems to be good enough but is it possible to manipulate addon spirites. I mean, will it work so that I will create one spirite for one item and it will be enough?

For example: if I will have 2 weapons and 3 armors i need to prepare 5 spirites (except basic naked man/woman) and it will work like naked man with possible 5 addons depends on what item was founded.
Yes, you are right, but armor for melee and armor for women could look different.
 

Similar threads

Back
Top