User Tools

Site Tools


cerea2:build:gui_death

Death GUI

Death gui works as following. When PC falls below 0 hitpoints, but is still over -10 he is in dying state. This will set Dying variable on PC and knock him down. This also summons the SCREEN_HIDDEN_DEATH screen on the display (full screen invisible window). If PC then left clicks anywhere on the screen gui_death_hidden_click script is called.

gui_death_hidden_click will then dismiss all death screens (SCREEN_HIDDEN_DEATH and SCREEN_PARTY_DEATH) and check if PC is still dying and if so will pop up SCREEN_PARTY_DEATH screen having options Respawn, and Wait for Help.

If PC clicks Respawn then gui_death_respawn is called. This will respawn PC and transfer him to starting location. If PC clicks Wait for Help then gui_death_waitforhelp is called. This will simply hide death screen and summon the hidden death screen.

If during any time the PC actually dies (and no alive party members nearby) then normal SCREEN_PARTY_DEATH is shown immediately. PC has same options as above.

FIXME We need later to add support that DM can disable respawn button.

cerea2/build/gui_death.txt · Last modified: 2015/05/03 12:32 by 127.0.0.1