I have a learn ability that grants 2 points per level up. I am making an ability called conversion that takes 1 points from one learn ability and threw triggers converts into into 2 points for the other learn ability.
My question is, HOW do you give the hero those points without leveling up?
After reading your post i did a little testing and found that the "Catalog field value set" action in a trigger allows you to alter the number of points. so I assume you can make a dummy ability to trigger this. Also the field you want is just "Points[0]"
hope that helps if you need anymore just post again.
The first thing you can choose is the Catalog, you can enter either a variable or a preset value of choices. The second is the entry and the third is the path. The last thing you enter is what it changes to I'm assuming right?
What did I do wrong. I tried doing both the actual ability and the unit itself and also tried combining strings which didn't work. (Before you ask I tested the abilities with said triggers enabled)
Next is entry. that is the ID of the ability. when you double click an ability to change its name its the one just under name. it is what the editor knows the ability as.
Next is field path. that is the one that should be "Points[0]"
player is obvious
and the last one is what you want to set it to. you may need to pull it out as a variable first then add to the variable then put it back in. i know a few fields you have to do that with. and there are a lot of fields that you cant change and if you try you will get an error like the one you got. but i did try the one you want to change and it works. but i just did a quick test so you may need to mess with it a bit to get it right. Also sense you said you never used catalog before let me note that as of this time (heard rumors that it might change in HOTS) the only thing you can use this to change for buff behaviors is duration and requirements.
Once again if you have any more questions or if i didn't explain something very well then ill try and make it make more sense.
What I don't understand here is the "Points[0]" section. When I see [#] this is usually referring to a number in an array. Is this 0 value saying that the "learn" ability has 0 points or is this calling the point value of array entry 0? Also how do you set the increase. The above one doesn't work.
Can you show me an example of what the trigger would look like?
Also the way the "help" is shown in the trigger editor is misleading. To me it looked like how did it the first time. (it's attached)
I just made a map real quick to show an example. as for the [0] it references an array which i find kinda weird because the points field is not one.
as to how i found that field entry or any, at least this is how i do it, is in the data editor go into anything that has a tooltip. i tend to use the ones in the buttons tab. open the tooltip like you were going to give it one then find the button that says create formula. in there you search for whatever it is you are trying to get the data for. in this example it would be Abilities, then in the next pull down it would be TestLearn. and finally i scroll down tell i find the field im looking for. then i just hit insert field reference and then copy paste the relevant part.
Abil,TestLearn,Points[0] is what i would get in my example. and is what i use to fill the first 3 parts of my set catalog value action.
i think the reason your attempts didnt work is that it looks like you didnt look for the field values you just put in Points[0] which the program wasnt able to tell what Points[0] you wanted to reference.
Hey man it works now, thanks a bunch! I have never seen the formula section before. This editor is crazy haha. Thanks for all the help and the learning experience.
I'm glad i could help actually wish i tried this sooner i had an ability that this would of helped immensely just didn't think of even trying it this way tell i saw your post. well it worked out better in the end but it is good to know for future maps.
I have a learn ability that grants 2 points per level up. I am making an ability called conversion that takes 1 points from one learn ability and threw triggers converts into into 2 points for the other learn ability.
My question is, HOW do you give the hero those points without leveling up?
I can't figure out how do it threw triggers.
Bump.
After reading your post i did a little testing and found that the "Catalog field value set" action in a trigger allows you to alter the number of points. so I assume you can make a dummy ability to trigger this. Also the field you want is just "Points[0]" hope that helps if you need anymore just post again.
Thanks for replying. I've never used the catalog functions before.
Attached in the picture is what I tried. Neither worked and I took a screenshot also of the error message.
In the trigger are the following things you can input:
The first thing you can choose is the Catalog, you can enter either a variable or a preset value of choices. The second is the entry and the third is the path. The last thing you enter is what it changes to I'm assuming right?
What did I do wrong. I tried doing both the actual ability and the unit itself and also tried combining strings which didn't work. (Before you ask I tested the abilities with said triggers enabled)
ok the catalog is abilities you got that right.
Next is entry. that is the ID of the ability. when you double click an ability to change its name its the one just under name. it is what the editor knows the ability as.
Next is field path. that is the one that should be "Points[0]"
player is obvious
and the last one is what you want to set it to. you may need to pull it out as a variable first then add to the variable then put it back in. i know a few fields you have to do that with. and there are a lot of fields that you cant change and if you try you will get an error like the one you got. but i did try the one you want to change and it works. but i just did a quick test so you may need to mess with it a bit to get it right. Also sense you said you never used catalog before let me note that as of this time (heard rumors that it might change in HOTS) the only thing you can use this to change for buff behaviors is duration and requirements.
Once again if you have any more questions or if i didn't explain something very well then ill try and make it make more sense.
What I don't understand here is the "Points[0]" section. When I see [#] this is usually referring to a number in an array. Is this 0 value saying that the "learn" ability has 0 points or is this calling the point value of array entry 0? Also how do you set the increase. The above one doesn't work.
Can you show me an example of what the trigger would look like?
Also the way the "help" is shown in the trigger editor is misleading. To me it looked like how did it the first time. (it's attached)
I just made a map real quick to show an example. as for the [0] it references an array which i find kinda weird because the points field is not one. as to how i found that field entry or any, at least this is how i do it, is in the data editor go into anything that has a tooltip. i tend to use the ones in the buttons tab. open the tooltip like you were going to give it one then find the button that says create formula. in there you search for whatever it is you are trying to get the data for. in this example it would be Abilities, then in the next pull down it would be TestLearn. and finally i scroll down tell i find the field im looking for. then i just hit insert field reference and then copy paste the relevant part.
Abil,TestLearn,Points[0] is what i would get in my example. and is what i use to fill the first 3 parts of my set catalog value action.
i think the reason your attempts didnt work is that it looks like you didnt look for the field values you just put in Points[0] which the program wasnt able to tell what Points[0] you wanted to reference.
hope this helps. Need anymore help let me know.
@neverwin1011: Go
Hey man it works now, thanks a bunch! I have never seen the formula section before. This editor is crazy haha. Thanks for all the help and the learning experience.
For anyone wanting a completed code:
I'm glad i could help actually wish i tried this sooner i had an ability that this would of helped immensely just didn't think of even trying it this way tell i saw your post. well it worked out better in the end but it is good to know for future maps.
Ya agreed. I was stumped. I had no idea what catalog even did so this was double nice for me.
Map learning skills +1 :D