In this topic please post all scripts compatible with Project Blue
Make a hitman game
http://forum.thegamecreators.com/?m=forum_view&t=131643&b=23
Animated Menu
http://forum.thegamecreators.com/?m=forum_view&t=141989&b=23
Capture the flag
http://forum.thegamecreators.com/?m=forum_view&t=155555&b=23
Leveling-Up System
http://forum.thegamecreators.com/?m=forum_view&t=158653&b=23
NAZI Zombie Scripts Almost done
http://forum.thegamecreators.com/?m=forum_view&t=154104&b=23
CoD: Modern Warfare Gameplay Pack
http://forum.thegamecreators.com/?m=forum_view&t=162837&b=24
Project Blue 1.7 Flashlight script
http://forum.thegamecreators.com/?m=forum_view&t=164620&b=23
3rd person
; 3rd person
;Header
desc = Player body
;Triggers
;LoadCam And Bind it to Entity | And Cam | Turn collision off so can follow player
:state=0:dimvar=coltclip,setvar=coltclip $EA,dimvar=coltstock,setvar=coltstock 1,hudreset,hudx=80,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric2.tga,hudname=ColtClip,hudtype=6,huduservar=coltclip,hudmake=numeric,hudshow=ColtClip,hudreset,hudx=85,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric2.tga,hudname=ColtStock,hudtype=6,huduservar=coltstock,hudmake=numeric,hudshow=ColtStock
:state=0:dimvar=loadtemp,setvar=loadtemp 0,dimvar=loadtemp2,setvar=loadtemp2 0,dimvar=loadtemp3,setvar=loadtemp3 0,dimvar=canload,setvar=canload 1,dimvar=reloadstate,setvar=reloadstate 0,dimvar=shootstate,setvar=shootstate 0,reloadweapon,dimvar=zoomstate,dimvar=movestate,setvar=movestate 0,setvar=zoomstate 0,dimvar=zoomval,setvar=zoomval 75,bindentitytocam=0,offsetcamy=0 5,offsetcamfore=0 -40,offsetenty=-32,animate=1,dimvar=Calc,dimvar=Moving,dimvar=Anim
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\guns\ww2\mp40\crosshair.dds,hudname=crosshair,hudhide=1,hudmake=display,hudshow=crosshair,state=1
:always:setvar=coltclip $EA
:vargreater=coltstock 0:setvar=canload 1
:always:setvar=loadtemp 8,subvar=loadtemp $EA,setvar=loadtemp2 %loadtemp,subvar=loadtemp2 1
:always:setvar=loadtemp3 %coltstock,addvar=loadtemp3 %coltclip
;animations
:ALWAYS:setvar=Moving 0
:keypressed=17 1,plrusingrun=0:addvar=Moving 1
:keypressed=17 1,plrusingrun=1:addvar=Moving 2
:keypressed=31 1,plrusingrun=0:addvar=Moving -1
:keypressed=31 1,plrusingrun=1:addvar=Moving -2
:ALWAYS:setvar=Calc 0
:keypressed=30 1:addvar=Calc -90
:keypressed=32 1:addvar=Calc 90
:vargreater=Moving 1:divvar=Calc 2
:varless=Moving -1:divvar=Calc -2
:ALWAYS:addvar=Calc 180
:keypressed=57 1:setframe=7,setvar=jumpstate 1
:varequal=zoomstate 0,mouseclick=2:setalphafade=50,setvar=zoomstate 1
:varequal=zoomstate 1:subvar=zoomval 2,setcamfov=0 %zoomval
:varequal=zoomstate 1,varless=zoomval 40:setvar=zoomstate 2
:varequal=zoomstate 2,mouseclick=0:setvar=zoomstate 3
:varequal=zoomstate 3,mouseclick=2:setalphafade=99,setvar=zoomstate 4
:varequal=zoomstate 4:addvar=zoomval 2,setcamfov=0 %zoomval
:varequal=zoomstate 4,vargreater=zoomval 75:setvar=zoomstate 5
:varequal=zoomstate 5,mouseclick=0:setvar=zoomstate 0
:varnotequal=Calc 90,varnotequal=Calc -90: offsetentyang=%Calc
:varequal=movestate 0,varequal=Moving 2:setanimspeed=100,setvar=Anim 5
:varequal=movestate 0,varequal=Moving 1:setanimspeed=100,setvar=Anim 2
:varequal=movestate 0,varequal=Moving 0:setanimspeed=100,setvar=Anim 1
:varequal=movestate 0,varequal=Moving 0,varnotequal=Calc 180,plrusingrun=0:setanimspeed=100,setvar=Anim 3
:varequal=movestate 0,varequal=Moving 0,varnotequal=Calc 180,plrusingrun=1:setanimspeed=100,setvar=Anim 3
:varequal=movestate 0,varequal=Moving -1:setanimspeed=-100,setvar=Anim 2
:varequal=movestate 0,varequal=Moving -2:setanimspeed=-100,setvar=Anim 5
:varequal=movestate 1,varequal=Moving 2:setanimspeed=60,setvar=Anim 5
:varequal=movestate 1,varequal=Moving 1:setanimspeed=60,setvar=Anim 2
:varequal=movestate 1,varequal=Moving 0:setanimspeed=60,setvar=Anim 1
:varequal=movestate 1,varequal=Moving 0,varnotequal=Calc 180,plrusingrun=0:setanimspeed=60,setvar=Anim 3
:varequal=movestate 1,varequal=Moving 0,varnotequal=Calc 180,plrusingrun=1:setanimspeed=60,setvar=Anim 3
:varequal=movestate 1,varequal=Moving -1:setanimspeed=-60,setvar=Anim 2
:varequal=movestate 1,varequal=Moving -2:setanimspeed=-60,setvar=Anim 5
:varequal=zoomstate 0:setvar=movestate 0
:varequal=zoomstate 3:setvar=movestate 1
;Crouching
:keypressed=46 1:addvar=Anim 30,offsetenty=7
:keypressed=46 0:offsetenty=-23
:keypressed=16 0,keypressed=18 0,varequal=reloadstate 0,plronground=1,varequal=movestate 0:animate=%Anim
:keypressed=16 0,keypressed=18 0,varequal=reloadstate 0,plronground=1,varequal=movestate 1:animate=%Anim
:keypressed=16 0,keypressed=18 0,varequal=reloadstate 0,varequal=movestate 1:plrspeed=60
:keypressed=16 0,keypressed=18 0,varequal=reloadstate 0,varequal=movestate 0:plrspeed=100
:keypressed=18 1:plrspeed=0
:keypressed=16 1:plrspeed=0
:vargreater=coltstock 0:setvar=canload 1
:varequal=reloadstate 1,vargreater=coltstock %loadtemp2:setframe=6,reloadweapon,subvar=coltstock %loadtemp,setvar=reloadstate 4
:varequal=reloadstate 1,varless=coltstock %loadtemp:setframe=6,addvar=EA %coltstock,setvar=coltstock 0,setvar=reloadstate 4
:varequal=reloadstate 0,varequal=canload 1,keypressed=19 1:setvar=reloadstate 1
:varequal=reloadstate 2,frameatend=6:setvar=reloadstate 3
:varequal=reloadstate 2:setvar=reloadstate 4
:varequal=reloadstate 3,keypressed=19 0:setvar=reloadstate 0
:varequal=reloadstate 4:incframe=6,setvar=reloadstate 2
:varequal=reloadstate 1:plrspeed=0
:varequal=shootstate 3:useweapon,rundecal=6,setvar=shootstate 2,showentity
:varequal=shootstate 1:setvar=shootstate 3,settargetreticle,shootstate=3,offsetenty=-22
:varequal=shootstate 2,mouseclick=0:setvar=shootstate 0
:varequal=reloadstate 0,varequal=shootstate 0,mouseclick=1,ifweapon=1:rundecal=6,offsetenty=50000,hideentity,setvar=shootstate 1
:keypressed=18 1:plrspeed=0
:keypressed=16 1:plrspeed=0
Armor Script
;Artificial Intelligence Script
;Header
desc = Armor Script, by Plystire (Requires Ply's Mod V1.05+)
;Triggers
:state=0:dimvar=PlrHealth,dimvar=PlrArmor,setvar=PlrArmor 100,dimvar=Temp
:state=0:hudreset,hudx=24,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric2.tga,hudname=PlrArmorNum,hudtype=6,huduservar=PlrArmor,hudmake=numeric,state=1
:vargreater=PlrHealth $PH,vargreater=PlrArmor 0:setvar=Temp %PlrHealth,subvar=Temp $PH,plraddhealth=%Temp
:vargreater=Temp 0:subvar=PlrArmor %Temp,setvar=Temp 0,etimerstart
:varless=PlrArmor 0:setvar=PlrArmor 0
:etimergreater=5000,varless=PlrArmor 100:addvar=PlrArmor 1
:ALWAYS:setvar=PlrHealth $PH
;End of Script
followonplrapproach
;Artificial Intelligence Script
;Modified by Plystire to do the following:
; - Only follow waypoints once the player "gets on"
; - Follow waypoints to end and activate ifused at end, then wait for player to get off
; - Once player is off, activate ifused to 0 and follow waypoints back to beginning and wait again
;Header
desc = Follow Waypoints with no rotation (platform)
;Triggers
:state=0,plrhigher=10,plrdistwithin=40:state=1,loopsound=audiobank\atmos\nuclearhum.wav,norotate=1
:state=1,waypointstate=0:animate=2,waypointstart
:state=1,waypointstate=99:animate=2,waypointstart
:state=1,waypointstate=3:animate=2,waypointnext
:state=1,waypointstate=5:stopsound,activateifused=1
:state=1,plrdistfurther=75,waypointstate=5:state=2,activateifused=0,waypointreverse
:state=2,waypointstate=3:animate=2,waypointnext
:state=2,waypointstate=5:state=0,waypointstop
;End of Script
KeyinZone
; Unique Drop Pad
; Scripted by Plystire
;Header
desc = Key Within Zone, Activate If Used
;Triggers
:state=0,anykeywithinzone=1:activateifused=1,plrsound=audiobank\switches\activate.wav,state=1
:state=1,anykeywithinzone=0:activateifused=0,plrsound=audiobank\switches\deactivate.wav,state=0
motionblur
; Motion Blur Handler
; Scripted by Plystire
;Header
desc = Cause motion blur when moving mouse or moving fast (Applied to dynamic light)
;Triggers
; /////////////////////////////
; //////////// Change "blurAmnt" for differing blur amount. -1 gives heavy blur while -0.01 gives barely any
; /////////////////////////////
:state=0:dimvar=blurx,dimvar=blury,dimvar=blurAmnt
:state=0:dimvar=plrbx,dimvar=plrby
:state=0:setvar=blurAmnt -0.15,state=1
::setvar=blurx $MMX,mulvar=blurx %blurAmnt,setvar=blury $MMY,mulvar=blury %blurAmnt
;/////When player low on health, make random blurring and have player's view wobble
:plrhealthless=80,random=10:addvar=plrbx -0.1,addvar=plrby -0.1
:plrhealthless=80,random=10:addvar=plrbx -0.1
:plrhealthless=80,random=10:addvar=plrby -0.1
:plrhealthless=80,random=10:addvar=plrbx 0.1,addvar=plrby 0.1
:plrhealthless=80,random=10:addvar=plrbx 0.1
:plrhealthless=80,random=10:addvar=plrby 0.1
:plrhealthless=80,random=10:camfov=20
:plrhealthless=80:loopsound=audiobank/user/heartbeat.ogg,plrwobble=10
:plrhealthgreater=79:setvar=plrbx 0,setvar=plrby 0,stopsound,plrwobble=0
:vargreater=plrbx 1:setvar=plrbx 1
:varless=plrbx -1:setvar=plrbx -1
:vargreater=plrby 1:setvar=plrby 1
:varless=plrby -1:setvar=plrby -1
::addvar=blurx %plrbx,addvar=blury %plrby
::csreset,csnum=1,csconstname=blurX,csval1=%blurx,csfinish
::csreset,csnum=1,csconstname=blurY,csval1=%blury,csfinish
plrinzone_kill
;Artificial Intelligence Script
;Header
desc = Plr In Zone, Kill Player instantly
;Triggers
:plrwithinzone=1:plraddhealth=-9999
Delete weapon when player in zone
;Artificial Intelligence Script
;Airmod Script by Ashley Tayles
;Header
desc = resetweapons
;Triggers
:plrwithinzone=1:state=1,resetplrweapons
HumVee Drive Script
http://forum.thegamecreators.com/?m=forum_view&t=128688&b=21
;Requires Ply's Mod V1.07+
;Artificial Intelligence Script
;Header
desc = HumVee Drive Script (Vehikleh!!!!)
;Triggers
;///// Load up HUD and Humvee camera, set humvee cam offsets for third person perspective
;///// Dim variables necessary
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretextpressentertouse.tga,hudname=driveprompt,hudhide=1,hudmake=display
:state=0:makecamera=HumveeCam
:state=0:offsetcamy=HumveeCam 150,offsetcamfore=HumveeCam -110
:state=0:dimvar=Temp,dimvar=TempX,dimvar=TempY,dimvar=HAccel,setvar=HAccel 0.5,dimvar=HVel,dimvar=HMaxVel
:state=0:animate=1,state=1
;///// Show Use HUD when player approaches
:state=1,plrdistwithin=100:hudshow=driveprompt,hudfadeout=driveprompt
;///// If player activates SpyBot, then disable plr input using startmenu
;///// and view through the humvee third person camera, also loop motor sound
:state=1,plrdistwithin=100,plrusingaction=1:startmenu,viewcam=HumveeCam,plrcoloff,loopsound=audiobank/atmos/motorhum.wav,state=2
;///// Hide The Player HUDs
:state=2:hudunshow=PlrLives,hudunshow=PlrLivesNum,hudunshow=PlrHealth,hudunshow=PlrHealthNum,hudunshow=GunPic,hudunshow=PlrAmmo,hudunshow=PlrArmor,hudunshow=PlrArmorNum,hudunshow=PlrMoney,hudunshow=PlrMoneyNum,state=3
;///// Make sure Camera follows the Humvee
;:state=3:cameraposx=HumveeCam $EPX,cameraposy=HumveeCam $EPY,cameraposz=HumveeCam $EPZ
;:state=3:cameraposx=0 $EPX,cameraposy=0 $EPY,cameraposz=0 $EPZ
;///// Give Humvee acceleration
:state=3,plrusingrun=0:setvar=HMaxVel 15
:state=3,plrusingrun=1:setvar=HMaxVel 25
:state=3:setanimspeed=100,setvar=TempX 0
:state=3:setvar=Temp %HMaxVel,mulvar=Temp -1,divvar=Temp 2
:state=3,keypressed=17 1,plrusingrun=1,varless=HVel %HMaxVel:addvar=HVel %HAccel,addvar=HVel %HAccel,setvar=TempX 1
:state=3,keypressed=17 1,plrusingrun=0,varless=HVel %HMaxVel:addvar=HVel %HAccel,setvar=TempX 1
:state=3,keypressed=31 1,plrusingrun=1,vargreater=HVel %Temp:subvar=HVel %HAccel,subvar=Hvel %HAccel,setvar=TempX 1
:state=3,keypressed=31 1,plrusingrun=0,vargreater=HVel %Temp:subvar=HVel %HAccel,setvar=TempX 1
;///// Handle Humvee Velocity and movement
:state=3:movefore=%HVel
:state=3,varless=HVel 0:setanimspeed=-100
:state=3:setvar=Temp %HAccel,divvar=Temp 2
:state=3,varequal=TempX 0,vargreater=HVel 0:subvar=HVel %Temp
:state=3,varequal=TempX 0,varless=HVel 0:addvar=HVel %Temp
:state=3,keypressed=57 1,vargreater=HVel 0:subvar=HVel %HAccel
:state=3,keypressed=57 1,varless=HVel 0:addvar=HVel %HAccel
;///// If moving, then start angling Humvee towards direction camera is facing
:state=3,varequal=TempX 1:state=10
:state=10:setvar=TempY $CAY_HumveeCam,subvar=TempY $EAY
:state=10,vargreater=TempY 180:state=11
:state=10,varless=TempY -180:state=12
:state=11:setvar=TempX $EAY,addvar=TempX -2,entityangley=%TempX,state=3
:state=12:setvar=TempX $EAY,addvar=TempX 2,entityangley=%TempX,state=3
:state=10:setvar=TempY $CAY_HumveeCam,addvar=TempY -3
:state=10,varless=$EAY %TempY:setvar=TempX $EAY,addvar=TempX 2,entityangley=%TempX
:state=10:setvar=TempY $CAY_HumveeCam,addvar=TempY 3
:state=10,vargreater=$EAY %TempY:setvar=TempX $EAY,addvar=TempX -2,entityangley=%TempX
:state=10:state=3
;///// Restore normal FPS Cam when "G" is pressed
;///// Need to restore player control with "stopmenu" and view the normal camera and stop motor sound
:state=3,keypressed=34 1:state=4
;///// Make humvee cam look around based on mouse movement
:state=3:setvar=TempX $MMY,setvar=TempY $MMX,divvar=TempX 7,divvar=TempY 7,addvar=TempX $CAX_HumveeCam,addvar=TempY $CAY_HumveeCam
:state=3:cameraangx=HumveeCam %TempX,cameraangy=HumveeCam %TempY
;///// Show the Player HUDs again
:state=4:hudshow=PlrLives,hudshow=PlrLivesNum,hudshow=PlrHealth,hudshow=PlrHealthNum,hudshow=GunPic,hudshow=PlrAmmo,hudshow=PlrArmor,hudshow=PlrArmorNum,hudshow=PlrMoney,hudshow=PlrMoneyNum
;///// Position Player outside of driver door
:state=4:cameraposx=HumveeCam $EPX,cameraposy=HumveeCam $EPY,cameraposz=HumveeCam $EPZ
:state=4:setvar=TempY $EAY,subvar=TempY 90
:state=4:cameraangx=HumveeCam 0,cameraangy=HumveeCam %TempY,cameraangz=HumveeCam 0
:state=4:movecam=HumveeCam 70
:state=4:setvar=TempX $CPX_HumveeCam,cameraposx=0 %TempX
:state=4:setvar=TempX $CPY_HumveeCam,addvar=TempX 100,cameraposy=0 %TempX
:state=4:setvar=TempX $CPZ_HumveeCam,cameraposz=0 %TempX
:state=4:addvar=TempY 90,cameraangy=HumveeCam %TempY
:state=4:cameraangy=0 %TempY
:state=4:stopmenu,viewcam=0,plrcolon,stopsound,state=1
;End of Script
Plystire's Inventory Script
http://forum.thegamecreators.com/?m=forum_view&t=158412&b=23
;Artificial Intelligence Script
; Written by Plystire
;Header
desc = Inventory
;Triggers
; Initialize variables needed
:state=0:dimvar=FireSlot,dimvar=FiraSlot,dimvar=FiragaSlot
:state=0:dimvar=BlizzardSlot,dimvar=BlizzaraSlot,dimvar=BlizzagaSlot
:state=0:dimvar=ThunderSlot,dimvar=ThundaraSlot,dimvar=ThundagaSlot
:state=0:dimvar=DrainSlot,dimvar=OsmoseSlot,dimvar=ProtectSlot,dimvar=ShellSlot
:state=0:dimvar=ReflectSlot,dimvar=UltimaSlot
:state=0:dimvar=DaggerSlot,dimvar=SwordSlot,dimvar=OSwordSlot
:state=0:dimvar=2HandSlot,dimvar=HammerSlot,dimvar=OHammerSlot,dimvar=ShieldSlot
:state=0:dimvar=InvSel,dimvar=InvSet,dimvar=InvUp,dimvar=CalcVar
; Load BG
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore/huds/Inventory/Inven_bg.png,hudname=background,hudhide=1,hudmake=display
; Load Slot HUDs
:state=0:hudreset,hudx=30.47,hudy=6.51,hudimage=gamecore/huds/Inventory/Slot1.png,hudtype=41,hudname=SlotOne,hudhide=1,hudmake=button
:state=0:hudreset,hudx=40.23,hudy=6.51,hudimage=gamecore/huds/Inventory/Slot2.png,hudtype=42,hudname=SlotTwo,hudhide=1,hudmake=button
:state=0:hudreset,hudx=50,hudy=6.51,hudimage=gamecore/huds/Inventory/Slot3.png,hudtype=43,hudname=SlotThr,hudhide=1,hudmake=button
:state=0:hudreset,hudx=59.77,hudy=6.51,hudimage=gamecore/huds/Inventory/Slot4.png,hudtype=44,hudname=SlotFou,hudhide=1,hudmake=button
; Load Weapon HUDs and their Select HUDs
;Gear
:state=0:hudreset,hudx=11.62,hudy=32.03,hudimage=gamecore/huds/Inventory/CDagger.bmp,hudtype=31,hudname=InvenDagger,hudhide=1,hudmake=button
:state=0:hudreset,hudx=11.62,hudy=6.51,hudimage=gamecore/huds/Inventory/CDagger.bmp,hudname=DaggerSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=11.62,hudy=32.03,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelDagger,hudhide=1,hudmake=display
:state=0:hudreset,hudx=22.85,hudy=32.03,hudimage=gamecore/huds/Inventory/CSword.bmp,hudtype=32,hudname=InvenSword,hudhide=1,hudmake=button
:state=0:hudreset,hudx=22.85,hudy=6.51,hudimage=gamecore/huds/Inventory/CSword.bmp,hudname=SwordSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=22.85,hudy=32.03,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelSword,hudhide=1,hudmake=display
:state=0:hudreset,hudx=34.08,hudy=32.03,hudimage=gamecore/huds/Inventory/OSword.bmp,hudtype=33,hudname=InvenOSword,hudhide=1,hudmake=button
:state=0:hudreset,hudx=34.08,hudy=6.51,hudimage=gamecore/huds/Inventory/OSword.bmp,hudname=OSwordSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=34.08,hudy=32.03,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelOSword,hudhide=1,hudmake=display
:state=0:hudreset,hudx=11.62,hudy=47.14,hudimage=gamecore/huds/Inventory/C2HandSword.bmp,hudtype=34,hudname=Inven2Hand,hudhide=1,hudmake=button
:state=0:hudreset,hudx=11.62,hudy=6.51,hudimage=gamecore/huds/Inventory/C2HandSword.bmp,hudname=2HandSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=11.62,hudy=47.14,hudimage=gamecore/huds/Inventory/Select.png,hudname=Sel2Hand,hudhide=1,hudmake=display
:state=0:hudreset,hudx=22.85,hudy=47.14,hudimage=gamecore/huds/Inventory/CHammer.bmp,hudtype=35,hudname=InvenHammer,hudhide=1,hudmake=button
:state=0:hudreset,hudx=22.85,hudy=6.51,hudimage=gamecore/huds/Inventory/CHammer.bmp,hudname=HammerSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=22.85,hudy=47.14,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelHammer,hudhide=1,hudmake=display
:state=0:hudreset,hudx=34.08,hudy=47.14,hudimage=gamecore/huds/Inventory/OHammer.bmp,hudtype=36,hudname=InvenOHammer,hudhide=1,hudmake=button
:state=0:hudreset,hudx=34.08,hudy=6.51,hudimage=gamecore/huds/Inventory/OHammer.bmp,hudname=OHammerSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=34.08,hudy=47.14,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelOHammer,hudhide=1,hudmake=display
:state=0:hudreset,hudx=11.62,hudy=62.24,hudimage=gamecore/huds/Inventory/Shield.bmp,hudtype=37,hudname=InvenShield,hudhide=1,hudmake=button
:state=0:hudreset,hudx=11.62,hudy=6.51,hudimage=gamecore/huds/Inventory/Shield.bmp,hudname=ShieldSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=11.62,hudy=62.24,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelShield,hudhide=1,hudmake=display
;Spells
:state=0:hudreset,hudx=56.05,hudy=32.03,hudimage=gamecore/huds/Inventory/Fire.png,hudtype=10,hudname=InvenFire,hudhide=1,hudmake=button
:state=0:hudreset,hudx=56.05,hudy=6.51,hudimage=gamecore/huds/Inventory/Fire.png,hudname=FireSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=56.05,hudy=32.03,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelFire,hudhide=1,hudmake=display
:state=0:hudreset,hudx=67.29,hudy=32.03,hudimage=gamecore/huds/Inventory/Fira.png,hudtype=11,hudname=InvenFira,hudhide=1,hudmake=button
:state=0:hudreset,hudx=67.29,hudy=6.51,hudimage=gamecore/huds/Inventory/Fira.png,hudname=FiraSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=67.29,hudy=32.03,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelFira,hudhide=1,hudmake=display
:state=0:hudreset,hudx=78.52,hudy=32.03,hudimage=gamecore/huds/Inventory/Firaga.png,hudtype=12,hudname=InvenFiraga,hudhide=1,hudmake=button
:state=0:hudreset,hudx=78.52,hudy=6.51,hudimage=gamecore/huds/Inventory/Firaga.png,hudname=FiragaSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=78.52,hudy=32.03,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelFiraga,hudhide=1,hudmake=display
:state=0:hudreset,hudx=89.75,hudy=32.03,hudimage=gamecore/huds/Inventory/Drain.png,hudtype=13,hudname=InvenDrain,hudhide=1,hudmake=button
:state=0:hudreset,hudx=89.75,hudy=6.51,hudimage=gamecore/huds/Inventory/Drain.png,hudname=DrainSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=89.75,hudy=32.03,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelDrain,hudhide=1,hudmake=display
:state=0:hudreset,hudx=56.05,hudy=47.14,hudimage=gamecore/huds/Inventory/Blizzard.png,hudtype=14,hudname=InvenBlizzard,hudhide=1,hudmake=button
:state=0:hudreset,hudx=56.05,hudy=6.51,hudimage=gamecore/huds/Inventory/Blizzard.png,hudname=BlizzardSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=56.05,hudy=47.14,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelBlizzard,hudhide=1,hudmake=display
:state=0:hudreset,hudx=67.29,hudy=47.14,hudimage=gamecore/huds/Inventory/Blizzara.png,hudtype=15,hudname=InvenBlizzara,hudhide=1,hudmake=button
:state=0:hudreset,hudx=67.29,hudy=6.51,hudimage=gamecore/huds/Inventory/Blizzara.png,hudname=BlizzaraSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=67.29,hudy=47.14,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelBlizzara,hudhide=1,hudmake=display
:state=0:hudreset,hudx=78.52,hudy=47.14,hudimage=gamecore/huds/Inventory/Blizzaga.png,hudtype=16,hudname=InvenBlizzaga,hudhide=1,hudmake=button
:state=0:hudreset,hudx=78.52,hudy=6.51,hudimage=gamecore/huds/Inventory/Blizzaga.png,hudname=BlizzagaSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=78.25,hudy=47.14,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelBlizzaga,hudhide=1,hudmake=display
:state=0:hudreset,hudx=89.75,hudy=47.14,hudimage=gamecore/huds/Inventory/Osmose.png,hudtype=17,hudname=InvenOsmose,hudhide=1,hudmake=button
:state=0:hudreset,hudx=89.75,hudy=6.51,hudimage=gamecore/huds/Inventory/Osmose.png,hudname=OsmoseSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=89.75,hudy=47.14,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelOsmose,hudhide=1,hudmake=display
:state=0:hudreset,hudx=56.05,hudy=62.24,hudimage=gamecore/huds/Inventory/Thunder.png,hudtype=18,hudname=InvenThunder,hudhide=1,hudmake=button
:state=0:hudreset,hudx=56.05,hudy=6.51,hudimage=gamecore/huds/Inventory/Thunder.png,hudname=ThunderSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=56.05,hudy=62.24,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelThunder,hudhide=1,hudmake=display
:state=0:hudreset,hudx=67.29,hudy=62.24,hudimage=gamecore/huds/Inventory/Thundara.png,hudtype=19,hudname=InvenThundara,hudhide=1,hudmake=button
:state=0:hudreset,hudx=67.29,hudy=6.51,hudimage=gamecore/huds/Inventory/Thundara.png,hudname=ThundaraSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=67.29,hudy=62.24,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelThundara,hudhide=1,hudmake=display
:state=0:hudreset,hudx=78.52,hudy=62.24,hudimage=gamecore/huds/Inventory/Thundaga.png,hudtype=20,hudname=InvenThundaga,hudhide=1,hudmake=button
:state=0:hudreset,hudx=78.52,hudy=6.51,hudimage=gamecore/huds/Inventory/Thundaga.png,hudname=ThundagaSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=78.52,hudy=62.24,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelThundaga,hudhide=1,hudmake=display
:state=0:hudreset,hudx=67.29,hudy=77.34,hudimage=gamecore/huds/Inventory/Ultima.png,hudtype=22,hudname=InvenUltima,hudhide=1,hudmake=button
:state=0:hudreset,hudx=67.29,hudy=6.51,hudimage=gamecore/huds/Inventory/Ultima.png,hudname=UltimaSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=67.29,hudy=77.34,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelUltima,hudhide=1,hudmake=display
:state=0:hudreset,hudx=89.75,hudy=62.24,hudimage=gamecore/huds/Inventory/Protect.png,hudtype=21,hudname=InvenProtect,hudhide=1,hudmake=button
:state=0:hudreset,hudx=89.75,hudy=6.51,hudimage=gamecore/huds/Inventory/Protect.png,hudname=ProtectSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=89.75,hudy=62.24,hudimage=gamecore/huds/Inventory/Select.png,hudname=SelProtect,hudhide=1,hudmake=display
:state=0:hudreset,hudx=89.75,hudy=62.24,hudimage=gamecore/huds/Inventory/Shell.png,hudtype=21,hudname=InvenShell,hudhide=1,hudmake=button
:state=0:hudreset,hudx=89.75,hudy=6.51,hudimage=gamecore/huds/Inventory/Shell.png,hudname=ShellSlot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=89.75,hudy=62.24,hudimage=gamecore/huds/Inventory/Reflect.png,hudtype=21,hudname=InvenReflect,hudhide=1,hudmake=button
:state=0:hudreset,hudx=89.75,hudy=6.51,hudimage=gamecore/huds/Inventory/Reflect.png,hudname=ReflectSlot,hudhide=1,hudmake=display
:state=0:coloff,state=1
:state=1,keypressed=23 1:startmenu,hudshow=pointer,state=20
:state=20,keypressed=23 0:state=2
; Make sure we only show spells and gear that the player has
:state=2:hudshow=background,hudshow=SlotOne,hudshow=SlotTwo,hudshow=SlotThr,hudshow=SlotFou,setvar=InvUp 1
:state=2,varequal=HaveDagger 0:hudshow=InvenDagger
:state=2,varequal=HaveSword 0:hudshow=InvenSword
:state=2,varequal=HaveOSword 0:hudshow=InvenOSword
:state=2,varequal=Have2Hand 0:hudshow=Inven2Hand
:state=2,varequal=HaveHammer 0:hudshow=InvenHammer
:state=2,varequal=HaveOHammer 0:hudshow=InvenOHammer
:state=2,varequal=HaveShield 0:hudshow=InvenShield
:state=2,vargreater=PlrLevel 0:hudshow=InvenFire
:state=2,vargreater=PlrLevel 0:hudshow=InvenBlizzard
:state=2,vargreater=PlrLevel 0:hudshow=InvenThunder
:state=2,vargreater=PlrLevel 0:hudshow=InvenFira
:state=2,vargreater=PlrLevel 0:hudshow=InvenBlizzara
:state=2,vargreater=PlrLevel 0:hudshow=InvenThundara
:state=2,vargreater=PlrLevel 0:hudshow=InvenFiraga
:state=2,vargreater=PlrLevel 0:hudshow=InvenBlizzaga
:state=2,vargreater=PlrLevel 0:hudshow=InvenThundaga
:state=2,vargreater=PlrLevel 0:hudshow=InvenUltima
:state=2,vargreater=PlrLevel 0:hudshow=InvenDrain
:state=2,vargreater=PlrLevel 0:hudshow=InvenOsmose
:state=2,vargreater=PlrLevel 0,varless=PlrLevel 2:hudshow=InvenProtect
:state=2,vargreater=PlrLevel 1,varless=PlrLevel 3:hudshow=InvenShell
:state=2,vargreater=PlrLevel 2:hudshow=InvenReflect
:state=2:state=3
; Make sure we hide our normal display HUDs for this
:state=3:hudunshow=emblem,hudunshow=PlrLevelNum
; Handle selection of weapons
:state=3,hudselectionmade=10:setvar=InvSel 10
:state=3,hudselectionmade=11:setvar=InvSel 11
:state=3,hudselectionmade=12:setvar=InvSel 12
:state=3,hudselectionmade=13:setvar=InvSel 13
:state=3,hudselectionmade=14:setvar=InvSel 14
:state=3,hudselectionmade=15:setvar=InvSel 15
:state=3,hudselectionmade=16:setvar=InvSel 16
:state=3,hudselectionmade=17:setvar=InvSel 17
:state=3,hudselectionmade=18:setvar=InvSel 18
:state=3,hudselectionmade=19:setvar=InvSel 19
:state=3,hudselectionmade=20:setvar=InvSel 20
:state=3,hudselectionmade=21:setvar=InvSel 21
:state=3,hudselectionmade=22:setvar=InvSel 22
:state=3,hudselectionmade=31:setvar=InvSel 31
:state=3,hudselectionmade=32:setvar=InvSel 32
:state=3,hudselectionmade=33:setvar=InvSel 33
:state=3,hudselectionmade=34:setvar=InvSel 34
:state=3,hudselectionmade=35:setvar=InvSel 35
:state=3,hudselectionmade=36:setvar=InvSel 36
:state=3,hudselectionmade=37:setvar=InvSel 37
; If player selects a slot... make sure player has made a inventory selection already
:state=3,hudselectionmade=41,varnotequal=InvSel 0:setvar=InvSet 1,state=10
:state=3,hudselectionmade=42,varnotequal=InvSel 0:setvar=InvSet 2,state=10
:state=3,hudselectionmade=43,varnotequal=InvSel 0:setvar=InvSet 3,state=10
:state=3,hudselectionmade=44,varnotequal=InvSel 0:setvar=InvSet 4,state=10
; Show selection HUD where it should be
:state=3,varequal=InvSel 10:hudshow=SelFire,hudfadeout=SelFire
:state=3,varequal=InvSel 11:hudshow=SelFira,hudfadeout=SelFira
:state=3,varequal=InvSel 12:hudshow=SelFiraga,hudfadeout=SelFiraga
:state=3,varequal=InvSel 13:hudshow=SelDrain,hudfadeout=SelDrain
:state=3,varequal=InvSel 14:hudshow=SelBlizzard,hudfadeout=SelBlizzard
:state=3,varequal=InvSel 15:hudshow=SelBlizzara,hudfadeout=SelBlizzara
:state=3,varequal=InvSel 16:hudshow=SelBlizzaga,hudfadeout=SelBlizzaga
:state=3,varequal=InvSel 17:hudshow=SelOsmose,hudfadeout=SelOsmose
:state=3,varequal=InvSel 18:hudshow=SelThunder,hudfadeout=SelThunder
:state=3,varequal=InvSel 19:hudshow=SelThundara,hudfadeout=SelThundara
:state=3,varequal=InvSel 20:hudshow=SelThundaga,hudfadeout=SelThundaga
:state=3,varequal=InvSel 21:hudshow=SelProtect,hudfadeout=SelProtect
:state=3,varequal=InvSel 22:hudshow=SelUltima,hudfadeout=SelUltima
:state=3,varequal=InvSel 31:hudshow=SelDagger,hudfadeout=SelDagger
:state=3,varequal=InvSel 32:hudshow=SelSword,hudfadeout=SelSword
:state=3,varequal=InvSel 33:hudshow=SelOSword,hudfadeout=SelOSword
:state=3,varequal=InvSel 34:hudshow=Sel2Hand,hudfadeout=Sel2Hand
:state=3,varequal=InvSel 35:hudshow=SelHammer,hudfadeout=SelHammer
:state=3,varequal=InvSel 36:hudshow=SelOHammer,hudfadeout=SelOHammer
:state=3,varequal=InvSel 37:hudshow=SelShield,hudfadeout=SelShield
;///////Assign Weapon To Slot Routine
; Make sure the weapon being assigned isn't already in the player's inventory
:state=10,varequal=InvSel 10,weapininv=Ply/Fire CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 11,weapininv=Ply/Fira CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 12,weapininv=Ply/Firaga CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 13,weapininv=Ply/Drain CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 14,weapininv=Ply/Blizzard CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 15,weapininv=Ply/Blizzara CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 16,weapininv=Ply/Blizzaga CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 17,weapininv=Ply/Osmose CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 18,weapininv=Ply/Thunder CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 19,weapininv=Ply/Thundara CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 20,weapininv=Ply/Thundaga CalcVar,vargreater=CalcVar 0:state=11
:state=10,vargreater=PlrLevel 0,varless=PlrLevel 2,varequal=InvSel 21,weapininv=Ply/Protect CalcVar,vargreater=CalcVar 0:state=11
:state=10,vargreater=PlrLevel 1,varless=PlrLevel 3,varequal=InvSel 21,weapininv=Ply/Shell CalcVar,vargreater=CalcVar 0:state=11
:state=10,vargreater=PlrLevel 2,varequal=InvSel 21,weapininv=Ply/Reflect CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 22,weapininv=Ply/Ultima CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 31,weapininv=EAI_FANTASY/DAGGER1AF CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 32,weapininv=EAI_FANTASY/SWORD1AF CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 33,weapininv=EAI_FANTASY/SWORD1BF CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 34,weapininv=EAI_FANTASY/2HSWORD1AF CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 35,weapininv=EAI_FANTASY/WARHAMMER1AF CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 36,weapininv=EAI_FANTASY/WARHAMMER1BF CalcVar,vargreater=CalcVar 0:state=11
:state=10,varequal=InvSel 37,weapininv=EAI_FANTASY/SHIELD1AF CalcVar,vargreater=CalcVar 0:state=11
; If the weapon was already assigned in the inventory.. make sure to remove it, or to ignore it
:state=11,varequal=CalcVar %InvSet:state=3
:state=11:removeweap=%CalcVar,state=10
; If we made it this far, then let's remove the weapon in the slot and make it the chosen one
:state=10:removeweap=%InvSet
:state=10,varequal=InvSel 10:giveweap=Ply/Fire %InvSet,plrsound=$0
:state=10,varequal=InvSel 11:giveweap=Ply/Fira %InvSet,plrsound=$0
:state=10,varequal=InvSel 12:giveweap=Ply/Firaga %InvSet,plrsound=$0
:state=10,varequal=InvSel 13:giveweap=Ply/Drain %InvSet,plrsound=$0
:state=10,varequal=InvSel 14:giveweap=Ply/Blizzard %InvSet,plrsound=$0
:state=10,varequal=InvSel 15:giveweap=Ply/Blizzara %InvSet,plrsound=$0
:state=10,varequal=InvSel 16:giveweap=Ply/Blizzaga %InvSet,plrsound=$0
:state=10,varequal=InvSel 17:giveweap=Ply/Osmose %InvSet,plrsound=$0
:state=10,varequal=InvSel 18:giveweap=Ply/Thunder %InvSet,plrsound=$0
:state=10,varequal=InvSel 19:giveweap=Ply/Thundara %InvSet,plrsound=$0
:state=10,varequal=InvSel 20:giveweap=Ply/Thundaga %InvSet,plrsound=$0
:state=10,vargreater=PlrLevel 0,varless=PlrLevel 2,varequal=InvSel 21:giveweap=Ply/Protect %InvSet,plrsound=$0
:state=10,vargreater=PlrLevel 1,varless=PlrLevel 3,varequal=InvSel 21:giveweap=Ply/Shell %InvSet,plrsound=$0
:state=10,vargreater=PlrLevel 2,varequal=InvSel 21:giveweap=Ply/Reflect %InvSet,plrsound=$0
:state=10,varequal=InvSel 22:giveweap=Ply/Ultima %InvSet,plrsound=$0
:state=10,varequal=InvSel 31:giveweap=EAI_FANTASY/DAGGER1AF %InvSet,plrsound=$0
:state=10,varequal=InvSel 32:giveweap=EAI_FANTASY/SWORD1AF %InvSet,plrsound=$0
:state=10,varequal=InvSel 33:giveweap=EAI_FANTASY/SWORD1BF %InvSet,plrsound=$0
:state=10,varequal=InvSel 34:giveweap=EAI_FANTASY/2HSWORD1AF %InvSet,plrsound=$0
:state=10,varequal=InvSel 35:giveweap=EAI_FANTASY/WARHAMMER1AF %InvSet,plrsound=$0
:state=10,varequal=InvSel 36:giveweap=EAI_FANTASY/WARHAMMER1BF %InvSet,plrsound=$0
:state=10,varequal=InvSel 37:giveweap=EAI_FANTASY/SHIELD1AF %InvSet,plrsound=$0
:state=10:state=3
; Exit Inventory if player presses "I" again
:state=3,keypressed=23 1:stopmenu,hudunshow=pointer,state=21,hudshow=emblem,hudshow=PlrLevelNum,hudunshow=background,hudunshow=SlotOne,hudunshow=SlotTwo,hudunshow=SlotThr,hudunshow=SlotFou,hudunshow=InvenFire,hudunshow=InvenFira,hudunshow=InvenFiraga,hudunshow=InvenBlizzard,hudunshow=InvenBlizzara,hudunshow=InvenBlizzaga,hudunshow=InvenThunder,hudunshow=InvenThundara,hudunshow=InvenThundaga,hudunshow=InvenDrain,hudunshow=InvenOsmose,hudunshow=InvenProtect,hudunshow=InvenShell,hudunshow=InvenReflect,hudunshow=InvenUltima,hudunshow=InvenDagger,hudunshow=InvenSword,hudunshow=InvenOSword,hudunshow=Inven2Hand,hudunshow=InvenHammer,hudunshow=InvenOHammer,hudunshow=InvenShield
:state=21,keypressed=23 0:state=1,setvar=InvUp 0
;//////// Make sure each slot shows the correct weapon HUD
:ALWAYS:setvar=FireSlot 0,setvar=FiraSlot 0,setvar=FiragaSlot 0,setvar=BlizzardSlot 0,setvar=BlizzaraSlot 0,setvar=BlizzagaSlot 0,setvar=ThunderSlot 0,setvar=ThundaraSlot 0,setvar=ThundagaSlot 0,setvar=DrainSlot 0,setvar=OsmoseSlot 0,setvar=ProtectSlot 0,setvar=ShellSlot 0,setvar=ReflectSlot 0,setvar=UltimaSlot 0
:ALWAYS:hudunshow=FireSlot,hudunshow=FiraSlot,hudunshow=FiragaSlot,hudunshow=BlizzardSlot,hudunshow=BlizzaraSlot,hudunshow=BlizzagaSlot,hudunshow=ThunderSlot,hudunshow=ThundaraSlot,hudunshow=ThundagaSlot,hudunshow=DrainSlot,hudunshow=OsmoseSlot,hudunshow=ProtectSlot,hudunshow=ShellSlot,hudunshow=ReflectSlot,hudunshow=UltimaSlot,hudunshow=DaggerSlot,hudunshow=SwordSlot,hudunshow=OSwordSlot,hudunshow=2HandSlot,hudunshow=HammerSlot,hudunshow=OHammerSlot,hudunshow=ShieldSlot
:state=3,weapininv=Ply/Fire FireSlot:hudshow=FireSlot
:state=3,weapininv=Ply/Fira FiraSlot:hudshow=FiraSlot
:state=3,weapininv=Ply/Firaga FiragaSlot:hudshow=FiragaSlot
:state=3,weapininv=Ply/Blizzard BlizzardSlot:hudshow=BlizzardSlot
:state=3,weapininv=Ply/Blizzara BlizzaraSlot:hudshow=BlizzaraSlot
:state=3,weapininv=Ply/Blizzaga BlizzagaSlot:hudshow=BlizzagaSlot
:state=3,weapininv=Ply/Thunder ThunderSlot:hudshow=ThunderSlot
:state=3,weapininv=Ply/Thundara ThundaraSlot:hudshow=ThundaraSlot
:state=3,weapininv=Ply/Thundaga ThundagaSlot:hudshow=ThundagaSlot
:state=3,weapininv=Ply/Drain DrainSlot:hudshow=DrainSlot
:state=3,weapininv=Ply/Osmose OsmoseSlot:hudshow=OsmoseSlot
:state=3,weapininv=Ply/Protect ProtectSlot:hudshow=ProtectSlot
:state=3,weapininv=Ply/Shell ShellSlot:hudshow=ShellSlot
:state=3,weapininv=Ply/Reflect ReflectSlot:hudshow=ReflectSlot
:state=3,weapininv=Ply/Ultima UltimaSlot:hudshow=UltimaSlot
:state=3,weapininv=EAI_FANTASY/DAGGER1AF DaggerSlot:hudshow=DaggerSlot
:state=3,weapininv=EAI_FANTASY/SWORD1AF SwordSlot:hudshow=SwordSlot
:state=3,weapininv=EAI_FANTASY/SWORD1BF OSwordSlot:hudshow=OSwordSlot
:state=3,weapininv=EAI_FANTASY/2HSWORD1AF 2HandSlot:hudshow=2HandSlot
:state=3,weapininv=EAI_FANTASY/WARHAMMER1AF HammerSlot:hudshow=HammerSlot
:state=3,weapininv=EAI_FANTASY/WARHAMMER1BF OHammerSlot:hudshow=OHammerSlot
:state=3,weapininv=EAI_FANTASY/SHIELD1AF ShieldSlot:hudshow=ShieldSlot
:state=3,vargreater=FireSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %FireSlot,addvar=CalcVar 20.71,sethudx=FireSlot %CalcVar
:state=3,vargreater=FiraSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %FiraSlot,addvar=CalcVar 20.71,sethudx=FiraSlot %CalcVar
:state=3,vargreater=FiragaSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %FiragaSlot,addvar=CalcVar 20.71,sethudx=FiragaSlot %CalcVar
:state=3,vargreater=BlizzardSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %BlizzardSlot,addvar=CalcVar 20.71,sethudx=BlizzardSlot %CalcVar
:state=3,vargreater=BlizzaraSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %BlizzaraSlot,addvar=CalcVar 20.71,sethudx=BlizzaraSlot %CalcVar
:state=3,vargreater=BlizzagaSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %BlizzagaSlot,addvar=CalcVar 20.71,sethudx=BlizzagaSlot %CalcVar
:state=3,vargreater=ThunderSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %ThunderSlot,addvar=CalcVar 20.71,sethudx=ThunderSlot %CalcVar
:state=3,vargreater=ThundaraSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %ThundaraSlot,addvar=CalcVar 20.71,sethudx=ThundaraSlot %CalcVar
:state=3,vargreater=ThundagaSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %ThundagaSlot,addvar=CalcVar 20.71,sethudx=ThundagaSlot %CalcVar
:state=3,vargreater=DrainSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %DrainSlot,addvar=CalcVar 20.71,sethudx=DrainSlot %CalcVar
:state=3,vargreater=OsmoseSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %OsmoseSlot,addvar=CalcVar 20.71,sethudx=OsmoseSlot %CalcVar
:state=3,vargreater=ProtectSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %ProtectSlot,addvar=CalcVar 20.71,sethudx=ProtectSlot %CalcVar
:state=3,vargreater=ShellSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %ShellSlot,addvar=CalcVar 20.71,sethudx=ShellSlot %CalcVar
:state=3,vargreater=ReflectSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %ReflectSlot,addvar=CalcVar 20.71,sethudx=ReflectSlot %CalcVar
:state=3,vargreater=UltimaSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %UltimaSlot,addvar=CalcVar 20.71,sethudx=UltimaSlot %CalcVar
:state=3,vargreater=DaggerSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %DaggerSlot,addvar=CalcVar 20.71,sethudx=DaggerSlot %CalcVar
:state=3,vargreater=SwordSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %SwordSlot,addvar=CalcVar 20.71,sethudx=SwordSlot %CalcVar
:state=3,vargreater=OSwordSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %OSwordSlot,addvar=CalcVar 20.71,sethudx=OSwordSlot %CalcVar
:state=3,vargreater=2HandSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %2HandSlot,addvar=CalcVar 20.71,sethudx=2HandSlot %CalcVar
:state=3,vargreater=HammerSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %HammerSlot,addvar=CalcVar 20.71,sethudx=HammerSlot %CalcVar
:state=3,vargreater=OHammerSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %OHammerSlot,addvar=CalcVar 20.71,sethudx=OHammerSlot %CalcVar
:state=3,vargreater=ShieldSlot 0:setvar=CalcVar 9.8,mulvar=CalcVar %ShieldSlot,addvar=CalcVar 20.71,sethudx=ShieldSlot %CalcVar
security camera script
; Security Camera Script
; Scripted by Plystire
;Header
desc = Make Camera and view it when activated
;Triggers
;Set up initialized variables, Camera, and HUDs
:state=0:dimvar=OffY,dimvar=CamRotDir,dimvar=Calc,dimvar=cambar,setvar=cambar -50,dimvar=static
:state=0:makecamera=SecurityCam,setcamfov=SecurityCam 90,bindcamtoentity=SecurityCam,offsetcamyang=SecurityCam 180,offsetcamfore=SecurityCam -18
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore/huds/screen0.dds,hudname=scrn0,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore/huds/screen1.dds,hudname=scrn1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=-50,hudimagefine=gamecore/huds/screenbar.dds,hudname=scrnbar,hudhide=1,hudmake=display,state=1
;View security camera when player is nearby and presses Action Key
:state=1,activated=1:viewcam=SecurityCam,setscreenshader=2,activate=0,hudshow=scrnbar,hudshow=scrn0,hudshow=scrn1,hidecrosshair,state=2,hudunshow=plrlives,hudunshow=plrlivesnum,hudunshow=plrhealth,hudunshow=plrhealthnum,hudunshow=plrammo,hudunshow=plrammonum
;Make camera rotate to look around room
:state=2:setvar=Calc 180,addvar=Calc %OffY,offsetcamyang=SecurityCam %Calc
:state=2,varequal=CamRotDir 0,etimergreater=800:addvar=OffY 0.5
:state=2,varequal=CamRotDir 1,etimergreater=800:subvar=OffY 0.5
:state=2,vargreater=OffY 60:setvar=OffY 59,setvar=CamRotDir 1,etimerstart
:state=2,varless=OffY -60:setvar=OffY -59,setvar=CamRotDir 0,etimerstart
;Return to player view when Action Key is used again
:state=2,activated=1:viewcam=0,setscreenshader=1,activate=0,hudunshow=scrnbar,hudunshow=scrn0,hudunshow=scrn1,showcrosshair,state=1,hudshow=plrlives,hudshow=plrlivesnum,hudshow=plrhealth,hudshow=plrhealthnum,hudshow=plrammo,hudshow=plrammonum
;Handle static display
:state=2,varequal=static 1:addvar=static 1
:state=2,varequal=static 0:hudshow=scrn0,hudunshow=scrn1,addvar=static 1
:state=2,varequal=static 3:addvar=static 1
:state=2,varequal=static 2:hudshow=scrn1,hudunshow=scrn0,setvar=static 0
;Handle Camera static "bar"
:state=2:sethudy=scrnbar %cambar,addvar=cambar 2
:state=2,vargreater=%cambar 150:setvar=cambar -50
Player in zone to freeze (10 seconds)
;Artificial Intelligence Script
;Header
desc =Plr Freeze
;Triggers
:state=0,timerstart,plrwithinzone=1:activateallinzone=1,state=1
:state=1,timergreater=1000:plrfreeze=1000,state=2
:state=2:activateallinzone=1
;End of script
Past code to notebook and save as yourscript.fpi