Got everything working here fine as i figured out something REALLY disturbing: The crashes only ocurr when I have my personal version of the compass inside. This is a little annoying, as my WXG compass rework contains also the code for my damage HUD system, but most of all I cannot figure out why the hell it is so.
Bond, can you take a look?
;Artificial Intelligence Script
;Header
desc = Compass Bibo4PC mod - WickedXGames
;Triggers
:state=0:dimvar=PlrAngel
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud1.png,hudname=comp1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud2.png,hudname=comp2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud3.png,hudname=comp3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud4.png,hudname=comp4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud5.png,hudname=comp5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud6.png,hudname=comp6,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud7.png,hudname=comp7,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud8.png,hudname=comp8,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud9.png,hudname=comp9,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud10.png,hudname=comp10,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud11.png,hudname=comp11,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud12.png,hudname=comp12,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud13.png,hudname=comp13,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud14.png,hudname=comp14,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud15.png,hudname=comp15,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\dmg\playerlight.png,hudname=playerlight,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\dmg\playermed.png,hudname=playermed,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\dmg\playerheavy.png,hudname=playerheavy,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\dmg\playerdying.png,hudname=playerdying,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=85,hudimagefine=gamecore\huds\compass\comphud16.png,hudname=comp16,hudhide=1,hudmake=display,state=1
:state=1:setvar=PlrAngel $CAY,wrapvar=PlrAngel
:state=1,vargreater=PlrAngel 0:hudshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 22.5:hudunshow=comp1,hudshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 45:hudunshow=comp1,hudunshow=comp2,hudshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 67.5:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 90:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 112.5:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 135:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 157.5:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 180:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 202.5:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 225:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 247.5:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 270:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudshow=comp13,hudunshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 292.5:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudshow=comp14,hudunshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 315:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudshow=comp15,hudunshow=comp16
:state=1,vargreater=PlrAngel 337.5:hudunshow=comp1,hudunshow=comp2,hudunshow=comp3,hudunshow=comp4,hudunshow=comp5,hudunshow=comp6,hudunshow=comp7,hudunshow=comp8,hudunshow=comp9,hudunshow=comp10,hudunshow=comp11,hudunshow=comp12,hudunshow=comp13,hudunshow=comp14,hudunshow=comp15,hudshow=comp16
:state=1,PLRHEALTHGREATER=0:hudunshow=playerlight,hudunshow=playermed,hudunshow=playerheavy,hudshow=playerdying,setposteffect=motionsickness,ambiencered=225
:state=1,PLRHEALTHGREATER=10:hudunshow=playerlight,hudunshow=playermed,hudshow=playerheavy,hudunshow=playerdying,ambiencered=175
:state=1,PLRHEALTHGREATER=25:hudunshow=playerlight,hudshow=playermed,hudunshow=playerheavy,hudunshow=playerdying,ambiencered=125
:state=1,PLRHEALTHGREATER=50:hudshow=playerlight,hudunshow=playermed,hudunshow=playerheavy,hudunshow=playerdying,ambiencered=75
:state=1,PLRHEALTHGREATER=74:hudunshow=playerlight,hudunshow=playermed,hudunshow=playerheavy,hudunshow=playerdying,ambiencered=25
;End of Script