Demo Map Buying Spells From a Shop

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.


buyingSpells.jpg




On a side note, Pandaren still rule the world!

Enjoy.



Andrewgosu
 

Attachments

  • Buying-Spells-From-Shop_Andrewgosu_2008.w3x
    10.2 KB · Views: 926

TomTTT

New Member
Reaction score
44
Thanks ALOT :)
Really helps! Helped me not only with buying skills but much more :) +rep.
 

Endurance

New Member
Reaction score
2
I really like this System. It is well structured and coded fluently. The code does not lack any description and there are no imported files. It is easy to implent a new hero with new abilities to this system because of the handy loop. I hope I do not necro-post a 2008 year old topic.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top