hey i have the combo item setup - player picks up items required to purchase item, item becomes available for purchase, player purchases item - but i cant figure out how to remove the items required to make the purchase
i also wasnt sure if this was a trigger or something that can be done in data
any thoughts?
thanks in advance
Item Utility Library should have the functions you need to do what you want. I think there's a function that lets you use an item from a specific inventory slot as a unit reference.
well i tried this
Stat Buffer
Events
Unit - Any Unit Buys Any Item
Local Variables
Conditions
(Last created inventory item) == (Inventory Get Random Item Of Type(No Unit, Stat Buffer<n/>Combo Item))
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Item carried by Dead Unit[(Owner of (Triggering unit))] in 1) == (Inventory Get Random Item Of Type(No Unit, Agility Buffer<n/>+7 Agility<n/>+4 Strength<n/>+4 Intelligence))
Then
Unit - Kill (Item carried by (Triggering unit) in 1)
Else
and did 1 through 9 since the player has 9 inventory slots, including other bags just to be safe, and it still doesnt work. idk what to do
@BasharTeg:
for some reason using the last created inventory item i cant set a value like that, the only available values are what are already created on the map
hey i have the combo item setup - player picks up items required to purchase item, item becomes available for purchase, player purchases item - but i cant figure out how to remove the items required to make the purchase
i also wasnt sure if this was a trigger or something that can be done in data
any thoughts?
thanks in advance
Item Utility Library should have the functions you need to do what you want. I think there's a function that lets you use an item from a specific inventory slot as a unit reference.
thanks! although im having difficulty selecting inventory items of a certain type, then removing those items from the units inventory. any ideas?
You could loop through each slot and check each item to see if it's of a certain type.
It's always a bad idea to put random anything in conditions. Use the OR function instead.
For example:
Er, yeah, my mistake. Use Unit Type of (triggering inventory item) and then select the unit type for each item.