I need help with a trigger... i want to :
If a player types: "-buy sword"
then: create a sword object at position of "Unit" owned by typped player and substract X gold
if a player types "-buy shield"
then: create a shield object at position of "Unit" owned by typped player and substract X gold
if....(the same thing but another item typped)
then...(the same thing creating the specific object) and substract X gold
whats the best way to do this?
If a player types: "-buy sword"
then: create a sword object at position of "Unit" owned by typped player and substract X gold
if a player types "-buy shield"
then: create a shield object at position of "Unit" owned by typped player and substract X gold
if....(the same thing but another item typped)
then...(the same thing creating the specific object) and substract X gold
whats the best way to do this?