Update Player
Changes an existing player's name or play-money balance on the XGENIA RGS platform.
Identify the player by Player ID or by Player Name — one of the two is required.
Only the fields you actually connect are changed. An untouched Demo Balance port means "leave the balance alone", which is what leaves 0 free to mean "set the balance to zero". Connect the port and send zero to empty a player's float; leave it alone to keep it.
Amounts are in minor units: 1000 is 10.00.
Actions
| Signal | Description |
|---|
| Do | Runs the node. |
Identify
| Data | Description |
|---|
| Player ID (string) | The player to update, by id. Takes precedence over Player Name. |
| Player Name (string) | The player to update, by name. Use when you do not hold an id. |
Update
| Data | Description |
|---|
| New Player Name (string) | New display name. Leave unconnected to keep the current one. |
| Demo Balance (number) | New play-money balance, in minor units. Leave unconnected to keep the current balance — connecting it and sending 0 sets the balance to zero. |
Outputs
Result
| Data | Description |
|---|
| Player Id (string) | Id of the player that was updated. |
| Player Name (string) | The player’s name after the update. |
| Demo Balance (number) | The player’s play-money balance after the update, in minor units. |
| Is Successful (boolean) | True when the call succeeded. |
| Error (string) | The failure message when the call did not succeed. |
Events
| Signal | Description |
|---|
| Done | Sent when the node has finished, on success and on failure alike. |