StendhalRefactoringRP: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Oslsachem
No edit summary
imported>Oslsachem
Line 125: Line 125:


==Trading system==
==Trading system==

Based on a idea suggested by '''Khesus'''

''Player1'' offers a trading deal with ''Player2'' by right-clicking on ''Player2'' and choosing ''Trade'':

*''Player2'' is prompted with a window asking for accepting beginning a deal with ''Player1'' or not.
*A bag window opens in the middle of the screen. The window is vertically splitted in two parts with a certain number of free slots in each part.
**Each part has the name of each Player on Top:
**The left part corresponds to Player1 who has made the trading offer and the right part to Player2 who has accepted it.
**Each part of the window has two buttons at the bottom: ''accept'' or ''reject'' (alternatively ''deal!'' or ''no way!'')
*Each player can drag items from his respective bag and drop them only in his part of the window BUT once the item is dropped, none of the players can remove it (this measure prevents cheating in the deal due to net lag).

One of the players clicks on one of the buttons at the bottom once he is:
*Satisfied with what the other player has dropped in the other part of window and
*Satisfied with the items he has offered for the trade in his own part of the window

Let's suppose he clicks on ''accept'' then the other player sees that the first player has accepted the deal and that he can't drop any more items to his part of the window. So, he just can choose ''accept'' or ''reject'' too.
*If any of the players clicks on ''reject'' at any time: the window is closed and the items return to their original owners.
*If both players click on ''accept'': the window is closed too and the items are exchanged between them

<br>
<br>
<br>
<br>