• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Pregunta sobre objetos - Item question

Status
Not open for further replies.
Level 1
Joined
Aug 12, 2010
Messages
2
Spanish:
Mi pregunta es: ¿Como puedo hacer que los objetos tengan una categoria de equipo ( como Casco, Pecho y Guantes ) y establecer que solo se pueda poseer 1 por categoria?
Ejemplo: Solo puedes llevar un Casco y no dos al mismo tiempo.

English:
My question is: How I can make objects have a category of equipment (such as helmets, gloves and chest) and establish that it can only have 1 per category?

Example: You can only wear a helmet and not two at the same time.

[ES] Mi idioma nativo es Español / Castellano
[EN] My native language is Spanish / Castilian
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
one way is by using custom values. for example an item with a cv of 1 will be helmets, then2 will be weapons. you can change the cv of items via trigger. :)

or with item level, like helmet get item level 100 and armors get item level 200, weapons 300 etc
that dont changedable in game, u must set in object editor but i guess helmet dont want change in game to weapons so it is ok with item level too.

when u pick up a item then u just check the item level and drop if u already have 1.
 
Spanish:
Hola amigo, mejor usar el nivel del item para determinar el objeto. Por ejemplo, todos los objetos de nivel 1 los pones con cascos, todos los del nivel dos con hachas, los de nivel 3 armaduras, etc. En el detonador cuando un heroe agarra un objeto, tenes que ver si el heroe tiene un objeto del mismo nivel que el objeto manipulado. Si lo tiene, automaticamente tenés que hacer que el heroe deje el objeto y podrias mostrar un texto diciendo que el heroe ya tiene un item de ese tipo. Si no lo tiene no necesitas especificar nada.

Tutorial sobre esto: IDS (Infinite Number of Item Classes)

English (For hive users.):
Hey buddy, better to use the item level to identify the object. For example, all level 1 objects put them in helmets, all level two with axes, level 3 armor, etc.. In the trigger when a hero pick an object, you have to see if the hero has an object of the same level as the manipulated object. If so, automatically you have to make the hero drop the item and you could display a text saying that the hero already has an item of that type. If it doesn't, you no need to specify anything.

Tutorial for this: IDS (Infinite Number of Item Classes)
 
Level 1
Joined
Aug 12, 2010
Messages
2
[ES]:Muchisimas gracias, me han ayudado bastante, ustedes verán soy nuevo en esto y aún estoy aprendiendo.

[EN]:Thank you so much, you have helped me a lot, you will see I am new to this and am still learning.
 
Status
Not open for further replies.
Top