• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

[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,651
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