I've been wondering this for a while, as it is very important for this rpg map I'm making. Simply said, I need some way to add experience through triggers. Here's an example what I want:
Hero completes quest X. He receives 500 exp as reward plus some other crap.
However there is no "add experience" and I have no idea how to give any exp to unit manually. I didn't find any behaviors either. Any help is appreciated.
I have an idea. sort of. I know its possible to make an instant ability that applies a behavior, which is of type "modify unit" that gives exp. maybe you can make an ability that gives 500 exp and then do not show the button, so the hero can not use it himself, and then order the hero to use it with triggers. That should work! Good luck!
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
One solution that I've found for this was to use effects to grant experience and a custom function call to apply the effects to the unit in question.. This is not my code but was taken from a tutorial and posting that I cannot seem to find at the moment, it was created originally by zifoon ([email protected]). Attached is his map which I got off the tutorial.
The important parts to look at are the Give Experience function and his effects that he has created to better understand it.
Make an effect of 'Modify Unit' type, set the experience field, and then add the effect directly to your unit in the trigger. There is a more involved way to make an action that can change the catalog value and apply the effect all in one, but this is the basic way. I think the previous poster is linking a map with this function in it.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've been wondering this for a while, as it is very important for this rpg map I'm making. Simply said, I need some way to add experience through triggers. Here's an example what I want:
Hero completes quest X. He receives 500 exp as reward plus some other crap.
However there is no "add experience" and I have no idea how to give any exp to unit manually. I didn't find any behaviors either. Any help is appreciated.
I have an idea. sort of. I know its possible to make an instant ability that applies a behavior, which is of type "modify unit" that gives exp. maybe you can make an ability that gives 500 exp and then do not show the button, so the hero can not use it himself, and then order the hero to use it with triggers. That should work! Good luck!
One solution that I've found for this was to use effects to grant experience and a custom function call to apply the effects to the unit in question.. This is not my code but was taken from a tutorial and posting that I cannot seem to find at the moment, it was created originally by zifoon ([email protected]). Attached is his map which I got off the tutorial.
The important parts to look at are the Give Experience function and his effects that he has created to better understand it.
Make an effect of 'Modify Unit' type, set the experience field, and then add the effect directly to your unit in the trigger. There is a more involved way to make an action that can change the catalog value and apply the effect all in one, but this is the basic way. I think the previous poster is linking a map with this function in it.