Hey Guys, I have already looked for the following problem in the Forum, but could not find anything about it.
I tried to make a system, in which a unit (a hero) can sort of upgrade an item. You buy an item on level one, for example Sword (low). When you again buy the item Sword (low), both items are removed and you get the item Sword (medium). When you again buy the item Sword (low) and you already have Sword (medium), again both items are replaced for the item Sword (large).
I kind of want to create, that you can upgrade your item Sowrd (low) to Sword (medium) and then Sword (large) by just buying the same item.
I have done something like this:
Here I read something about checking the Items in each slot, but I honestly dont know how I do that :/
I tried to make a system, in which a unit (a hero) can sort of upgrade an item. You buy an item on level one, for example Sword (low). When you again buy the item Sword (low), both items are removed and you get the item Sword (medium). When you again buy the item Sword (low) and you already have Sword (medium), again both items are replaced for the item Sword (large).
I kind of want to create, that you can upgrade your item Sowrd (low) to Sword (medium) and then Sword (large) by just buying the same item.
I have done something like this:
-
Sword Upgrade
-
Events
- Einheit - A unit buys an item
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- ((Triggering unit) has an item of type Sword) Equal to True
-
'THEN'-Actions
- Item - Remove (Item carried by (Triggering unit) of type Sword (low))
- Hero - Create Sword (medium) and give it to (Triggering unit)
- 'ELSE'-Actions
-
'IF'-Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Here I read something about checking the Items in each slot, but I honestly dont know how I do that :/