Demo Map Buying Spells From a Shop

Discussion in 'Systems and Snippets' started by Andrewgosu, Jun 14, 2008.

  1. Andrewgosu

    Andrewgosu The Silent Pandaren Helper Staff Member

    +711 / 0 / -0
    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!



    Attached Files:

    • Like Like x 3

    BRUTAL I'm working

    +118 / 0 / -0
    ahah cool, never seen anything like this before
    good job:thup:
    • Like Like x 1
  3. PurgeandFire

    PurgeandFire zxcvmkgdfg

    +513 / 0 / -0
    Good job. Nice and simple. Works fine too, no bugs found from me yet! :thup:
    • Like Like x 1
  4. waaaks!

    waaaks! Zinctified

    +256 / 0 / -0
    • Like Like x 1
  5. Andrewgosu

    Andrewgosu The Silent Pandaren Helper Staff Member

    +711 / 0 / -0
    Thanks for the feedback so far, people.
    • Like Like x 1
  6. TomTTT

    TomTTT New Member

    +44 / 0 / -0
    Thanks ALOT :)
    Really helps! Helped me not only with buying skills but much more :) +rep.
  7. Endurance

    Endurance New Member

    +2 / 0 / -0
    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.

Share This Page