Andrewgosu
The Silent Pandaren Helper
- Reaction score
- 716
If you ever have wondered how to allow your heroes to buy spells from shops, but stumbled upon problem, then fear no more!
Take a look at the demo map which shows exactly how to do that - how to buy spells from a shop.
Contains a single trigger with comments for easier understanding.
How it works:
- A hero buys a dummy item, which represent the 'buyable' spell
- A check is run to determine which spell was bought
- The hero is checked whether he already has the spell or not
- The spells is added or the level of the spell is increased as necessary
- When the spell is 'maxed out' the player is no longer able to buy the spell.
On a side note, Pandaren still rule the world!
Enjoy.
Andrewgosu
Take a look at the demo map which shows exactly how to do that - how to buy spells from a shop.
Contains a single trigger with comments for easier understanding.
How it works:
- A hero buys a dummy item, which represent the 'buyable' spell
- A check is run to determine which spell was bought
- The hero is checked whether he already has the spell or not
- The spells is added or the level of the spell is increased as necessary
- When the spell is 'maxed out' the player is no longer able to buy the spell.
On a side note, Pandaren still rule the world!
Enjoy.
Andrewgosu