• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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

Status
Not open for further replies.
Level 11
Joined
Apr 17, 2011
Messages
301
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...
 
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.
Back
Top