Well, I was just talking with someone online about my inventory script and happened to find the poor, neglected script sitting in my old scriptbank. So, I figured I would reveal it to the world, so that everyone may enjoy it.
Or at least.... those who are able to understand it and change it to their needs will benefit from it.
So, yeah, here it is.
Don't hurt yourselves.
This is the script for the inventory in this video.
REQUIRES:
Project Blue
-OR-
Ply's Mod V1.08
;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
The one and only,