Buying Hero Abilities as Items

rotten

New Member
Reaction score
2
I'm trying to build my own custom hero arena, but I'm stuck on buying HERO abilities.

What I want is this: A hero buys a specific item from a shop, it vanishes immediately and instead he can learn a specific skill he didn't have access to before. Since the Hero will never have access to that shop again, the skill must be able to level up correctly, and I'd prefer it to start without level 1 already learned.

I've covered not being able to buy the same thing twice, but that's a minor problem. The big deal is I can't get the ability to register as a Hero ability.

Unit Add ability won't work, for obvious reasons. Unless there is a way to add as a Hero ability, but I can't spot how.

Hero Learn Skill doesn't work no matter how I coax it.

Using dummy spells in a spell book - I have 152 abilities, I'm not going anywhere near that can of worms! It also sounds indirect and, well, hamfisted :thdown:

Jass - I could finish 10 maps by the time I learned to do anything of significance in Jass.


I can't find anything else, and I really do not want to give this map up even if nobody will ever play it (what with dota and incoming SC2 and D3). So, how do I do it?

Further info: My heroes all start with no hero skills (ok they currently have one dummy skill but that's temporary and likely unneeded), and must each pick 4 ordinary skills and 1 ultimate.
 

rotten

New Member
Reaction score
2
Negative. I saw it as well. That system deals with situations like Custom Hero Survival where heroes continue to have access to the skill shops throughout the game. This isn't the situation in my map.

After the heroes pick their skills, they are thrown in the main area of play, which is separated by boundary from the skill shops area. This ties in with other mechanics I have in the map, and at least one I want to add.
 

Bogrim

y hello thar
Reaction score
154
You can't have more than five hero abilities at any time. What you can do is use spell books with unit abilities to create your own skill-up system and make them look like hero abilities.
 

rotten

New Member
Reaction score
2
I don't intend to have more than 5 hero abilities :banghead: but exactly 5.

And I already said I want nothing to do with spell books, and their whole system is something my brain can't get around to (very humbling situation for me). Also, I already have some big triggers in the map, and there will be more. Having this added burden will make my own map too resource heavy for my severely outdated computer :nuts:
 

rotten

New Member
Reaction score
2
I saw these both, and discounted them, before I even created my account. I'm usually good with complex things but these are just not doing it for me. If they did, I wouldn't be posting here. I've done my research.

Since normal GUI can't help me, is there any custom script that won't rupture my brain, to give a hero the hero skill straight up?
 

Hero

─║╣ero─
Reaction score
250
The only way I can see this being possible. Is if the skill is learned at level 1 and then is auto leveled as the hero is leveled.
 

rotten

New Member
Reaction score
2
I thought that might work. But the player is supposed to choose which of the five skills to level.:banghead:
 

Glorn2

Slap n' Tickle
Reaction score
4
In custom hero arena, I use a dummy spell to represent their learned skill...

That is:
Offensive Skill (skill 1)
Defensive Skill (skill 2)
Misc Skill (skill 3)
Ult (skill 4)

When you pick the item representing a skill from a shop, it sets a variable to represent that skill. So, you pick Flamestrike as your offensive skill, it gets saved into a variable. Later, if you chose to level "offensive skill" it sets the variable skill (flamestrike) to it's current level + 1.

^^The system is JASS though... Can't figure out how to re-write it in GUI, which is what I use most of the time.

The downside to the system though, is that where you pick to level up your skills, you don't have the names of your skills there; it is just "offensive, defensive, misc, ult" so, that is something you will have to deal with. A -showskills command seems to work for me.
 

rotten

New Member
Reaction score
2
I know the system, though I mostly play the other CHA version (6.2). My skills are classified into 13 groups however (10 normal, 3 ult), by shop.

Repeat: Isn't there a custom script or even jass command that can do this? I don't know squat about them but maybe if it's just a simple thing I can work it out.
 

Skippy

Active Member
Reaction score
39
What about:

Unit buy an item => Enable Hero ability for owner of unit

This is only MPI though.
 

rotten

New Member
Reaction score
2
Sounds nice. What the hell is mpi? Can't find the command in my GUI. Anyway, "owner of unit"? What's that about?
 

Skippy

Active Member
Reaction score
39
MPI = Multiple Player Instanciability

Since it is impossible to disable and enable ability for one unit only, I wanted to say that you can't have more heroes with same abilities owned by one player.
 

rotten

New Member
Reaction score
2
Only 1 hero per player, np.

So... give all heroes all the abilities in object editor and enable five of them on the basis of items?

How do I disable them to begin with?

And where is the command?

I'm more noobish than I look.
 

Skippy

Active Member
Reaction score
39
So ... At the beggining of the game, you have to disable EVERY SINGLE ability for all players. Use something like:
Trigger:
  • For each (Integer A) from 1 to 12, do (Actions)
    • Loop - Actions
      • Player - Disable Ability_1 for (Player((Integer A)))
      • Player - Disable Ability_2 for (Player((Integer A)))
      • Player - Disable Ability_3 for (Player((Integer A)))

And when hero buys item, enable specific ability for owner of this hero.

It will be lot of work, but I think it is the only way ...
 

Glorn2

Slap n' Tickle
Reaction score
4
I've never thought of the above. Pretty neat system...

CHA 6.2 and the other 6.X edits, made by FYUO use BAKA-Rangers system.

The CHA system I use is JASS, but it is a pretty simply, copy/paste/edit a tiny line of code. I mean, I figured it out, and I know nothing of JASS :p PM me if you want it, and I will send it to you, with directions on how to edit it.
 

rotten

New Member
Reaction score
2
It also doesn't work. The object editor won't allow me more than 5 hero abilities, disabled or not, and I don't think unit abilities can be levelled with hero skill points.
 
Reaction score
107
I know the system, though I mostly play the other CHA version (6.2). My skills are classified into 13 groups however (10 normal, 3 ult), by shop.

Repeat: Isn't there a custom script or even jass command that can do this? I don't know squat about them but maybe if it's just a simple thing I can work it out.

If there was one, the aforementioned links wouldn't have been created.

They are the only way to get levelable abilities with hero points and the proper learn icon. The only other way would be the CHA way, but you don't get the learn icon and the level skip requirement.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • 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 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