Hey everyone I just wanted your feedback on what was the best way to do unit trading, currently I am leaning on letting players decide price (via the vanilla trade function) and creating an ability for every unit I want to be transferable where you can select a specific strucutre (there "capitol") belonging to a player you want to transfer control to. Does anyone else have a good way of doing this via triggers (such as a region or point attached to a unit?) if so please let me know!
Hey everyone I just wanted your feedback on what was the best way to do unit trading, currently I am leaning on letting players decide price (via the vanilla trade function) and creating an ability for every unit I want to be transferable where you can select a specific strucutre (there "capitol") belonging to a player you want to transfer control to. Does anyone else have a good way of doing this via triggers (such as a region or point attached to a unit?) if so please let me know!
Select a unit/units.
Type "-buy 1234" where "1234" is the value you'd pay.
Owner gets a dialog saying "X would like to buy your Y for 1234".
This is how I'd do it.
How would you set this up trigger wise?
[Don't have the editor in front of my for syntax, but it'll be roughly this:]
Event
Any player enters a chat message partially matching "-buy"
Actions
Set variable "price" = convert string to integer(word 2 of entered chat string)
Set variable "unit" = selected unit
Then go from there. Send a message, create a dialog, etc.