I've started experimenting with a map, where one of the sources of income is trading. Buying a thing somewhere and selling it elsewhere.
I found no function in the object editor that allowed the items to be at different prices at different shops, so I toyed with the triggers. This is the closest I've come to making something that should make it work, but it doesn't:
Events
-Unit A Unit Sells an item (from shop)*
Conditions
-(Unit Type of (Buying unit)) Equal to Los Isle Shipyard
-(Item-type of (Sold item)) Equal to Cannonball**
Actions
-Player - Add 10 to (triggering player) Current gold
*I have also tried "Pawns an item (to shop)".
**Cannonball is a custom item.
Currently, I only get the 5 gold I would have gotten normally also. With this trigger, I should get 15 gold total.
What would make this work?
I found no function in the object editor that allowed the items to be at different prices at different shops, so I toyed with the triggers. This is the closest I've come to making something that should make it work, but it doesn't:
Events
-Unit A Unit Sells an item (from shop)*
Conditions
-(Unit Type of (Buying unit)) Equal to Los Isle Shipyard
-(Item-type of (Sold item)) Equal to Cannonball**
Actions
-Player - Add 10 to (triggering player) Current gold
*I have also tried "Pawns an item (to shop)".
**Cannonball is a custom item.
Currently, I only get the 5 gold I would have gotten normally also. With this trigger, I should get 15 gold total.
What would make this work?