HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Player - Add (Custom value of (Item being manipulated))to (Triggering player)

01-27-2004, 08:36 AM#1
Dalten
Simple question hopefully, what does it mean by Custom value?

I've tried adding the value of items to a players gold but it doesn't do anything.

giving 20 pts for first person who knows how to make the Custom value take a gold value of an item and give it to a player.

I'm assuming by Custom value it means GOLD... please correct me if i'm wrong and there is no way of doing it this way.
01-27-2004, 08:43 AM#2
Grater
The custom value is a free-value integer you can use it for whatever purpose you want. It defaults to 0 and can only be set using the trigger action - Unit - Set Custom Value.

Think Custom more than Value. It's not a value as in monetary worth, rather the value of a variable in a mathematical sense.
01-27-2004, 08:57 AM#3
Dalten
I see, Thanks.

It seems pretty worthless then.. since I don't see a way at the moment to give custom values to item-types.

Edit: What i'm doing is trying to give the value of an item back to player if they buy something from a vendor they can't use. I have several items that only certain heroes will be able to use and since I don't know how to prevent them from buying items they can't use I just destroy it after they've bought it and I want to refund the money to the player.

I can do it using IF statesments but if I could this work it would simplify the trigger some..
01-27-2004, 12:47 PM#4
Ligature
Wait... can items even have custom values?
01-27-2004, 01:48 PM#5
Vexorian
Quote:
Originally posted by Ligature
Wait... can items even have custom values?


It is one of patch 1.13 's features, And they are not worthless, a lot of stuff ca be done with item custom values, they are a life saver