Variable Help.

BSJikan

New Member
Reaction score
5
Yeah, I basicaly need help with variables to make a Hero Tavern. I don't quite get what the tutorial Here
is trying to tell me to do for the variables. I can get all the Triggers and stuff set, but I don't understand the variables, it's not exactly described the greatest there.
 

Tonks

New Member
Reaction score
160
First, you need to know what variables are. Variables are things that can be referenced with triggers, that can't be selected in WE. For example, you have a random unit you want to create in-game. Well, you don't know what kind of unit it's gonna be, so you can't specify. What you can do is reference it with a variable. "Set UnitVariable = Last created unit"

Variables can be used to reference almost any part of the map. The Variable Type is important because it specifies what kind of thing you are trying to set the variable to.
A variable Array is a variable with many layers. Each layer can have a seperate reference. Arrays can be used for "Loop; For each Integer A from 1 to 10" When you use a variable later in that action, i.e, "Variable[Integer A]" you reference the ten things. This is mostly used for referencing many players, without doing all that clicking.
Arrays are mostly used so that you don't have a ton of variables crowding your list.

Hope that helps.. Variables are hard to explain. :eek:
 

BSJikan

New Member
Reaction score
5
It explains a Variable pretty good, but I think it dosen't answer my question. Because I'm still lost in what exactly I need to put down, I guess the thing is I can't find what I think is supposed to be linked to the Variables I want, or well, mabey you could just explain what I should do to set up the variables in the link I provided in my first post.
 

Tonks

New Member
Reaction score
160
Well, I don't have TFT editor, so I know nothing about Hero Taverns. Best I could do was try to explain it a bit more clearly. Sorry. Someone else will answer though, no doubt.
 

BSJikan

New Member
Reaction score
5
Hmm. I wonder if I need to have variables for even what I'm trying to do. My basic idea for the map (All my Threads pertain to this) if to make it so that you choose one hero for a melee map, but this Hero is different then usualy, because he is player made. Not like a Custom Hero, but like, Heroes I already made. And I want to limit it to 1 hero per person, and only one of each hero to be on the field. If that helps any...
 

Sim

Forum Administrator
Staff member
Reaction score
534
Try to find a variable tutorial in the User Submitted part instead.

And I think there is a variable tutorial in the World Editor Basics.
 

BSJikan

New Member
Reaction score
5
Ok, I tried those, and they didn't help me in the way I was hoping, even BEFORE I posted. I guess I'll just have to find different stuff on my own, once again...
 

Sim

Forum Administrator
Staff member
Reaction score
534
You really tried ALL of them?

Lol then what do you need to know about a variable? I thought these tutorials explained it very well... They didn't even exist when I started I only had Ryoko's and it worked fine for me.

Oh and that final note on your own... Aren't we all on our own, mapping? If others do things for you, when will you learn and become a succesful mapper ? ;)

Note that there is a difference between helping someone, and doing all the things for that person !

Regards,
~ Daxtreme
 

the Immortal

I know, I know...
Reaction score
51
Why the tutorials didn't help you?
What is wrong with them?
Do you have problems somewhere?
If yes, tell us where are they.
 

Mullit

New Member
Reaction score
51
I would use a boolean variable for the limiting of the heroes to one per player. a boolean can only ever be set to true or false.

i dont know what the action is for buying a hero and i dont have WE open but here is a rough idea of how to use it.

Actions
if booleanvar[player number of buying unit] = false
then create 1 hero for [player number of buying unit]
set booleanvar[player number of buying unit] = true
else create text 'you already have a hero' and display to player (number of buying unit)
 

BSJikan

New Member
Reaction score
5
I'll look into that. Thank you.:)

And the Tutorials are fine, it's me. My reading skills have failed me, (And the Search in page(Curse you FireFox)). Sorry for any inconvieneces, or any anger caused.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top