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

PLz help

Status
Not open for further replies.
Level 4
Joined
Oct 12, 2004
Messages
59
what if the items arent in slots 1,2,3,4 how do you make it so a unit has to have 4 of an item to make another item

Could someone explain how variables work and what array means.

How do you make it so you dont have to buy another item from a shop to an item, just by clicking the item (is there an ability) from the shop then it removes the 4 metal and gives you the wanted item?

why doesnt the remove inventory action remove the units inventory

How do you make it so if you add an ability through a trigger you can still level it up with the hero skill points

How do you make the boubty art appear on a dying unit and make it so if a heros level is high you get more bounty?

I know its alot but im trying to learn and need some help, i will give credit to whomever in my map, I also cannot post replies im going to try restarting my computer, if you could PM me a good explanation of variables i would aprreciate it greatly, Plz if someone is skilled with the editor could you help me, i also have some other questions if someone i good enough to answer them and help me a bit along the way.

Greatly aprreciated from a learning mapper
 
Level 5
Joined
Nov 14, 2004
Messages
159
G-dizzle said:
Could someone explain how variables work and what array means.

Variable is used to save data. Ones without "array" only keep 1 data, ones with "array" can save more than 1 data (kind of like List).

Like this:

varstring = "hello"

Game - Text to all player using text : varstring

will show "hello" to everyone

And array does like this:

varstring[0] = "hello"
varstring[1] = "how"
varstring[2] = "are"
varstring[3] = "you?"

For interger A 0 - 3, do Game - Text to all player using text : varstring[interger A]

will show:

hello <-- this list #0
how <-- this list #1
are <-- this list #2
you? <-- this list #3

in game.
 
Status
Not open for further replies.
Top