HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hide/Remove Hero Learn Button

09-29-2009, 09:22 PM#1
Thunder_Eye
Hi,

I know that the Hero Learn ability is editable to some extent through the CommandStrings.txt.

However, what I want to do is hide the ability, without removing it. I hoped this would be achievable with the SetPlayerAbilityAvailable(), however I have problems finding the rawid of the ability.

The only one I found that sounded fitting was 'AHer', and it didn't work.

Does anyone know the rawid of Hero Learn and if this is possible to do?
09-30-2009, 08:10 AM#2
DioD
Remove hero skills, add spellbook with dummy skills, level up skills with spellbook.
09-30-2009, 08:50 AM#3
Anachron
I planned to do a virtual spellbook, which adds Items to the normal command positions, and removes all other orders while having the spellbook open.
After that, the unit gets all spells back again, and the spellbook dummy spell will be shown.

Its still only in concept, but it might help you.
09-30-2009, 10:05 AM#4
Thunder_Eye
I'm sorry but neither of your solutions will help.

Remember when your hero levels up and you may learn a spell? There is added a small number (1) to his portrait hero icon. I need that number and that is why I can't use spellbooks and the like.

I can neither use dummy heros with imported icons where the number has been added to the .blp.

So I'm asking, any suggestions how to solve the problem mentioned in post #1?
09-30-2009, 10:26 AM#5
Anachron
Just add an item with stock of X, where X is the herolevel, and remove it when you level up, and place a dummy spellbook with the skills then. If you buy the item, you add items to the hero, based on unit spells.
09-30-2009, 10:37 AM#6
Thunder_Eye
I'm not asking how to create a learning system.
I want the number to show on the hero in the top left, not on an item in his inventory.
This is why I hoped I could somehow hide the Learn button either by moving out of the command card somehow or by disabling it.

Does anyone know the rawid of Hero Learn or is there even one?
09-30-2009, 10:47 AM#7
Anachron
Skillmenu has ID: 852000
This is only the order id, not the ability id.

I will check if I can get the ability id aswell.
09-30-2009, 10:59 AM#8
Thunder_Eye
I managed to find what I believe is the ability id of Hero in the ability guide (Didn't think it'd be there)

However, disabling it by triggers did by no means work.
I can only hope there is another way, perhaps by modifying some files?

Else I will have to find another solution.
09-30-2009, 11:29 AM#9
DioD
Modify files is PERMANENT, if you remove skill menu it will not show for all heroes and this cannot be altered ingame.
09-30-2009, 12:45 PM#10
Rising_Dusk
You can black out the hero learn ability icon by inflicting a Doom-based buff on your unit. This also has the effect of silencing the ability from using spells, but it's about the best you can do. (Also has the side effect of locking the user in the hero skill menu if it's open when doomed)

There is no ability id for the hero skill learn menu. It's not an ability, it's a feature of being a hero with learnable skills.
09-30-2009, 03:18 PM#11
Thunder_Eye
Quote:
Originally Posted by DioD
Modify files is PERMANENT, if you remove skill menu it will not show for all heroes and this cannot be altered ingame.

This would not be a problem as I will not be using hero abilities other then to get the number on the hero icon. Do you know how to do this or where I can learn?

Quote:
Originally Posted by Rising_Dusk
You can black out the hero learn ability icon by inflicting a Doom-based buff on your unit. This also has the effect of silencing the ability from using spells, but it's about the best you can do. (Also has the side effect of locking the user in the hero skill menu if it's open when doomed)

There is no ability id for the hero skill learn menu. It's not an ability, it's a feature of being a hero with learnable skills.

Interesting, unfortunately I need the hero to be able to cast some dummy unit spells (I should've probably mentioned this in the first post).
I will tinker some with doom and see if I can find something that works for me.

So what is this 'Aher' (Hero) I've heard about? The usual Blizzard stuff with some ability that does nothing but just "has" to be there? :P

Thanks to all for the suggestions, if anyone knows how to hide it through file editing like DioD mentioned, I am most eager to learn how.
09-30-2009, 04:19 PM#12
Alevice
Quote:
Originally Posted by Thunder_Eye
I'm sorry but neither of your solutions will help.

Remember when your hero levels up and you may learn a spell? There is added a small number (1) to his portrait hero icon. I need that number and that is why I can't use spellbooks and the like.

Well, you can manipulate those skill points with triggers. Messy solution would be spellbook+Engineering Upgrade+channel based "learn icons"+manipulate skill points by triggers

edit: unless you want that hnumer on the hero skill button, rather than just hero portait. bah
09-30-2009, 05:00 PM#13
Rising_Dusk
You could simulate the hero skill icon with sellable units and playing with SetUnitStock natives. Then it'd be real easy to remove it via RemoveUnitStock (or whatever that native is).
09-30-2009, 06:47 PM#14
Thunder_Eye
Quote:
Originally Posted by Alevice
Well, you can manipulate those skill points with triggers. Messy solution would be spellbook+Engineering Upgrade+channel based "learn icons"+manipulate skill points by triggers

edit: unless you want that hnumer on the hero skill button, rather than just hero portait. bah

Not sure I was clear enough on what I meant in that sentence.
I want the "Amount of skillpoints" to show on the hero icon in the top left. And I want the "Hero Abilities" in the command card to be hidden.

I believe this could be achieved by using ward classification or the doom-technique Rising Dusk mentioned, but that would also prevent the hero from casting abilities.

Quote:
Originally Posted by Rising_Dusk
You could simulate the hero skill icon with sellable units and playing with SetUnitStock natives. Then it'd be real easy to remove it via RemoveUnitStock (or whatever that native is).

I think I mentioned this previously. What I am looking to make is not to simulate the "Hero Learn" in any way. I just want it to be hidden from the command card.

Let me give an example, I'll try to provide a screenshot on what I want later.
I create a level 1 paladin. Up in the left top corner it displays the paladin icon with a small 1 in the corner of the icon.
However, there is no "Hero Abilities" ability for the paladin, so he can't use up the skillpoint by learning holy light, divine shield etc.
Now I level him up to level 2, It'll show a 2 in the corner of his icon instead of 1.

I hope I've made clear what I want, if there is anything I'm not getting through I'll try to make another example for you.

EDIT:
1st image shows how it naturally looks on a hero.
2nd image shows how I want it to look, notice how it says 1 on the paladins icon even though he doesn't have any "Hero Abilities" "ability"
Attached Images
File type: jpg1.jpg (108.0 KB)
09-30-2009, 08:10 PM#15
Rising_Dusk
So just don't give him any hero abilities and trigger the level ups..