l-hate_you
New Member
- Reaction score
- 6
In my system where you can purchase abilities as items from a shop, I am trying to make it so that you get a refund if you buy the spell again if it is already at maximum level. I could go through and take the time to find every single value and manually type it into the code, or, I was hoping that there was a certain way to get the value using the shortcut code (ex.<I000:tdex,goldcost> ) for use in a trigger? I know it can be used in tooltips obviously but can you retrieve it in JASS? I tried
call AdjustPlayerStateBJ( <I000:tdex,goldcost>, GetOwningPlayer(GetManipulatingUnit()), PLAYER_STATE_RESOURCE_GOLD )
and of course it doesnt work (error upon saving) soo is there some code that needs to go behind it like GetValue or some crazy thing like that.. or is it just not possible?? thanks
call AdjustPlayerStateBJ( <I000:tdex,goldcost>, GetOwningPlayer(GetManipulatingUnit()), PLAYER_STATE_RESOURCE_GOLD )
and of course it doesnt work (error upon saving) soo is there some code that needs to go behind it like GetValue or some crazy thing like that.. or is it just not possible?? thanks