Spell shop

egomanyak

New Member
Reaction score
8
I want to make shop with full of spells.
System must be work like that:
If hero buys a item(like "Claws of attack")
Item will be removed
Hero learns ability claws of attack

if hero buys item again
Item will be removed
Remove claws of attack ability from hero
And learn claws of ability level 2

if hero buys item again
Item will be removed
Remove claws of attack level 2 ability from hero
And learn claws of ability level 3

-.-'

How to make it? also i want a demo map please :)
and if the abilitys can be in spell book its sooo cool :cool:
So, i want to make ability shop BUT NO WITH ONLY LEVEL 1 ABILITY I WANT TO MAKE ABILITY CAN UPGRADE TO 30 WITH MONEY NOT WITH LEVEL

and if abilitys in a spell book(and spell book is ability :p or not, doesnt metter but i like spell book as ability) its more beautiful :D

Thanks,
 

Shura

New Member
Reaction score
45
This would take a while to make. You should try looking at some tutorials and trying to make it for yourself, and then ask when you get stuck.
 

egomanyak

New Member
Reaction score
8
This would take a while to make. You should try looking at some tutorials and trying to make it for yourself, and then ask when you get stuck.

Here where i stuck
Level 1 ability works fine.
Level 2 ability works fine.
But cant take level 3 ability :banghead:
 

Attachments

  • heroendqm.w3x
    34.1 KB · Views: 94

Shura

New Member
Reaction score
45
There's no need for variables. Just make a trigger like this for each ability.
Trigger:
  • trigger
    • trigger
      • Events
        • Unit - A unit Acquires an item
      • Conditions
        • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
      • Actions
        • Item - Remove (Item being manipulated)
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Level of Animate Dead for (Triggering unit)) Equal to 0
          • Then - Actions
            • Unit - Add Animate Dead to (Triggering unit)
          • Else - Actions
            • Unit - Set level of Animate Dead for (Triggering unit) to ((Level of Animate Dead for (Triggering unit)) + 1)

This will add the ability to the unit the first time the item is acquired, and increase the level every other time.
 

egomanyak

New Member
Reaction score
8
There's no need for variables. Just make a trigger like this for each ability.
Trigger:
  • trigger
    • trigger
      • Events
        • Unit - A unit Acquires an item
      • Conditions
        • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
      • Actions
        • Item - Remove (Item being manipulated)
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Level of Animate Dead for (Triggering unit)) Equal to 0
          • Then - Actions
            • Unit - Add Animate Dead to (Triggering unit)
          • Else - Actions
            • Unit - Set level of Animate Dead for (Triggering unit) to ((Level of Animate Dead for (Triggering unit)) + 1)

This will add the ability to the unit the first time the item is acquired, and increase the level every other time.
I cant make last condition and else-actions :confused: how put +1 ?

Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    • Actions
      • Item - Remove (Item being manipulated)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Unit - Add Acid Bomb to (Triggering unit)
        • Else - Actions
          • Unit - Set level of Acid Bomb for (Triggering unit) to (Level of Acid Bomb for (Triggering unit))

:confused:
 

Shura

New Member
Reaction score
45
The second condition is an integer comparison. Unit - Level of Ability for Unit. For the last action, go to arithmetic, that will allow you to add one. I guess you could just use the Increase Level of Ability for Unit action instead.
 

egomanyak

New Member
Reaction score
8
Thanks, it works :D i gived +rep but looks like i cant give +rep because my rep is "- something" :rolleyes: Thanks :thup:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top