Barebones function 132
Contents
Barebones function 132
Function 132: 132:
- Function 132 = Part of HP and TP monitoring.
HP and TP monitoring
This is needed to help determine cretin conditions you may want to place in your quest that would use the players HP and TP values. Things such as players death count or overall all players HP and TP or just to inform the players in real time how much HP and TP everyone else has at the moment. This monitors current HP and TP levels and maximum HP and TP levels. It can also be used as an anti cheating device, since all the clients have to report to the quest there actual HP and TP values. This is also helpful because you can actually see how much HP and TP your teammates have.
Barebones function 130 = Function 130 is threaded when the quest begins in Barebones function 10500, all players store their current HP and TP values in register 40 through register 43, The players are then told to take their HP and TP values in register 40 through register 43 and sync_register them up to all players in new registers to be used as what will be displayed and reported to everyone, the function jumps back on it's self to update the monitored values.
Barebones function 131 = Function 131 tells the red gem player to sync_register their HP and TP values to all clients.
Barebones function 132 = Function 132 tells the green gem player to sync_register their HP and TP values to all clients.
Barebones function 133 = Function 133 tells the yellow gem player to sync_register their HP and TP values to all clients.
Barebones function 134 = Function 134 tells the blue gem player to sync_register their HP and TP values to all clients.
Barebones function 135 = Function 135 scrolls a text message informing about the current HP and TP values of all players, and the K.O. counter. (This function has to be turned on at the quest makers decision.)
Barebones function 136 = Function 136 waits for the scrolling text message in function 135 to finish and when it does scroll the message again for an update. (This function may be edited by the quest maker to work at a timed interval for not so constant updates.)
Use
Function 132 tells the green gem player to sync_register their HP and TP values to all clients.
How the function appears in the script
132: let R48, R40 //Makes register 48 equal register 40.
sync_register R48, R48 //Makes register 48 equal register 48 for all clients.
let R49, R41 //Makes register 49 equal register 41.
sync_register R49, R49 //Makes register 49 equal register 49 for all clients.
let R50, R42 //Makes register 50 equal register 42.
sync_register R50, R50 //Makes register 50 equal register 50 for all clients.
let R51, R43 //Makes register 51 equal register 43.
sync_register R51, R51 //Makes register 51 equal register 51 for all clients.
ret
Also see
let, sync_register, ret,
Barebones function 130, Barebones function 131, Barebones function 133,
Barebones function 134, Barebones function 135, Barebones function 136,