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.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top