Item prices = int

shinami

Redirect your complaints to the nearest wall
Reaction score
47
How can i make so that.. Well here's an example.

There is a "shop" ( skill shop ) named Fire mage. He sells spells as items ( buy an item, you get a spell ) How can i make it so that example the hero could only buy breath of fire if he has x amount of inteligence?
 

Exide

I am amazingly focused right now!
Reaction score
448
Something like this, perhaps:

Code:
Untitled Trigger 001
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Tome of Experience
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Intelligence of (Triggering unit) (Include bonuses)) Greater than or equal to 0
            Then - Actions
                Item - Remove (Item being manipulated)
                Player - Add 1000 to (Owner of (Triggering unit)) Current gold
            Else - Actions

Just change the values so that it suits your map.
 

Tukki

is Skeleton Pirate.
Reaction score
29
Or alternatively you could use my Item Ability Learn system, if you have the basics of Jass.

Find it here.
 
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