Barebones function 135
Contents
Barebones function 135
Function 135: 135:
- Function 135 = 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 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.)
How the function appears in the script
135: sync //Waits 1 frame.
scroll_text 000000C8, 000000C8, 00000028, 00000006, 00000002, 1, R73, <color 7>HP: <color 4><r45>/<r44> <color 2><r49>/<r48> <color 6><r53>/<r52> <color 1><r57>/<r56><cr><color 7>TP: <color 4><r47>/<r46> <color 2><r51>/<r50> <color 6><r55>/<r54> <color 1><r59>/<r58><cr><color 7>K.O. count <r39>. //Displays a scrolling text message.
136: sync //Waits 1 frame.
sync //waits 1 frame.
sync //waits 1 frame.
jmpi_= R73, 00000000, 136 //If register 73 equals 00000000 jump to function 136.
winend //Closes the window message.
clear R73 //Makes register 73 equal 00000000.
jmp 135 //Jumps to function 135.
Also see
sync, scroll_text, jmpi_=, winend, clear, jmp,
Barebones function 130, Barebones function 131, Barebones function 132,
Barebones function 133, Barebones function 134, Barebones function 136,