Currently I try to get my bank to work as I want it to do.
I managed to store and restore units and its killcount.
But there is one thing I am, for whatever reason, unable to achieve. As soon as my hero levels, he is able to choose a new ability or upgrade an existend one (DotA-Style) but as soon as he dies and respawns or I save and restart the game, the ability is gone but I therefore got a point to spent. Any ideas for this one?
Stuff
I "discovered" some sort of issue with the Action "unit gains expierience level". I am quite sure that I am not the first on who realize that.
I wanted to give my hero a reward for each level he gains - vesp and mins.This works fine.
But as soon as he respawns or the game is restarted, he immediately gains this reward. So after every death, he gains an extra bonus of ressources. I looked it up and - yeah - the reward trigger is triggered after every spawn. So, is my trigger broken or is this action itself not working properly.
Currently I try to get my bank to work as I want it to do. I managed to store and restore units and its killcount.
But there is one thing I am, for whatever reason, unable to achieve. As soon as my hero levels, he is able to choose a new ability or upgrade an existend one (DotA-Style) but as soon as he dies and respawns or I save and restart the game, the ability is gone but I therefore got a point to spent. Any ideas for this one? Stuff
For this, we would need to know, how your ability system is set up. You might just want to store every level in variables and save them in banks to restore ability/talent levels later on. However, dependent on your setup, this might be hard to realize.
Quote:
I "discovered" some sort of issue with the Action "unit gains expierience level". I am quite sure that I am not the first on who realize that. I wanted to give my hero a reward for each level he gains - vesp and mins.This works fine.
But as soon as he respawns or the game is restarted, he immediately gains this reward. So after every death, he gains an extra bonus of ressources. I looked it up and - yeah - the reward trigger is triggered after every spawn. So, is my trigger broken or is this action itself not working properly.
Thanks in advance.
Yep, noticed this myself. Seems like a bug with the revive function for me (maybe it creates a new unit and gives experience to it?).
Workaround: Set a global boolean variable, which, when active, makes the next lvlup action to be ignored. Set this to true, before you revive the hero.
Yep, noticed this myself. Seems like a bug with the revive function for me (maybe it creates a new unit and gives experience to it?).
Workaround: Set a global boolean variable, which, when active, makes the next lvlup action to be ignored. Set this to true, before you revive the hero.
Yea, already did this. I just wanted to point it out. :)
My leveling is quite simple. I got a veterancy behaviour that gives me a point to spend each time I level up. I also thought about a vespine based leveling. So everytime I get a level, I recieve some vespine to spend on abilities.
But then again: How can I save these levels? The actual experience / veterancy is saved - but not the learned abilities.
Save a bunch of integer variables, one for each ability. Then when the bank loads, enable the abilities based on the values of those integer variables.
The problem would be, that there seems to be no native way to set ability levels per trigger for the learn system implemented by blizzard (involving a learn ability, which provides skill points and multi-level abilities by setting multiple effects).
For reviving, the unit should not lose it's skills, though, at least it does not for me. And when restoring a unit from a bank, you re-create it anyways, so it will have all ability points, and you can use issue order actions to make it learn your desired abilities.
Well, I actually CAN set ability levels by triggers. But I cannot trigger the learn xy ability - thats right.
So I have to change to another system - any suggestions? :)
Edit:
Ok, I realized I messed up my triggers. I rewrote some stuff and viola the learn ability works. Now I just need to add the level and learned ability. I thought about multidimensional arrays, what do you think?
Here are the basics:
- Behaviour Based Veterancy
- Trigger Based Ability learning: Issue Order ... Learn ABILITY
Hi, I got some questions - once again.
Banks
Currently I try to get my bank to work as I want it to do. I managed to store and restore units and its killcount.
But there is one thing I am, for whatever reason, unable to achieve. As soon as my hero levels, he is able to choose a new ability or upgrade an existend one (DotA-Style) but as soon as he dies and respawns or I save and restart the game, the ability is gone but I therefore got a point to spent. Any ideas for this one?
Stuff
I "discovered" some sort of issue with the Action "unit gains expierience level". I am quite sure that I am not the first on who realize that. I wanted to give my hero a reward for each level he gains - vesp and mins.This works fine.
But as soon as he respawns or the game is restarted, he immediately gains this reward. So after every death, he gains an extra bonus of ressources. I looked it up and - yeah - the reward trigger is triggered after every spawn. So, is my trigger broken or is this action itself not working properly.
Thanks in advance.
For this, we would need to know, how your ability system is set up. You might just want to store every level in variables and save them in banks to restore ability/talent levels later on. However, dependent on your setup, this might be hard to realize.
Yep, noticed this myself. Seems like a bug with the revive function for me (maybe it creates a new unit and gives experience to it?).
Workaround: Set a global boolean variable, which, when active, makes the next lvlup action to be ignored. Set this to true, before you revive the hero.
Yea, already did this. I just wanted to point it out. :)
My leveling is quite simple. I got a veterancy behaviour that gives me a point to spend each time I level up. I also thought about a vespine based leveling. So everytime I get a level, I recieve some vespine to spend on abilities.
But then again: How can I save these levels? The actual experience / veterancy is saved - but not the learned abilities.
Save a bunch of integer variables, one for each ability. Then when the bank loads, enable the abilities based on the values of those integer variables.
@BasharTeg: Go
Enabeling the ability does not work, because the ability was not disabled - it is just not learned.
Maybe I am doing sth. wrong? I wanted to enable it after the Unit is restored - did not work.
Can you change the way your unit learns new abilities so that they instantly learn every ability but the abilities are only enabled upon leveling up?
I'm not familiar with the way you're giving your heroes abilities. Can you describe your method or post some triggers?
@BasharTeg: Go
I would welcome any way to solve my problem. Do you got any suggestions on how to do so? Perhaps any links or tutorials?
Btw. enabling / disabling abilities does not even work, if the already "owns" an ability. Strange stuff o0
The problem would be, that there seems to be no native way to set ability levels per trigger for the learn system implemented by blizzard (involving a learn ability, which provides skill points and multi-level abilities by setting multiple effects).
For reviving, the unit should not lose it's skills, though, at least it does not for me. And when restoring a unit from a bank, you re-create it anyways, so it will have all ability points, and you can use issue order actions to make it learn your desired abilities.
@Kueken531: Go
Well, I actually CAN set ability levels by triggers. But I cannot trigger the learn xy ability - thats right. So I have to change to another system - any suggestions? :)
Tried that?
@Kueken531: Go
Yep, tried this just now, does not work. Either way I am doing something completely wrong or it just does not work. :P
Tested it on a Zergling
Do not issue the ability order, but the learn ability order with the correct learn index.
@Kueken531: Go
Tried this already - no change:
Hmph, so I have to to rewrite it?
Edit: Ok, I realized I messed up my triggers. I rewrote some stuff and viola the learn ability works. Now I just need to add the level and learned ability. I thought about multidimensional arrays, what do you think?
Here are the basics: - Behaviour Based Veterancy - Trigger Based Ability learning: Issue Order ... Learn ABILITY
@nThrX: Go
Btw:
Any help or other suggestions are welcome! :)