You will be limited to 20 total characters using the display script that I gave you.
So, tell me how many characters you have for a total and I will edit that for you if you can't figure out how to.
Remember though that I used a straight forward approach to the display, so if you have a high number of characters then the script may go over the line limit.
How many characters do you have in the level?
I made this new display script that will initialize the variable to the total amount of characters (including spawns) for the level.
Here is the
;Artificial Intelligence Script By Conjured Entertainment
;Death Count Display Using Global Var 33
;Header
desc = Death Count Display
;Triggers
;create death count huds
:state=0:hudreset,hudx=44,hudy=8,hudimagefine=gamecore\huds\user\0.dds,hudhide=1,hudname=dc2digit0,hudmake=display
:state=0:hudreset,hudx=44,hudy=8,hudimagefine=gamecore\huds\user\1.dds,hudhide=1,hudname=dc2digit1,hudmake=display
:state=0:hudreset,hudx=44,hudy=8,hudimagefine=gamecore\huds\user\2.dds,hudhide=1,hudname=dc2digit2,hudmake=display
:state=0:hudreset,hudx=44,hudy=8,hudimagefine=gamecore\huds\user\3.dds,hudhide=1,hudname=dc2digit3,hudmake=display
:state=0:hudreset,hudx=44,hudy=8,hudimagefine=gamecore\huds\user\4.dds,hudhide=1,hudname=dc2digit4,hudmake=display
:state=0:hudreset,hudx=44,hudy=8,hudimagefine=gamecore\huds\user\5.dds,hudhide=1,hudname=dc2digit5,hudmake=display
:state=0:hudreset,hudx=44,hudy=8,hudimagefine=gamecore\huds\user\6.dds,hudhide=1,hudname=dc2digit6,hudmake=display
:state=0:hudreset,hudx=44,hudy=8,hudimagefine=gamecore\huds\user\7.dds,hudhide=1,hudname=dc2digit7,hudmake=display
:state=0:hudreset,hudx=44,hudy=8,hudimagefine=gamecore\huds\user\8.dds,hudhide=1,hudname=dc2digit8,hudmake=display
:state=0:hudreset,hudx=44,hudy=8,hudimagefine=gamecore\huds\user\9.dds,hudhide=1,hudname=dc2digit9,hudmake=display
:state=0:hudreset,hudx=45,hudy=8,hudimagefine=gamecore\huds\user\0.dds,hudhide=0,hudname=dc1digit0,hudmake=display
:state=0:hudreset,hudx=45,hudy=8,hudimagefine=gamecore\huds\user\1.dds,hudhide=1,hudname=dc1digit1,hudmake=display
:state=0:hudreset,hudx=45,hudy=8,hudimagefine=gamecore\huds\user\2.dds,hudhide=1,hudname=dc1digit2,hudmake=display
:state=0:hudreset,hudx=45,hudy=8,hudimagefine=gamecore\huds\user\3.dds,hudhide=1,hudname=dc1digit3,hudmake=display
:state=0:hudreset,hudx=45,hudy=8,hudimagefine=gamecore\huds\user\4.dds,hudhide=1,hudname=dc1digit4,hudmake=display
:state=0:hudreset,hudx=45,hudy=8,hudimagefine=gamecore\huds\user\5.dds,hudhide=1,hudname=dc1digit5,hudmake=display
:state=0:hudreset,hudx=45,hudy=8,hudimagefine=gamecore\huds\user\6.dds,hudhide=1,hudname=dc1digit6,hudmake=display
:state=0:hudreset,hudx=45,hudy=8,hudimagefine=gamecore\huds\user\7.dds,hudhide=1,hudname=dc1digit7,hudmake=display
:state=0:hudreset,hudx=45,hudy=8,hudimagefine=gamecore\huds\user\8.dds,hudhide=1,hudname=dc1digit8,hudmake=display
:state=0:hudreset,hudx=45,hudy=8,hudimagefine=gamecore\huds\user\9.dds,hudhide=1,hudname=dc1digit9,hudmake=display
;initialization
:state=0:globalvar=33
:state=0:setvar=50,activate=13,state=4
:state=4,activated=13:activate=0,state=5
:state=5:state=6
;remove any existing huds before we display new ones
:state=6:hudunshow=dc1digit0,hudunshow=dc1digit1,hudunshow=dc1digit2,hudunshow=dc1digit3,hudunshow=dc1digit4,hudunshow=dc1digit5,hudunshow=dc1digit6,hudunshow=dc1digit7,hudunshow=dc1digit8,hudunshow=dc1digit9
:state=6:hudunshow=dcdigit0,hudunshow=dc2digit1,hudunshow=dc2digit2,hudunshow=dc2digit3,hudunshow=dc2digit4,hudunshow=dc2digit5,hudunshow=dc2digit6,hudunshow=dc2digit7,hudunshow=dc2digit8,hudunshow=dc2digit9,state=15
:state=15:globalvar=33,state=16
;test second value then display it
:state=16,varequal=0:hudshow=dc1digit0,state=17
:state=16,varequal=1:hudshow=dc1digit1,state=17
:state=16,varequal=2:hudshow=dc1digit2,state=17
:state=16,varequal=3:hudshow=dc1digit3,state=17
:state=16,varequal=4:hudshow=dc1digit4,state=17
:state=16,varequal=5:hudshow=dc1digit5,state=17
:state=16,varequal=6:hudshow=dc1digit6,state=17
:state=16,varequal=7:hudshow=dc1digit7,state=17
:state=16,varequal=8:hudshow=dc1digit8,state=17
:state=16,varequal=9:hudshow=dc1digit9,state=17
:state=16,varequal=10:hudshow=dc2digit1,hudshow=dc1digit0,state=17
:state=16,varequal=11:hudshow=dc2digit1,hudshow=dc1digit1,state=17
:state=16,varequal=12:hudshow=dc2digit1,hudshow=dc1digit2,state=17
:state=16,varequal=13:hudshow=dc2digit1,hudshow=dc1digit3,state=17
:state=16,varequal=14:hudshow=dc2digit1,hudshow=dc1digit4,state=17
:state=16,varequal=15:hudshow=dc2digit1,hudshow=dc1digit5,state=17
:state=16,varequal=16:hudshow=dc2digit1,hudshow=dc1digit6,state=17
:state=16,varequal=17:hudshow=dc2digit1,hudshow=dc1digit7,state=17
:state=16,varequal=18:hudshow=dc2digit1,hudshow=dc1digit8,state=17
:state=16,varequal=19:hudshow=dc2digit1,hudshow=dc1digit9,state=17
:state=16,varequal=20:hudshow=dc2digit2,hudshow=dc1digit0,state=17
:state=16,varequal=21:hudshow=dc2digit2,hudshow=dc1digit1,state=17
:state=16,varequal=22:hudshow=dc2digit2,hudshow=dc1digit2,state=17
:state=16,varequal=23:hudshow=dc2digit2,hudshow=dc1digit3,state=17
:state=16,varequal=24:hudshow=dc2digit2,hudshow=dc1digit4,state=17
:state=16,varequal=25:hudshow=dc2digit2,hudshow=dc1digit5,state=17
:state=16,varequal=26:hudshow=dc2digit2,hudshow=dc1digit6,state=17
:state=16,varequal=27:hudshow=dc2digit2,hudshow=dc1digit7,state=17
:state=16,varequal=28:hudshow=dc2digit2,hudshow=dc1digit8,state=17
:state=16,varequal=29:hudshow=dc2digit2,hudshow=dc1digit9,state=17
:state=16,varequal=30:hudshow=dc2digit3,hudshow=dc1digit0,state=17
:state=16,varequal=31:hudshow=dc2digit3,hudshow=dc1digit1,state=17
:state=16,varequal=32:hudshow=dc2digit3,hudshow=dc1digit2,state=17
:state=16,varequal=33:hudshow=dc2digit3,hudshow=dc1digit3,state=17
:state=16,varequal=34:hudshow=dc2digit3,hudshow=dc1digit4,state=17
:state=16,varequal=35:hudshow=dc2digit3,hudshow=dc1digit5,state=17
:state=16,varequal=36:hudshow=dc2digit3,hudshow=dc1digit6,state=17
:state=16,varequal=37:hudshow=dc2digit3,hudshow=dc1digit7,state=17
:state=16,varequal=38:hudshow=dc2digit3,hudshow=dc1digit8,state=17
:state=16,varequal=39:hudshow=dc2digit3,hudshow=dc1digit9,state=17
:state=16,varequal=40:hudshow=dc2digit4,hudshow=dc1digit0,state=17
:state=16,varequal=41:hudshow=dc2digit4,hudshow=dc1digit1,state=17
:state=16,varequal=42:hudshow=dc2digit4,hudshow=dc1digit2,state=17
:state=16,varequal=43:hudshow=dc2digit4,hudshow=dc1digit3,state=17
:state=16,varequal=44:hudshow=dc2digit4,hudshow=dc1digit4,state=17
:state=16,varequal=45:hudshow=dc2digit4,hudshow=dc1digit5,state=17
:state=16,varequal=46:hudshow=dc2digit4,hudshow=dc1digit6,state=17
:state=16,varequal=47:hudshow=dc2digit4,hudshow=dc1digit7,state=17
:state=16,varequal=48:hudshow=dc2digit4,hudshow=dc1digit8,state=17
:state=16,varequal=49:hudshow=dc2digit4,hudshow=dc1digit9,state=17
:state=16,varequal=50:hudshow=dc2digit5,hudshow=dc1digit0,state=17
:state=17:state=4
;End of Script
for the new display.
It handles up to 50 total characters.
You will need to set the variable for your total in the intialization part of the script, which I list below with the number in bold...
;initialization
:state=0:globalvar=33
:state=0:setvar=
50,activate=13,state=4
:state=4,activated=13:activate=0,state=5
:state=5:state=6
If you are using too many characters then the script will go over the line limit, so let me know if you use more than 50.
With this script you can do away with the custom appear scripts earlier, so set the characters APPEAR AI to one of the stock appear script.
You still need to use the destroy and of course the new display script, which will replace the old one for the entity used for the display.