• 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.

[Trigger] Setting item-classes or item-types or something

Status
Not open for further replies.
Level 11
Joined
Apr 17, 2011
Messages
302
So the title, as long as it is, says pretty much everything.
Basically what I'm trying to do is simplify stuff... or something... I don't really know.

What I want to do is set a a group of weapon types to a variable, such as a list of one handed weapons to store all one handed weapons. so I can load that variable and shorten everything... really.

The whole use of this is so I can set it so I can have a unit pick up a type of weapon, and then change the animations of the unit so it uses one handed animations instead of fist fighting animations or two handed animations.

Now because I have no idea what I'm really doing here with item-types and putting items in to a type or item-class... I don't really know the best way to do this... so if someone could show me what I'm doing, I would really appreciate it.

I usually work in GUI because... no reason really... just haven't bothered to learn Jass...
 
Level 25
Joined
May 11, 2007
Messages
4,650
Make a variable array for each weapon group?
Like:
Weapons_One_Handed[0] = bla bla
Weapons_One_Handed[1] = bla blu
Weapons_One_Handed[2] = bla blä

Weapons_Bows[0] = Blurgh Blurgh
Weapons_Bows[1] = Blärgh Blärgh
 
Status
Not open for further replies.
Top