Get (Item Manipulated) Price?

the_ideal

user title
Reaction score
61
Is there a way to refer to the price of an item being manipulated in a trigger without doing a massive IF/THEN/ELSE function? (e.g. if item equal to sword, set price = 100, if item equal to shield, set price = 125)

A JASS custom script would be useful if there isn't a GUI way.

Thanks!
 

Exide

I am amazingly focused right now!
Reaction score
448
You could set the custom value of the item to X, and use that.
-But that will take a massive If/Then/Else function.
 

Bird

Ultra Cool Member
Reaction score
29
I'm your Huckleberry.

I had this problem, and I figured it out.

If you want to be able to refer to the cost of *any/all* item with only 1 trigger line - simply set the *hit points* of every item equivalent to its cost - because you can refer to the hit points of an item via trigger.
 
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