- Joined
- Apr 9, 2008
- Messages
- 8
Okay, so here's the deal, I want a player to be able to type -swap and then for him to receive a cancel/player1/player2/player3 dialog, pressing any of the later 3 will send a dialog to the player pressed, in turn giving them a no/yes dialog. If they accept, unit ownership is swapped.
Now I got this half working once, everything up until ownership changing worked fine (one person ended up with both heroes...) Though I accidentally saved over it with some dog's breakfast of code. Though I realised that I most likely had to rework a lot of the code anyway, at which point I am now having a lot of trouble with.
One of the big problems is that there are 4 teams, and any of them could execute -swap. Thus I believe I need to isolate certain things (this is where I am having trouble).
This is seriously warping my mind, every time I look at it, I am deducing something new...crap
Any help would be greatly appreciated.
Now I got this half working once, everything up until ownership changing worked fine (one person ended up with both heroes...) Though I accidentally saved over it with some dog's breakfast of code. Though I realised that I most likely had to rework a lot of the code anyway, at which point I am now having a lot of trouble with.
One of the big problems is that there are 4 teams, and any of them could execute -swap. Thus I believe I need to isolate certain things (this is where I am having trouble).
This is seriously warping my mind, every time I look at it, I am deducing something new...crap
Any help would be greatly appreciated.