GelTDia.baf

// Removed if none PC ///
IF
    OnCreation()
    !Allegiance(LastSummonerOf(Myself),PC)
THEN
    RESPONSE #100
      SetGlobal("GelTDia_Done","LOCALS",1)
      DestroySelf()
END

IF
    OnCreation()
    Allegiance(LastSummonerOf(Myself),PC)
THEN
    RESPONSE #100
      SetGlobal("GelTDia_Init","LOCALS",1)
END

// Starts dialog
IF
    Global("GelTDia_Init","LOCALS",1)
    Exists(LastSummonerOf(Myself))
    InParty(LastSummonerOf(Myself))
THEN
    RESPONSE #100
        ClearAllActions()
		SetGlobal("GelTDia_Init","LOCALS",2)
        StartDialogNoSet(LastSummonerOf(Myself))
END

//  Safeguard if dead
IF
    Global("GelTDia_Init","LOCALS",1)
    !Exists(LastSummonerOf(Myself))
THEN
    RESPONSE #100
       SetGlobal("GelTDia_Init","LOCALS",0)
       DestroySelf() 
END

IF
    Global("GelTDia_Init","LOCALS",5)
THEN
    RESPONSE #100
    SetGlobal("GelTDia_Init","LOCALS",1)
END	

// Destroy self and clean up after dialog.
IF
    Global("GelTDia_Init","LOCALS",3)
THEN
    RESPONSE #100
       SetGlobal("GelTDia_Init","LOCALS",0)
       DestroySelf()
END

///// POTION FUNCTIONS ////

IF
  Global("GelTDia_Done","LOCALS",1)
  GlobalLT("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    SetGlobal("GelTDia_Process","LOCALS",1)
    Continue()
END

//// BACKSTAB SECTION ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelBackstabNeg3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelNBS3",LastSummonerOf(Myself)))
    SetGlobal("GelBackstabNeg3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelBackstabNeg2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelNBS2",LastSummonerOf(Myself)))
    SetGlobal("GelBackstabNeg2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelBackstabNeg1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelNBS1",LastSummonerOf(Myself)))
    SetGlobal("GelBackstabNeg1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelBackstabPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPBS1",LastSummonerOf(Myself)))
    SetGlobal("GelBackstabPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelBackstabPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPBS2",LastSummonerOf(Myself)))
    SetGlobal("GelBackstabPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelBackstabPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPBS3",LastSummonerOf(Myself)))
    SetGlobal("GelBackstabPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelBackstabReset","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelBSRe",LastSummonerOf(Myself)))
    SetGlobal("GelBackstabReset","LOCALS",2)
    Continue()
END

//// STEALTH SECTION ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStealthNeg30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10S",LastSummonerOf(Myself)))
    SetGlobal("GelStealthNeg30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStealthNeg20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10S",LastSummonerOf(Myself)))
    SetGlobal("GelStealthNeg20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStealthNeg10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10S",LastSummonerOf(Myself)))
    SetGlobal("GelStealthNeg10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStealthPos10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    SetGlobal("GelStealthPos10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStealthPos20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    SetGlobal("GelStealthPos20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStealthPos30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    SetGlobal("GelStealthPos30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStealthPos40","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    SetGlobal("GelStealthPos40","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStealthPos50","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10S",LastSummonerOf(Myself)))
    SetGlobal("GelStealthPos50","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStealthReset","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSRes",LastSummonerOf(Myself)))
    SetGlobal("GelStealthReset","LOCALS",2)
    Continue()
END

//// Find traps ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFindTrapsNeg30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10F",LastSummonerOf(Myself)))
    SetGlobal("GelFindTrapsNeg30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFindTrapsNeg20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10F",LastSummonerOf(Myself)))
    SetGlobal("GelFindTrapsNeg20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFindTrapsNeg10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10F",LastSummonerOf(Myself)))
    SetGlobal("GelFindTrapsNeg10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFindTrapsPos10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    SetGlobal("GelFindTrapsPos10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFindTrapsPos20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    SetGlobal("GelFindTrapsPos20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFindTrapsPos30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    SetGlobal("GelFindTrapsPos30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFindTrapsPos40","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    SetGlobal("GelFindTrapsPos40","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFindTrapsPos50","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10F",LastSummonerOf(Myself)))
    SetGlobal("GelFindTrapsPos50","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFindTrapsReset","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFRes",LastSummonerOf(Myself)))
    SetGlobal("GelFindTrapsReset","LOCALS",2)
    Continue()
END

//// PICK POCKET ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPickPocketNeg30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10P",LastSummonerOf(Myself)))
    SetGlobal("GelPickPocketNeg30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPickPocketNeg20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10P",LastSummonerOf(Myself)))
    SetGlobal("GelPickPocketNeg20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPickPocketNeg10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10P",LastSummonerOf(Myself)))
    SetGlobal("GelPickPocketNeg10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPickPocketPos10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    SetGlobal("GelPickPocketPos10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPickPocketPos20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    SetGlobal("GelPickPocketPos20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPickPocketPos30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    SetGlobal("GelPickPocketPos30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPickPocketPos40","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    SetGlobal("GelPickPocketPos40","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPickPocketPos50","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10P",LastSummonerOf(Myself)))
    SetGlobal("GelPickPocketPos50","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPickPocketReset","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPRes",LastSummonerOf(Myself)))
    SetGlobal("GelPickPocketReset","LOCALS",2)
    Continue()
END

//// OPEN LOCKS ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelOpenLocksNeg30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10O",LastSummonerOf(Myself)))
    SetGlobal("GelOpenLocksNeg30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelOpenLocksNeg20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10O",LastSummonerOf(Myself)))
    SetGlobal("GelOpenLocksNeg20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelOpenLocksNeg10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10O",LastSummonerOf(Myself)))
    SetGlobal("GelOpenLocksNeg10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelOpenLocksPos10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    SetGlobal("GelOpenLocksPos10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelOpenLocksPos20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    SetGlobal("GelOpenLocksPos20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelOpenLocksPos30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    SetGlobal("GelOpenLocksPos30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelOpenLocksPos40","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    SetGlobal("GelOpenLocksPos40","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelOpenLocksPos50","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10O",LastSummonerOf(Myself)))
    SetGlobal("GelOpenLocksPos50","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelOpenLocksReset","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelORes",LastSummonerOf(Myself)))
    SetGlobal("GelOpenLocksReset","LOCALS",2)
    Continue()
END

//// DETECT ILLUSION ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDetectIllusionsNeg30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10I",LastSummonerOf(Myself)))
    SetGlobal("GelDetectIllusionsNeg30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDetectIllusionsNeg20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10I",LastSummonerOf(Myself)))
    SetGlobal("GelDetectIllusionsNeg20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDetectIllusionsNeg10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10I",LastSummonerOf(Myself)))
    SetGlobal("GelDetectIllusionsNeg10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDetectIllusionsPos10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    SetGlobal("GelDetectIllusionsPos10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDetectIllusionsPos20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    SetGlobal("GelDetectIllusionsPos20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDetectIllusionsPos30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    SetGlobal("GelDetectIllusionsPos30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDetectIllusionsPos40","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    SetGlobal("GelDetectIllusionsPos40","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDetectIllusionsPos50","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10I",LastSummonerOf(Myself)))
    SetGlobal("GelDetectIllusionsPos50","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDetectIllusionsReset","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelIRes",LastSummonerOf(Myself)))
    SetGlobal("GelDetectIllusionsReset","LOCALS",2)
    Continue()
END

//// Set Traps ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSetTrapsNeg30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10T",LastSummonerOf(Myself)))
    SetGlobal("GelSetTrapsNeg30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSetTrapsNeg20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10T",LastSummonerOf(Myself)))
    SetGlobal("GelSetTrapsNeg20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSetTrapsNeg10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel-10T",LastSummonerOf(Myself)))
    SetGlobal("GelSetTrapsNeg10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSetTrapsPos10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    SetGlobal("GelSetTrapsPos10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSetTrapsPos20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    SetGlobal("GelSetTrapsPos20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSetTrapsPos30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    SetGlobal("GelSetTrapsPos30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSetTrapsPos40","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    SetGlobal("GelSetTrapsPos40","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSetTrapsPos50","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel+10T",LastSummonerOf(Myself)))
    SetGlobal("GelSetTrapsPos50","LOCALS",2)
    Continue()
END

//IF
//  Global("GelTDia_Process","LOCALS",1)
//  Global("GelSetTrapsReset","LOCALS",1)
//THEN
//  RESPONSE #100
//    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTRes",LastSummonerOf(Myself)))
//    SetGlobal("GelSetTrapsReset","LOCALS",2)
//    Continue()
//END

/////////////////////////////////////////// GelTDia_SpellCasting /////////////////////////////////////////////////

////////// Casting Speed ///////
IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelCastingSpeedNeg2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS-1",LastSummonerOf(Myself)))
    SetGlobal("GelCastingSpeedNeg2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelCastingSpeedNeg1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS-1",LastSummonerOf(Myself)))
    SetGlobal("GelCastingSpeedNeg1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelCastingSpeedPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS+1",LastSummonerOf(Myself)))
    SetGlobal("GelCastingSpeedPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelCastingSpeedPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS+1",LastSummonerOf(Myself)))
    SetGlobal("GelCastingSpeedPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelCastingSpeedPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS+1",LastSummonerOf(Myself)))
    SetGlobal("GelCastingSpeedPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelCastingSpeedPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCS+1",LastSummonerOf(Myself)))
    SetGlobal("GelCastingSpeedPos4","LOCALS",2)
    Continue()
END

//IF
//  Global("GelTDia_Process","LOCALS",1)
//  Global("GelCastingSpeedReset","LOCALS",1)
//THEN
//  RESPONSE #100
//    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCSRe",LastSummonerOf(Myself)))
//    SetGlobal("GelCastingSpeedReset","LOCALS",2)
//    Continue()
//END

//// GelArcaneCastingSlots ///////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelArcaneCastingSlotsNeg1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAC-1",LastSummonerOf(Myself)))
    SetGlobal("GelArcaneCastingSlotsNeg1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelArcaneCastingSlotsPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAC+1",LastSummonerOf(Myself)))
    SetGlobal("GelArcaneCastingSlotsPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelArcaneCastingSlotsPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAC+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAC+1",LastSummonerOf(Myself)))
    SetGlobal("GelArcaneCastingSlotsPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelArcaneCastingSlotsPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAC+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAC+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAC+1",LastSummonerOf(Myself)))
    SetGlobal("GelArcaneCastingSlotsPos3","LOCALS",2)
    Continue()
END

//IF
//  Global("GelTDia_Process","LOCALS",1)
//  Global("GelArcaneCastingSlotsReset","LOCALS",1)
//THEN
//  RESPONSE #100
//    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelACRe",LastSummonerOf(Myself)))
//    SetGlobal("GelArcaneCastingSlotsReset","LOCALS",2)
//    Continue()
//END

////// GelDevineCastingSlots //////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDevineCastingSlotsNeg1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDC-1",LastSummonerOf(Myself)))
    SetGlobal("GelDevineCastingSlotsNeg1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDevineCastingSlotsPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDC+1",LastSummonerOf(Myself)))
    SetGlobal("GelDevineCastingSlotsPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDevineCastingSlotsPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDC+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDC+1",LastSummonerOf(Myself)))
    SetGlobal("GelDevineCastingSlotsPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDevineCastingSlotsPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDC+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDC+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDC+1",LastSummonerOf(Myself)))
    SetGlobal("GelDevineCastingSlotsPos3","LOCALS",2)
    Continue()
END

//IF
//  Global("GelTDia_Process","LOCALS",1)
//  Global("GelDevineCastingSlotsReset","LOCALS",1)
//THEN
//  RESPONSE #100
//    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDCRe",LastSummonerOf(Myself)))
//    SetGlobal("GelDevineCastingSlotsReset","LOCALS",2)
//    Continue()
//END

/////////////////// GelTDia_Attributes //////////////////////////////
///
/////////// Strenghtbonus ////////////////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStrenghtBonusNeg2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAS-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAS-1",LastSummonerOf(Myself)))
    SetGlobal("GelStrenghtBonusNeg2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStrenghtBonusNeg1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAS-1",LastSummonerOf(Myself)))
    SetGlobal("GelStrenghtBonusNeg1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStrenghtBonusPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAS+1",LastSummonerOf(Myself)))
    SetGlobal("GelStrenghtBonusPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStrenghtBonusPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAS+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAS+1",LastSummonerOf(Myself)))
    SetGlobal("GelStrenghtBonusPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelStrenghtBonusPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAS+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAS+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAS+1",LastSummonerOf(Myself)))
    SetGlobal("GelStrenghtBonusPos3","LOCALS",2)
    Continue()
END

//IF
//  Global("GelTDia_Process","LOCALS",1)
//  Global("GelStrenghtBonusReset","LOCALS",1)
//THEN
//  RESPONSE #100
//    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelStRe",LastSummonerOf(Myself)))
//    SetGlobal("GelStrenghtBonusReset","LOCALS",2)
//    Continue()
//END

/////////// Dexteritybonus ////////////////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDexterityBonusNeg2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAD-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAD-1",LastSummonerOf(Myself)))
    SetGlobal("GelDexterityBonusNeg2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDexterityBonusNeg1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAD-1",LastSummonerOf(Myself)))
    SetGlobal("GelDexterityBonusNeg1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDexterityBonusPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAD+1",LastSummonerOf(Myself)))
    SetGlobal("GelDexterityBonusPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDexterityBonusPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAD+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAD+1",LastSummonerOf(Myself)))
    SetGlobal("GelDexterityBonusPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDexterityBonusPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAD+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAD+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAD+1",LastSummonerOf(Myself)))
    SetGlobal("GelDexterityBonusPos3","LOCALS",2)
    Continue()
END

//IF
//  Global("GelTDia_Process","LOCALS",1)
//  Global("GelDexterityBonusReset","LOCALS",1)
//THEN
//  RESPONSE #100
//    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDeRe",LastSummonerOf(Myself)))
//    SetGlobal("GelDexterityBonusReset","LOCALS",2)
//    Continue()
//END

/////////// Constitution bonus ////////////////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelConstitutionBonusNeg2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCo-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCo-1",LastSummonerOf(Myself)))
    SetGlobal("GelConstitutionBonusNeg2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelConstitutionBonusNeg1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCo-1",LastSummonerOf(Myself)))
    SetGlobal("GelConstitutionBonusNeg1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelConstitutionBonusPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCo+1",LastSummonerOf(Myself)))
    SetGlobal("GelConstitutionBonusPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelConstitutionBonusPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCo+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCo+1",LastSummonerOf(Myself)))
    SetGlobal("GelConstitutionBonusPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelConstitutionBonusPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCo+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCo+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCo+1",LastSummonerOf(Myself)))
    SetGlobal("GelConstitutionBonusPos3","LOCALS",2)
    Continue()
END

//IF
//  Global("GelTDia_Process","LOCALS",1)
//  Global("GelConstitutionBonusReset","LOCALS",1)
//THEN
//  RESPONSE #100
//    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCoRe",LastSummonerOf(Myself)))
//    SetGlobal("GelConstitutionBonusReset","LOCALS",2)
//    Continue()
//END

//// Intelligence Bonus //////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelIntelligenceBonusNeg2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAI-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAI-1",LastSummonerOf(Myself)))
    SetGlobal("GelIntelligenceBonusNeg2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelIntelligenceBonusNeg1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAI-1",LastSummonerOf(Myself)))
    SetGlobal("GelIntelligenceBonusNeg1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelIntelligenceBonusPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAI+1",LastSummonerOf(Myself)))
    SetGlobal("GelIntelligenceBonusPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelIntelligenceBonusPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAI+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAI+1",LastSummonerOf(Myself)))
    SetGlobal("GelIntelligenceBonusPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelIntelligenceBonusPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAI+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAI+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAI+1",LastSummonerOf(Myself)))
    SetGlobal("GelIntelligenceBonusPos3","LOCALS",2)
    Continue()
END

//IF
//  Global("GelTDia_Process","LOCALS",1)
//  Global("GelIntelligenceBonusReset","LOCALS",1)
//THEN
//  RESPONSE #100
//    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAIRe",LastSummonerOf(Myself)))
//    SetGlobal("GelIntelligenceBonusReset","LOCALS",2)
//    Continue()
//END

//// Wisdom Bonus /////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelWisdomBonusNeg2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAW-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAW-1",LastSummonerOf(Myself)))
    SetGlobal("GelWisdomBonusNeg2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelWisdomBonusNeg1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAW-1",LastSummonerOf(Myself)))
    SetGlobal("GelWisdomBonusNeg1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelWisdomBonusPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAW+1",LastSummonerOf(Myself)))
    SetGlobal("GelWisdomBonusPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelWisdomBonusPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAW+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAW+1",LastSummonerOf(Myself)))
    SetGlobal("GelWisdomBonusPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelWisdomBonusPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAW+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAW+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAW+1",LastSummonerOf(Myself)))
    SetGlobal("GelWisdomBonusPos3","LOCALS",2)
    Continue()
END

//IF
//  Global("GelTDia_Process","LOCALS",1)
//  Global("GelWisdomBonusReset","LOCALS",1)
//THEN
//  RESPONSE #100
//    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAWRe",LastSummonerOf(Myself)))
//    SetGlobal("GelWisdomBonusReset","LOCALS",2)
//    Continue()
//END

//// Charisma Bonus ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelCharismaBonusNeg2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCh-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCh-1",LastSummonerOf(Myself)))
    SetGlobal("GelCharismaBonusNeg2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelCharismaBonusNeg1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCh-1",LastSummonerOf(Myself)))
    SetGlobal("GelCharismaBonusNeg1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelCharismaBonusPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCh+1",LastSummonerOf(Myself)))
    SetGlobal("GelCharismaBonusPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelCharismaBonusPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCh+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCh+1",LastSummonerOf(Myself)))
    SetGlobal("GelCharismaBonusPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelCharismaBonusPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCh+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCh+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCh+1",LastSummonerOf(Myself)))
    SetGlobal("GelCharismaBonusPos3","LOCALS",2)
    Continue()
END

//IF
//  Global("GelTDia_Process","LOCALS",1)
//  Global("GelCharismaBonusReset","LOCALS",1)
//THEN
//  RESPONSE #100
//    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelChRe",LastSummonerOf(Myself)))
//    SetGlobal("GelCharismaBonusReset","LOCALS",2)
//    Continue()
//END

///// All Attributes /////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelAllAttBonusNeg2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAA-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAA-1",LastSummonerOf(Myself)))
    SetGlobal("GelAllAttBonusNeg2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelAllAttBonusNeg1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAA-1",LastSummonerOf(Myself)))
    SetGlobal("GelAllAttBonusNeg1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelAllAttBonusPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAA+1",LastSummonerOf(Myself)))
    SetGlobal("GelAllAttBonusPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelAllAttBonusPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAA+1",LastSummonerOf(Myself)))
    SetGlobal("GelAllAttBonusPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelAllAttBonusPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAA+1",LastSummonerOf(Myself)))
    SetGlobal("GelAllAttBonusPos3","LOCALS",2)
    Continue()
END

//IF
//  Global("GelTDia_Process","LOCALS",1)
//  Global("GelAllAttBonusReset","LOCALS",1)
//THEN
//  RESPONSE #100
//    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAARe",LastSummonerOf(Myself)))
//    SetGlobal("GelAllAttBonusReset","LOCALS",2)
//    Continue()
//END

////// GelTDia_Restrictions //////

////// WeponRestrictions ///////
IF
  Global("GelTDia_Process","LOCALS",1)
  Global("AllWeponsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWALR",LastSummonerOf(Myself)))
    SetGlobal("AllWeponsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("TwoHandedSwordRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelW2HR",LastSummonerOf(Myself)))
    SetGlobal("TwoHandedSwordRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("BastardswordsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWBAR",LastSummonerOf(Myself)))
    SetGlobal("BastardswordsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("LongswordsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWLOR",LastSummonerOf(Myself)))
    SetGlobal("LongswordsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("SmallswordsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWSMR",LastSummonerOf(Myself)))
    SetGlobal("SmallswordsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("DaggersRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWDAR",LastSummonerOf(Myself)))
    SetGlobal("DaggersRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("WarHammersRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWWHR",LastSummonerOf(Myself)))
    SetGlobal("WarHammersRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("FlailMorningRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWFMR",LastSummonerOf(Myself)))
    SetGlobal("FlailMorningRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("MacesRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWMAR",LastSummonerOf(Myself)))
    SetGlobal("MacesRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("QuarterStaffRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWQSR",LastSummonerOf(Myself)))
    SetGlobal("QuarterStaffRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("ClubsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWCLR",LastSummonerOf(Myself)))
    SetGlobal("ClubsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("HalberdsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWHAR",LastSummonerOf(Myself)))
    SetGlobal("HalberdsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("SpearRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWSPR",LastSummonerOf(Myself)))
    SetGlobal("SpearRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("AxesRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWAXR",LastSummonerOf(Myself)))
    SetGlobal("AxesRestricted","LOCALS",2)
    Continue()
END

///// Armor Restrictions ///// 
IF
  Global("GelTDia_Process","LOCALS",1)
  Global("AllArmorsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAAAR",LastSummonerOf(Myself)))
    SetGlobal("AllArmorsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("ChestArmorsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelACAR",LastSummonerOf(Myself)))
    SetGlobal("ChestArmorsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("FullPlateArmorsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAFPR",LastSummonerOf(Myself)))
    SetGlobal("FullPlateArmorsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("PlateArmorsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAPLR",LastSummonerOf(Myself)))
    SetGlobal("PlateArmorsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("SplintArmorsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelASPR",LastSummonerOf(Myself)))
    SetGlobal("SplintArmorsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("ChainArmorsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelACHR",LastSummonerOf(Myself)))
    SetGlobal("ChainArmorsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("StuddethArmorsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelASTR",LastSummonerOf(Myself)))
    SetGlobal("StuddethArmorsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("MetalChestArmorsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAMCR",LastSummonerOf(Myself)))
    SetGlobal("MetalChestArmorsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("HelmsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAHER",LastSummonerOf(Myself)))
    SetGlobal("HelmsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GlovesRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAGLR",LastSummonerOf(Myself)))
    SetGlobal("GlovesRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("AmuletRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelJAMR",LastSummonerOf(Myself)))
    SetGlobal("AmuletRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("RingsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelJRIR",LastSummonerOf(Myself)))
    SetGlobal("RingsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("CloaksRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelJCLR",LastSummonerOf(Myself)))
    SetGlobal("CloaksRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("BootsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelJBOR",LastSummonerOf(Myself)))
    SetGlobal("BootsRestricted","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("BeltsRestricted","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelJBER",LastSummonerOf(Myself)))
    SetGlobal("BeltsRestricted","LOCALS",2)
    Continue()
END

//////// THACO ///////////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelThacoPos5","LOCALS",1) 
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    SetGlobal("GelThacoPos5","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelThacoPos4","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    SetGlobal("GelThacoPos4","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelThacoPos3","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    SetGlobal("GelThacoPos3","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelThacoPos2","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    SetGlobal("GelThacoPos2","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelThacoPos1","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH+1",LastSummonerOf(Myself)))
    SetGlobal("GelThacoPos1","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelThacoNeg5","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    SetGlobal("GelThacoNeg5","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelThacoNeg4","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    SetGlobal("GelThacoNeg4","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelThacoNeg3","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    SetGlobal("GelThacoNeg3","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelThacoNeg2","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    SetGlobal("GelThacoNeg2","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelThacoNeg1","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTH-1",LastSummonerOf(Myself)))
    SetGlobal("GelThacoNeg1","LOCALS",2)
    Continue()
END

/////// DAMAGE ///////////
IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelDamageNeg5","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    SetGlobal("GelDamageNeg5","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelDamageNeg4","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    SetGlobal("GelDamageNeg4","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelDamageNeg3","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    SetGlobal("GelDamageNeg3","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelDamageNeg2","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    SetGlobal("GelDamageNeg2","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelDamageNeg1","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM-1",LastSummonerOf(Myself)))
    SetGlobal("GelDamageNeg1","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelDamagePos5","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    SetGlobal("GelDamagePos5","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelDamagePos4","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    SetGlobal("GelDamagePos4","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelDamagePos3","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    SetGlobal("GelDamagePos3","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelDamagePos2","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    SetGlobal("GelDamagePos2","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelDamagePos1","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDM+1",LastSummonerOf(Myself)))
    SetGlobal("GelDamagePos1","LOCALS",2)
    Continue()
END


//// ARMOR CLASS ////

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelACPos5","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    SetGlobal("GelACPos5","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelACPos4","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    SetGlobal("GelACPos4","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelACPos3","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    SetGlobal("GelACPos3","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelACPos2","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    SetGlobal("GelACPos2","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelACPos1","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA+1",LastSummonerOf(Myself)))
    SetGlobal("GelACPos1","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelACNeg5","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    SetGlobal("GelACNeg5","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelACNeg4","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    SetGlobal("GelACNeg4","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelACNeg3","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    SetGlobal("GelACNeg3","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelACNeg2","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    SetGlobal("GelACNeg2","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelACNeg1","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCA-1",LastSummonerOf(Myself)))
    SetGlobal("GelACNeg1","LOCALS",2)
    Continue()
END


//// APR ////

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAPRNeg1","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAPN1",LastSummonerOf(Myself)))
    SetGlobal("GelAPRNeg1","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAPRPos3","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAPR1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAPR1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAPR1",LastSummonerOf(Myself)))
    SetGlobal("GelAPRPos3","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAPRPos2","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAPR1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAPR1",LastSummonerOf(Myself)))
    SetGlobal("GelAPRPos2","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAPRPos1","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAPR1",LastSummonerOf(Myself)))
    SetGlobal("GelAPRPos1","LOCALS",2)
    Continue()
END


//// HITFACTORS: SPEED FACTOR ////

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelSpeedPos5","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    SetGlobal("GelSpeedPos5","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelSpeedPos4","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    SetGlobal("GelSpeedPos4","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelSpeedPos3","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    SetGlobal("GelSpeedPos3","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelSpeedPos2","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    SetGlobal("GelSpeedPos2","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelSpeedPos1","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF+1",LastSummonerOf(Myself)))
    SetGlobal("GelSpeedPos1","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelSpeedNeg5","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    SetGlobal("GelSpeedNeg5","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelSpeedNeg4","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    SetGlobal("GelSpeedNeg4","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelSpeedNeg3","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    SetGlobal("GelSpeedNeg3","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelSpeedNeg2","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    SetGlobal("GelSpeedNeg2","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelSpeedNeg1","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSF-1",LastSummonerOf(Myself)))
    SetGlobal("GelSpeedNeg1","LOCALS",2)
    Continue()
END

//// RESISTS: FIRE (GelFR-1 / GelFR+1) ////

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelFireResNeg50","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    SetGlobal("GelFireResNeg50","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelFireResNeg40","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    SetGlobal("GelFireResNeg40","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelFireResNeg30","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    SetGlobal("GelFireResNeg30","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelFireResNeg20","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    SetGlobal("GelFireResNeg20","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelFireResNeg10","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR-1",LastSummonerOf(Myself)))
    SetGlobal("GelFireResNeg10","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelFireResPos10","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    SetGlobal("GelFireResPos10","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelFireResPos20","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    SetGlobal("GelFireResPos20","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelFireResPos30","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    SetGlobal("GelFireResPos30","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelFireResPos40","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    SetGlobal("GelFireResPos40","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelFireResPos50","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFR+1",LastSummonerOf(Myself)))
    SetGlobal("GelFireResPos50","LOCALS",2)
    Continue()
END


//// RESISTS: COLD (GelCR-1 / GelCR+1) ////

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelColdResNeg50","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    SetGlobal("GelColdResNeg50","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelColdResNeg40","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    SetGlobal("GelColdResNeg40","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelColdResNeg30","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    SetGlobal("GelColdResNeg30","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelColdResNeg20","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    SetGlobal("GelColdResNeg20","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelColdResNeg10","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR-1",LastSummonerOf(Myself)))
    SetGlobal("GelColdResNeg10","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelColdResPos10","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    SetGlobal("GelColdResPos10","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelColdResPos20","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    SetGlobal("GelColdResPos20","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelColdResPos30","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    SetGlobal("GelColdResPos30","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelColdResPos40","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    SetGlobal("GelColdResPos40","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelColdResPos50","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCR+1",LastSummonerOf(Myself)))
    SetGlobal("GelColdResPos50","LOCALS",2)
    Continue()
END


//// RESISTS: LIGHTNING (GelER-1 / GelER+1) ////

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelLightningResNeg50","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    SetGlobal("GelLightningResNeg50","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelLightningResNeg40","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    SetGlobal("GelLightningResNeg40","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelLightningResNeg30","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    SetGlobal("GelLightningResNeg30","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelLightningResNeg20","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    SetGlobal("GelLightningResNeg20","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelLightningResNeg10","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER-1",LastSummonerOf(Myself)))
    SetGlobal("GelLightningResNeg10","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelLightningResPos10","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    SetGlobal("GelLightningResPos10","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelLightningResPos20","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    SetGlobal("GelLightningResPos20","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelLightningResPos30","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    SetGlobal("GelLightningResPos30","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelLightningResPos40","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    SetGlobal("GelLightningResPos40","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelLightningResPos50","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelER+1",LastSummonerOf(Myself)))
    SetGlobal("GelLightningResPos50","LOCALS",2)
    Continue()
END


//// RESISTS: ACID (GelAR-1 / GelAR+1) ////

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAcidResNeg50","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    SetGlobal("GelAcidResNeg50","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAcidResNeg40","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    SetGlobal("GelAcidResNeg40","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAcidResNeg30","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    SetGlobal("GelAcidResNeg30","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAcidResNeg20","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    SetGlobal("GelAcidResNeg20","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAcidResNeg10","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR-1",LastSummonerOf(Myself)))
    SetGlobal("GelAcidResNeg10","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAcidResPos10","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    SetGlobal("GelAcidResPos10","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAcidResPos20","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    SetGlobal("GelAcidResPos20","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAcidResPos30","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    SetGlobal("GelAcidResPos30","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAcidResPos40","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    SetGlobal("GelAcidResPos40","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelAcidResPos50","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAR+1",LastSummonerOf(Myself)))
    SetGlobal("GelAcidResPos50","LOCALS",2)
    Continue()
END


//// RESISTS: POISON (GelPR-1 / GelPR+1) ////

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelPoisonResNeg50","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    SetGlobal("GelPoisonResNeg50","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelPoisonResNeg40","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    SetGlobal("GelPoisonResNeg40","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelPoisonResNeg30","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    SetGlobal("GelPoisonResNeg30","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelPoisonResNeg20","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    SetGlobal("GelPoisonResNeg20","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelPoisonResNeg10","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR-1",LastSummonerOf(Myself)))
    SetGlobal("GelPoisonResNeg10","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelPoisonResPos10","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    SetGlobal("GelPoisonResPos10","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelPoisonResPos20","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    SetGlobal("GelPoisonResPos20","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelPoisonResPos30","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    SetGlobal("GelPoisonResPos30","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelPoisonResPos40","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    SetGlobal("GelPoisonResPos40","LOCALS",2)
    Continue()
END

IF 
  Global("GelTDia_Process","LOCALS",1) 
  Global("GelPoisonResPos50","LOCALS",1) 
THEN 
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPR+1",LastSummonerOf(Myself)))
    SetGlobal("GelPoisonResPos50","LOCALS",2)
    Continue()
END

//// RESISTS: MAGIC RESISTANCE (GelMR-1 / GelMR+1) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicResNeg50","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicResNeg50","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicResNeg40","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicResNeg40","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicResNeg30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicResNeg30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicResNeg20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicResNeg20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicResNeg10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR-1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicResNeg10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicResPos10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicResPos10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicResPos20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicResPos20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicResPos30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicResPos30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicResPos40","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicResPos40","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicResPos50","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMR+1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicResPos50","LOCALS",2)
    Continue()
END

//// RESISTS: MAGIC DAMAGE REDUCTION (GelDMN1 / GelDMP1) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicRedNeg50","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicRedNeg50","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicRedNeg40","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicRedNeg40","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicRedNeg30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicRedNeg30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicRedNeg20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicRedNeg20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicRedNeg10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMN1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicRedNeg10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicRedPos10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicRedPos10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicRedPos20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicRedPos20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicRedPos30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicRedPos30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicRedPos40","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicRedPos40","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMagicRedPos50","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDMP1",LastSummonerOf(Myself)))
    SetGlobal("GelMagicRedPos50","LOCALS",2)
    Continue()
END

//// RESISTS: PHYSICAL (GelPH-1 / GelPH+1) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPhysResNeg50","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    SetGlobal("GelPhysResNeg50","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPhysResNeg40","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    SetGlobal("GelPhysResNeg40","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPhysResNeg30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    SetGlobal("GelPhysResNeg30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPhysResNeg20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    SetGlobal("GelPhysResNeg20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPhysResNeg10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH-1",LastSummonerOf(Myself)))
    SetGlobal("GelPhysResNeg10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPhysResPos10","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    SetGlobal("GelPhysResPos10","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPhysResPos20","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    SetGlobal("GelPhysResPos20","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPhysResPos30","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    SetGlobal("GelPhysResPos30","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPhysResPos40","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    SetGlobal("GelPhysResPos40","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPhysResPos50","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPH+1",LastSummonerOf(Myself)))
    SetGlobal("GelPhysResPos50","LOCALS",2)
    Continue()
END

/////////////////////////////////////////// PROFICIENCY: SET VALUES ///////////////////////////////////////////////

//// PROF: TWO-HANDED SWORDS (Gel2HS1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelTwoHandedSwordsProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel2HS1",LastSummonerOf(Myself)))
    SetGlobal("GelTwoHandedSwordsProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelTwoHandedSwordsProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel2HS2",LastSummonerOf(Myself)))
    SetGlobal("GelTwoHandedSwordsProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelTwoHandedSwordsProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel2HS3",LastSummonerOf(Myself)))
    SetGlobal("GelTwoHandedSwordsProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelTwoHandedSwordsProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel2HS4",LastSummonerOf(Myself)))
    SetGlobal("GelTwoHandedSwordsProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelTwoHandedSwordsProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("Gel2HS5",LastSummonerOf(Myself)))
    SetGlobal("GelTwoHandedSwordsProfPos5","LOCALS",2)
    Continue()
END


//// PROF: BASTARD SWORDS (GelBSw1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelBastardSwordsProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelBSw1",LastSummonerOf(Myself)))
    SetGlobal("GelBastardSwordsProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelBastardSwordsProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelBSw2",LastSummonerOf(Myself)))
    SetGlobal("GelBastardSwordsProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelBastardSwordsProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelBSw3",LastSummonerOf(Myself)))
    SetGlobal("GelBastardSwordsProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelBastardSwordsProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelBSw4",LastSummonerOf(Myself)))
    SetGlobal("GelBastardSwordsProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelBastardSwordsProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelBSw5",LastSummonerOf(Myself)))
    SetGlobal("GelBastardSwordsProfPos5","LOCALS",2)
    Continue()
END


//// PROF: LONG SWORDS (GelLSw1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelLongSwordsProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelLSw1",LastSummonerOf(Myself)))
    SetGlobal("GelLongSwordsProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelLongSwordsProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelLSw2",LastSummonerOf(Myself)))
    SetGlobal("GelLongSwordsProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelLongSwordsProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelLSw3",LastSummonerOf(Myself)))
    SetGlobal("GelLongSwordsProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelLongSwordsProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelLSw4",LastSummonerOf(Myself)))
    SetGlobal("GelLongSwordsProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelLongSwordsProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelLSw5",LastSummonerOf(Myself)))
    SetGlobal("GelLongSwordsProfPos5","LOCALS",2)
    Continue()
END


//// PROF: SHORT SWORDS (GelSSw1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelShortSwordsProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSSw1",LastSummonerOf(Myself)))
    SetGlobal("GelShortSwordsProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelShortSwordsProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSSw2",LastSummonerOf(Myself)))
    SetGlobal("GelShortSwordsProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelShortSwordsProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSSw3",LastSummonerOf(Myself)))
    SetGlobal("GelShortSwordsProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelShortSwordsProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSSw4",LastSummonerOf(Myself)))
    SetGlobal("GelShortSwordsProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelShortSwordsProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSSw5",LastSummonerOf(Myself)))
    SetGlobal("GelShortSwordsProfPos5","LOCALS",2)
    Continue()
END


//// PROF: DAGGERS (GelDAG1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDaggersProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDAG1",LastSummonerOf(Myself)))
    SetGlobal("GelDaggersProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDaggersProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDAG2",LastSummonerOf(Myself)))
    SetGlobal("GelDaggersProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDaggersProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDAG3",LastSummonerOf(Myself)))
    SetGlobal("GelDaggersProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDaggersProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDAG4",LastSummonerOf(Myself)))
    SetGlobal("GelDaggersProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDaggersProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelDAG5",LastSummonerOf(Myself)))
    SetGlobal("GelDaggersProfPos5","LOCALS",2)
    Continue()
END


//// PROF: KATANA (GelKAT1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelKatanaProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelKAT1",LastSummonerOf(Myself)))
    SetGlobal("GelKatanaProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelKatanaProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelKAT2",LastSummonerOf(Myself)))
    SetGlobal("GelKatanaProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelKatanaProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelKAT3",LastSummonerOf(Myself)))
    SetGlobal("GelKatanaProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelKatanaProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelKAT4",LastSummonerOf(Myself)))
    SetGlobal("GelKatanaProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelKatanaProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelKAT5",LastSummonerOf(Myself)))
    SetGlobal("GelKatanaProfPos5","LOCALS",2)
    Continue()
END


//// PROF: SCIMITAR/WAKIZASHI/NINJA-TO (GelSCM1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelScimitarProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSCM1",LastSummonerOf(Myself)))
    SetGlobal("GelScimitarProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelScimitarProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSCM2",LastSummonerOf(Myself)))
    SetGlobal("GelScimitarProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelScimitarProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSCM3",LastSummonerOf(Myself)))
    SetGlobal("GelScimitarProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelScimitarProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSCM4",LastSummonerOf(Myself)))
    SetGlobal("GelScimitarProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelScimitarProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSCM5",LastSummonerOf(Myself)))
    SetGlobal("GelScimitarProfPos5","LOCALS",2)
    Continue()
END


//// PROF: AXES (REUSE GelAxe1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelAxeProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAxe1",LastSummonerOf(Myself)))
    SetGlobal("GelAxeProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelAxeProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAxe2",LastSummonerOf(Myself)))
    SetGlobal("GelAxeProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelAxeProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAxe3",LastSummonerOf(Myself)))
    SetGlobal("GelAxeProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelAxeProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAxe4",LastSummonerOf(Myself)))
    SetGlobal("GelAxeProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelAxeProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelAxe5",LastSummonerOf(Myself)))
    SetGlobal("GelAxeProfPos5","LOCALS",2)
    Continue()
END


//// PROF: SPEARS (GelSpr1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSpearProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSpr1",LastSummonerOf(Myself)))
    SetGlobal("GelSpearProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSpearProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSpr2",LastSummonerOf(Myself)))
    SetGlobal("GelSpearProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSpearProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSpr3",LastSummonerOf(Myself)))
    SetGlobal("GelSpearProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSpearProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSpr4",LastSummonerOf(Myself)))
    SetGlobal("GelSpearProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSpearProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSpr5",LastSummonerOf(Myself)))
    SetGlobal("GelSpearProfPos5","LOCALS",2)
    Continue()
END


//// PROF: HALBERDS (GelHAL1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelHalbProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelHAL1",LastSummonerOf(Myself)))
    SetGlobal("GelHalbProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelHalbProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelHAL2",LastSummonerOf(Myself)))
    SetGlobal("GelHalbProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelHalbProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelHAL3",LastSummonerOf(Myself)))
    SetGlobal("GelHalbProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelHalbProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelHAL4",LastSummonerOf(Myself)))
    SetGlobal("GelHalbProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelHalbProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelHAL5",LastSummonerOf(Myself)))
    SetGlobal("GelHalbProfPos5","LOCALS",2)
    Continue()
END


//// PROF: FLAILS/MORNINGSTARS (GelFLA1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFlailProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFLA1",LastSummonerOf(Myself)))
    SetGlobal("GelFlailProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFlailProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFLA2",LastSummonerOf(Myself)))
    SetGlobal("GelFlailProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFlailProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFLA3",LastSummonerOf(Myself)))
    SetGlobal("GelFlailProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFlailProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFLA4",LastSummonerOf(Myself)))
    SetGlobal("GelFlailProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFlailProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelFLA5",LastSummonerOf(Myself)))
    SetGlobal("GelFlailProfPos5","LOCALS",2)
    Continue()
END


//// PROF: MACES (GelMAC1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMaceProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMAC1",LastSummonerOf(Myself)))
    SetGlobal("GelMaceProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMaceProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMAC2",LastSummonerOf(Myself)))
    SetGlobal("GelMaceProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMaceProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMAC3",LastSummonerOf(Myself)))
    SetGlobal("GelMaceProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMaceProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMAC4",LastSummonerOf(Myself)))
    SetGlobal("GelMaceProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMaceProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMAC5",LastSummonerOf(Myself)))
    SetGlobal("GelMaceProfPos5","LOCALS",2)
    Continue()
END


//// PROF: WAR HAMMERS (GelWHM1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelWHamProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWHM1",LastSummonerOf(Myself)))
    SetGlobal("GelWHamProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelWHamProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWHM2",LastSummonerOf(Myself)))
    SetGlobal("GelWHamProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelWHamProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWHM3",LastSummonerOf(Myself)))
    SetGlobal("GelWHamProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelWHamProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWHM4",LastSummonerOf(Myself)))
    SetGlobal("GelWHamProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelWHamProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelWHM5",LastSummonerOf(Myself)))
    SetGlobal("GelWHamProfPos5","LOCALS",2)
    Continue()
END


//// PROF: CLUBS (REUSE GelClu1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelClubProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelClu1",LastSummonerOf(Myself)))
    SetGlobal("GelClubProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelClubProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelClu2",LastSummonerOf(Myself)))
    SetGlobal("GelClubProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelClubProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelClu3",LastSummonerOf(Myself)))
    SetGlobal("GelClubProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelClubProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelClu4",LastSummonerOf(Myself)))
    SetGlobal("GelClubProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelClubProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelClu5",LastSummonerOf(Myself)))
    SetGlobal("GelClubProfPos5","LOCALS",2)
    Continue()
END


//// PROF: QUARTERSTAFF (GelQST1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelQStaProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelQST1",LastSummonerOf(Myself)))
    SetGlobal("GelQStaProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelQStaProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelQST2",LastSummonerOf(Myself)))
    SetGlobal("GelQStaProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelQStaProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelQST3",LastSummonerOf(Myself)))
    SetGlobal("GelQStaProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelQStaProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelQST4",LastSummonerOf(Myself)))
    SetGlobal("GelQStaProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelQStaProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelQST5",LastSummonerOf(Myself)))
    SetGlobal("GelQStaProfPos5","LOCALS",2)
    Continue()
END


//// PROF: SLINGS (GelSLG1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSlingProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSLG1",LastSummonerOf(Myself)))
    SetGlobal("GelSlingProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSlingProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSLG2",LastSummonerOf(Myself)))
    SetGlobal("GelSlingProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSlingProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSLG3",LastSummonerOf(Myself)))
    SetGlobal("GelSlingProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSlingProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSLG4",LastSummonerOf(Myself)))
    SetGlobal("GelSlingProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSlingProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSLG5",LastSummonerOf(Myself)))
    SetGlobal("GelSlingProfPos5","LOCALS",2)
    Continue()
END


//// PROF: SHORTBOWS (REUSE GelBow1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSBowProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelBow1",LastSummonerOf(Myself)))
    SetGlobal("GelSBowProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSBowProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelBow2",LastSummonerOf(Myself)))
    SetGlobal("GelSBowProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSBowProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelBow3",LastSummonerOf(Myself)))
    SetGlobal("GelSBowProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSBowProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelBow4",LastSummonerOf(Myself)))
    SetGlobal("GelSBowProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSBowProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelBow5",LastSummonerOf(Myself)))
    SetGlobal("GelSBowProfPos5","LOCALS",2)
    Continue()
END


//// PROF: LONGBOWS (GelLNB1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelLBowProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelLNB1",LastSummonerOf(Myself)))
    SetGlobal("GelLBowProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelLBowProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelLNB2",LastSummonerOf(Myself)))
    SetGlobal("GelLBowProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelLBowProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelLNB3",LastSummonerOf(Myself)))
    SetGlobal("GelLBowProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelLBowProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelLNB4",LastSummonerOf(Myself)))
    SetGlobal("GelLBowProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelLBowProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelLNB5",LastSummonerOf(Myself)))
    SetGlobal("GelLBowProfPos5","LOCALS",2)
    Continue()
END


//// PROF: CROSSBOWS (GelCRB1..5) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelXBowProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCRB1",LastSummonerOf(Myself)))
    SetGlobal("GelXBowProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelXBowProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCRB2",LastSummonerOf(Myself)))
    SetGlobal("GelXBowProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelXBowProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCRB3",LastSummonerOf(Myself)))
    SetGlobal("GelXBowProfPos3","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelXBowProfPos4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCRB4",LastSummonerOf(Myself)))
    SetGlobal("GelXBowProfPos4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelXBowProfPos5","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelCRB5",LastSummonerOf(Myself)))
    SetGlobal("GelXBowProfPos5","LOCALS",2)
    Continue()
END


//////////////////////////////////////////// FIGHTING STYLES (SET) /////////////////////////////////////////////////

//// STYLE: TWO-WEAPON STYLE (CAP 3) (GelTWS1..3) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelTwoWeaponStyleProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTWS1",LastSummonerOf(Myself)))
    SetGlobal("GelTwoWeaponStyleProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelTwoWeaponStyleProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTWS2",LastSummonerOf(Myself)))
    SetGlobal("GelTwoWeaponStyleProfPos2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelTwoWeaponStyleProfPos3","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTWS3",LastSummonerOf(Myself)))
    SetGlobal("GelTwoWeaponStyleProfPos3","LOCALS",2)
    Continue()
END


//// STYLE: SINGLE-WEAPON STYLE (CAP 2) (GelSWS1..2) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSingleWeaponStyleProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSWS1",LastSummonerOf(Myself)))
    SetGlobal("GelSingleWeaponStyleProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSingleWeaponStyleProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSWS2",LastSummonerOf(Myself)))
    SetGlobal("GelSingleWeaponStyleProfPos2","LOCALS",2)
    Continue()
END


//// STYLE: SWORD AND SHIELD STYLE (CAP 2) (GelSSS1..2) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSwordShieldStyleProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSSS1",LastSummonerOf(Myself)))
    SetGlobal("GelSwordShieldStyleProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSwordShieldStyleProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSSS2",LastSummonerOf(Myself)))
    SetGlobal("GelSwordShieldStyleProfPos2","LOCALS",2)
    Continue()
END


//// STYLE: TWO-HANDED WEAPON STYLE (CAP 2) (GelTHS1..2) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelTwoHandedStyleProfPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTHS1",LastSummonerOf(Myself)))
    SetGlobal("GelTwoHandedStyleProfPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelTwoHandedStyleProfPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelTHS2",LastSummonerOf(Myself)))
    SetGlobal("GelTwoHandedStyleProfPos2","LOCALS",2)
    Continue()
END

/////////////////////////////////////////// IMMUNITIES /////////////////////////////////////////////////

//// IMMUNE: CHARM / DOMINATION ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelImmuneCharm","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelImCh",LastSummonerOf(Myself)))
    SetGlobal("GelImmuneCharm","LOCALS",2)
    Continue()
END


//// IMMUNE: FEAR ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelImmuneFear","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelImFe",LastSummonerOf(Myself)))
    SetGlobal("GelImmuneFear","LOCALS",2)
    Continue()
END


//// IMMUNE: SLEEP ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelImmuneSleep","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelImSl",LastSummonerOf(Myself)))
    SetGlobal("GelImmuneSleep","LOCALS",2)
    Continue()
END


//// IMMUNE: STUN / HOLD / PARALYZE / PSIONIC BLAST ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelImmuneStun","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelImSt",LastSummonerOf(Myself)))
    SetGlobal("GelImmuneStun","LOCALS",2)
    Continue()
END


//// IMMUNE: DISEASES ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelImmuneDiseases","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelImDi",LastSummonerOf(Myself)))
    SetGlobal("GelImmuneDiseases","LOCALS",2)
    Continue()
END


//// IMMUNE: LEVEL DRAIN ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelImmuneLvlDrain","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelImLv",LastSummonerOf(Myself)))
    SetGlobal("GelImmuneLvlDrain","LOCALS",2)
    Continue()
END


//// EFFECT: FREE ACTION (notes: also blocks haste) ////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelImmuneFreeAction","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelImFr",LastSummonerOf(Myself)))
    SetGlobal("GelImmuneFreeAction","LOCALS",2)
    Continue()
END

/////////////////////////////////////////// MOVEMENT /////////////////////////////////////////////////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMoveMentBonus2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMov2",LastSummonerOf(Myself)))
    SetGlobal("GelMoveMentBonus2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMoveMentBonus4","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMov2",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMov2",LastSummonerOf(Myself)))
    SetGlobal("GelMoveMentBonus4","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMoveMentBonus6","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMov2",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMov2",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMov2",LastSummonerOf(Myself)))
    SetGlobal("GelMoveMentBonus6","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelMoveMentBonusx2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelMoX2",LastSummonerOf(Myself)))
    SetGlobal("GelMoveMentBonusx2","LOCALS",2)
    Continue()
END

/////////////////////////////////////////// GODMODE /////////////////////////////////////////////////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelImprovedAlacricity","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPIAl",LastSummonerOf(Myself)))
    SetGlobal("GelImprovedAlacricity","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelUseAnyItem","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("SPCL915",LastSummonerOf(Myself)))
    SetGlobal("GelUseAnyItem","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelIA_UAI","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelPIAl",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("SPCL915",LastSummonerOf(Myself)))
    SetGlobal("GelIA_UAI","LOCALS",2)
    Continue()
END

/////////////////////////////////////////// SAVING THROWS /////////////////////////////////////////////////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSavingThrowsNeg2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSavN",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSavN",LastSummonerOf(Myself)))
    SetGlobal("GelSavingThrowsNeg2","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSavingThrowsNeg1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSavN",LastSummonerOf(Myself)))
    SetGlobal("GelSavingThrowsNeg1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSavingThrowsPos1","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSavP",LastSummonerOf(Myself)))
    SetGlobal("GelSavingThrowsPos1","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSavingThrowsPos2","LOCALS",1)
THEN
  RESPONSE #100
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSavP",LastSummonerOf(Myself)))
    ActionOverride(LastSummonerOf(Myself),ReallyForceSpellRES("GelSavP",LastSummonerOf(Myself)))
    SetGlobal("GelSavingThrowsPos2","LOCALS",2)
    Continue()
END
/////////////////////////////////////////// HLA ABILITIES ///////////////////////////////////////////////

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelGreaterWirlwind","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLWir",Myself) // Greater Whirlwind
    SetGlobal("GelGreaterWirlwind","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelGreaterDeathblow","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLDea",Myself) // Greater Deathblow
    SetGlobal("GelGreaterDeathblow","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelCriticalStrike","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLCri",Myself) // Critical Strike
    SetGlobal("GelCriticalStrike","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelHardiness","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLHar",Myself) // Hardiness
    SetGlobal("GelHardiness","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelPowerStrike","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLPow",Myself) // Power Strike
    SetGlobal("GelPowerStrike","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSmite","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLSmi",Myself) // Smite
    SetGlobal("GelSmite","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFavouredByTheSpirits","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLFav",Myself) // Favoured by the Spirits
    SetGlobal("GelFavouredByTheSpirits","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelDeva","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLDev",Myself) // Summon Deva
    SetGlobal("GelDeva","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelFallenDeva","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLFDe",Myself) // Summon Fallen Deva
    SetGlobal("GelFallenDeva","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelSpikeTrap","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLSpi",Myself) // Spike Trap
    SetGlobal("GelSpikeTrap","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelTimeStopTrap","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLTim",Myself) // Time Stop Trap
    SetGlobal("GelTimeStopTrap","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelShapechangeFire","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLFir",Myself) // Shapechange: Fire Elemental
    SetGlobal("GelShapechangeFire","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",1)
  Global("GelShapechangeEarth","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLEar",Myself) // Shapechange: Earth Elemental
    SetGlobal("GelShapechangeEarth","LOCALS",2)
    Continue()
END

/////////////////////////////////////////// INNATE ABILITIES ///////////////////////////////////////////////

IF
  Global("GelBreathFire","LOCALS",1)
  Global("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLBre",Myself) // Breathe Fire
    SetGlobal("GelBreathFire","LOCALS",2)
    Continue()
END

IF
  Global("GelPsionicBlast","LOCALS",1)
  Global("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLPsi",Myself) // Psionic Blast
    SetGlobal("GelPsionicBlast","LOCALS",2)
    Continue()
END

IF
  Global("GelShadowStep","LOCALS",1)
  Global("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelSha5",Myself) // Shadow Step
    SetGlobal("GelShadowStep","LOCALS",2)
    Continue()
END

IF
  Global("GelBarbarianRage","LOCALS",1)
  Global("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelBar4",Myself) // Barbarian Rage
    SetGlobal("GelBarbarianRage","LOCALS",2)
    Continue()
END

IF
  Global("GelBerserkerRage","LOCALS",1)
  Global("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelBer4",Myself) // Berserker Rage
    SetGlobal("GelBerserkerRage","LOCALS",2)
    Continue()
END

IF
  Global("GelKai","LOCALS",1)
  Global("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelKen5",Myself) // Kai
    SetGlobal("GelKai","LOCALS",2)
    Continue()
END

IF
  Global("GelCalledShot","LOCALS",1)
  Global("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelSli3",Myself) // Called Shot
    SetGlobal("GelCalledShot","LOCALS",2)
    Continue()
END

IF
  Global("GelBlindness","LOCALS",1)
  Global("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLBli",Myself) // Blindness
    SetGlobal("GelBlindness","LOCALS",2)
    Continue()
END

IF
  Global("GelMirrorImmage","LOCALS",1)
  Global("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLMir",Myself) // Mirror Image
    SetGlobal("GelMirrorImmage","LOCALS",2)
    Continue()
END

IF
  Global("GelBlur","LOCALS",1)
  Global("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLBlu",Myself) // Blur
    SetGlobal("GelBlur","LOCALS",2)
    Continue()
END

IF
  Global("GelChillingFist","LOCALS",1)
  Global("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelLChi",Myself) // Chilling Fists
    SetGlobal("GelChillingFist","LOCALS",2)
    Continue()
END

IF
  Global("GelFlamingFist","LOCALS",1)
  Global("GelTDia_Process","LOCALS",1)
THEN
  RESPONSE #100
    ReallyForceSpellRES("GelSMO3",Myself) // Flaming Fists
    SetGlobal("GelFlamingFist","LOCALS",2)
    Continue()
END

/// Resten av opplegget her

IF
  Global("GelTDia_Process","LOCALS",1)
  !Global("GelBackstabNeg30","LOCALS",1)
  !Global("GelBackstabNeg20","LOCALS",1)
  !Global("GelBackstabNeg10","LOCALS",1)
  !Global("GelBackstabPos10","LOCALS",1)
  !Global("GelBackstabPos20","LOCALS",1)
  !Global("GelBackstabPos30","LOCALS",1)
  !Global("GelBackstabReset","LOCALS",1)
  !Global("GelStealthNeg30","LOCALS",1)
  !Global("GelStealthNeg20","LOCALS",1)
  !Global("GelStealthNeg10","LOCALS",1)
  !Global("GelStealthPos10","LOCALS",1)
  !Global("GelStealthPos20","LOCALS",1)
  !Global("GelStealthPos30","LOCALS",1)
  !Global("GelStealthPos40","LOCALS",1)
  !Global("GelStealthPos50","LOCALS",1)
  !Global("GelStealthReset","LOCALS",1)
  !Global("GelFindTrapsNeg30","LOCALS",1)
  !Global("GelFindTrapsNeg20","LOCALS",1)
  !Global("GelFindTrapsNeg10","LOCALS",1)
  !Global("GelFindTrapsPos10","LOCALS",1)
  !Global("GelFindTrapsPos20","LOCALS",1)
  !Global("GelFindTrapsPos30","LOCALS",1)
  !Global("GelFindTrapsPos40","LOCALS",1)
  !Global("GelFindTrapsPos50","LOCALS",1)
  !Global("GelFindTrapsReset","LOCALS",1)
  !Global("GelPickPocketNeg30","LOCALS",1)
  !Global("GelPickPocketNeg20","LOCALS",1)
  !Global("GelPickPocketNeg10","LOCALS",1)
  !Global("GelPickPocketPos10","LOCALS",1)
  !Global("GelPickPocketPos20","LOCALS",1)
  !Global("GelPickPocketPos30","LOCALS",1)
  !Global("GelPickPocketPos40","LOCALS",1)
  !Global("GelPickPocketPos50","LOCALS",1)
  !Global("GelPickPocketReset","LOCALS",1)
  !Global("GelOpenLocksNeg30","LOCALS",1)
  !Global("GelOpenLocksNeg20","LOCALS",1)
  !Global("GelOpenLocksNeg10","LOCALS",1)
  !Global("GelOpenLocksPos10","LOCALS",1)
  !Global("GelOpenLocksPos20","LOCALS",1)
  !Global("GelOpenLocksPos30","LOCALS",1)
  !Global("GelOpenLocksPos40","LOCALS",1)
  !Global("GelOpenLocksPos50","LOCALS",1)
  !Global("GelOpenLocksReset","LOCALS",1)
  !Global("GelDetectIllusionsNeg30","LOCALS",1)
  !Global("GelDetectIllusionsNeg20","LOCALS",1)
  !Global("GelDetectIllusionsNeg10","LOCALS",1)
  !Global("GelDetectIllusionsPos10","LOCALS",1)
  !Global("GelDetectIllusionsPos20","LOCALS",1)
  !Global("GelDetectIllusionsPos30","LOCALS",1)
  !Global("GelDetectIllusionsPos40","LOCALS",1)
  !Global("GelDetectIllusionsPos50","LOCALS",1)
  !Global("GelDetectIllusionsReset","LOCALS",1)
  !Global("GelSetTrapsNeg30","LOCALS",1)
  !Global("GelSetTrapsNeg20","LOCALS",1)
  !Global("GelSetTrapsNeg10","LOCALS",1)
  !Global("GelSetTrapsPos10","LOCALS",1)
  !Global("GelSetTrapsPos20","LOCALS",1)
  !Global("GelSetTrapsPos30","LOCALS",1)
  !Global("GelSetTrapsPos40","LOCALS",1)
  !Global("GelSetTrapsPos50","LOCALS",1)
  !Global("GelSetTrapsReset","LOCALS",1)
  !Global("GelCastingSpeedNeg2","LOCALS",1)
  !Global("GelCastingSpeedNeg1","LOCALS",1)
  !Global("GelCastingSpeedPos1","LOCALS",1)
  !Global("GelCastingSpeedPos2","LOCALS",1)
  !Global("GelCastingSpeedPos3","LOCALS",1)
  !Global("GelCastingSpeedPos4","LOCALS",1)
  !Global("GelCastingSpeedReset","LOCALS",1)
  !Global("GelArcaneCastingSlotsNeg1","LOCALS",1)
  !Global("GelArcaneCastingSlotsPos1","LOCALS",1)
  !Global("GelArcaneCastingSlotsPos2","LOCALS",1)
  !Global("GelArcaneCastingSlotsPos3","LOCALS",1)
  !Global("GelArcaneCastingSlotsReset","LOCALS",1)
  !Global("GelDevineCastingSlotsNeg1","LOCALS",1)
  !Global("GelDevineCastingSlotsPos1","LOCALS",1)
  !Global("GelDevineCastingSlotsPos2","LOCALS",1)
  !Global("GelDevineCastingSlotsPos3","LOCALS",1)
  !Global("GelDevineCastingSlotsReset","LOCALS",1)
  !Global("GelStrenghtBonusNeg2","LOCALS",1)
  !Global("GelStrenghtBonusNeg1","LOCALS",1)
  !Global("GelStrenghtBonusPos1","LOCALS",1)
  !Global("GelStrenghtBonusPos2","LOCALS",1)
  !Global("GelStrenghtBonusPos3","LOCALS",1)
  !Global("GelStrenghtBonusReset","LOCALS",1)
  !Global("GelDexterityBonusNeg2","LOCALS",1)
  !Global("GelDexterityBonusNeg1","LOCALS",1)
  !Global("GelDexterityBonusPos1","LOCALS",1)
  !Global("GelDexterityBonusPos2","LOCALS",1)
  !Global("GelDexterityBonusPos3","LOCALS",1)
  !Global("GelDexterityBonusReset","LOCALS",1)
  !Global("GelConstitutionBonusNeg2","LOCALS",1)
  !Global("GelConstitutionBonusNeg1","LOCALS",1)
  !Global("GelConstitutionBonusPos1","LOCALS",1)
  !Global("GelConstitutionBonusPos2","LOCALS",1)
  !Global("GelConstitutionBonusPos3","LOCALS",1)
  !Global("GelConstitutionBonusReset","LOCALS",1)
  !Global("GelIntelligenceBonusNeg2","LOCALS",1)
  !Global("GelIntelligenceBonusNeg1","LOCALS",1)
  !Global("GelIntelligenceBonusPos1","LOCALS",1)
  !Global("GelIntelligenceBonusPos2","LOCALS",1)
  !Global("GelIntelligenceBonusPos3","LOCALS",1)
  !Global("GelIntelligenceBonusReset","LOCALS",1)
  !Global("GelWisdomBonusNeg2","LOCALS",1)
  !Global("GelWisdomBonusNeg1","LOCALS",1)
  !Global("GelWisdomBonusPos1","LOCALS",1)
  !Global("GelWisdomBonusPos2","LOCALS",1)
  !Global("GelWisdomBonusPos3","LOCALS",1)
  !Global("GelWisdomBonusReset","LOCALS",1)
  !Global("GelCharismaBonusNeg2","LOCALS",1)
  !Global("GelCharismaBonusNeg1","LOCALS",1)
  !Global("GelCharismaBonusPos1","LOCALS",1)
  !Global("GelCharismaBonusPos2","LOCALS",1)
  !Global("GelCharismaBonusPos3","LOCALS",1)
  !Global("GelCharismaBonusReset","LOCALS",1)
  !Global("GelAllAttBonusNeg2","LOCALS",1)
  !Global("GelAllAttBonusNeg1","LOCALS",1)
  !Global("GelAllAttBonusPos1","LOCALS",1)
  !Global("GelAllAttBonusPos2","LOCALS",1)
  !Global("GelAllAttBonusPos3","LOCALS",1)
  !Global("GelAllAttBonusReset","LOCALS",1)
  !Global("AllWeponsRestricted","LOCALS",1)
  !Global("TwoHandedSwordRestricted","LOCALS",1)
  !Global("BastardswordsRestricted","LOCALS",1)
  !Global("LongswordsRestricted","LOCALS",1)
  !Global("SmallswordsRestricted","LOCALS",1)
  !Global("DaggersRestricted","LOCALS",1)
  !Global("WarHammersRestricted","LOCALS",1)
  !Global("FlailMorningRestricted","LOCALS",1)
  !Global("MacesRestricted","LOCALS",1)
  !Global("QuarterStaffRestricted","LOCALS",1)
  !Global("ClubsRestricted","LOCALS",1)
  !Global("HalberdsRestricted","LOCALS",1)
  !Global("SpearRestricted","LOCALS",1)
  !Global("AxesRestricted","LOCALS",1)
  !Global("AllArmorsRestricted","LOCALS",1)
  !Global("ChestArmorsRestricted","LOCALS",1)
  !Global("FullPlateArmorsRestricted","LOCALS",1)
  !Global("PlateArmorsRestricted","LOCALS",1)
  !Global("SplintArmorsRestricted","LOCALS",1)
  !Global("ChainArmorsRestricted","LOCALS",1)
  !Global("StuddethArmorsRestricted","LOCALS",1)
  !Global("MetalChestArmorsRestricted","LOCALS",1)
  !Global("HelmsRestricted","LOCALS",1)
  !Global("GlovesRestricted","LOCALS",1)
  !Global("AmuletRestricted","LOCALS",1)
  !Global("RingsRestricted","LOCALS",1)
  !Global("CloaksRestricted","LOCALS",1)
  !Global("BootsRestricted","LOCALS",1)
  !Global("BeltsRestricted","LOCALS",1)
  !Global("GelThacoPos5","LOCALS",1)
  !Global("GelThacoPos4","LOCALS",1)
  !Global("GelThacoPos3","LOCALS",1)
  !Global("GelThacoPos2","LOCALS",1)
  !Global("GelThacoPos1","LOCALS",1)
  !Global("GelThacoNeg5","LOCALS",1)
  !Global("GelThacoNeg4","LOCALS",1)
  !Global("GelThacoNeg3","LOCALS",1)
  !Global("GelThacoNeg2","LOCALS",1)
  !Global("GelThacoNeg1","LOCALS",1)
  !Global("GelDamagePos5","LOCALS",1)
  !Global("GelDamagePos4","LOCALS",1)
  !Global("GelDamagePos3","LOCALS",1)
  !Global("GelDamagePos2","LOCALS",1)
  !Global("GelDamagePos1","LOCALS",1)
  !Global("GelDamageNeg5","LOCALS",1)
  !Global("GelDamageNeg4","LOCALS",1)
  !Global("GelDamageNeg3","LOCALS",1)
  !Global("GelDamageNeg2","LOCALS",1)
  !Global("GelDamageNeg1","LOCALS",1)
  !Global("GelACPos5","LOCALS",1)
  !Global("GelACPos4","LOCALS",1)
  !Global("GelACPos3","LOCALS",1)
  !Global("GelACPos2","LOCALS",1)
  !Global("GelACPos1","LOCALS",1)
  !Global("GelACNeg5","LOCALS",1)
  !Global("GelACNeg4","LOCALS",1)
  !Global("GelACNeg3","LOCALS",1)
  !Global("GelACNeg2","LOCALS",1)
  !Global("GelACNeg1","LOCALS",1)
  !Global("GelAPRPos3","LOCALS",1)
  !Global("GelAPRPos2","LOCALS",1)
  !Global("GelAPRPos1","LOCALS",1)
  !Global("GelAPRNeg1","LOCALS",1)
  !Global("GelSpeedPos5","LOCALS",1)
  !Global("GelSpeedPos4","LOCALS",1)
  !Global("GelSpeedPos3","LOCALS",1)
  !Global("GelSpeedPos2","LOCALS",1)
  !Global("GelSpeedPos1","LOCALS",1)
  !Global("GelSpeedNeg5","LOCALS",1)
  !Global("GelSpeedNeg4","LOCALS",1)
  !Global("GelSpeedNeg3","LOCALS",1)
  !Global("GelSpeedNeg2","LOCALS",1)
  !Global("GelSpeedNeg1","LOCALS",1)
  !Global("GelFireResPos50","LOCALS",1)
  !Global("GelFireResPos40","LOCALS",1)
  !Global("GelFireResPos30","LOCALS",1)
  !Global("GelFireResPos20","LOCALS",1)
  !Global("GelFireResPos10","LOCALS",1)
  !Global("GelFireResNeg50","LOCALS",1)
  !Global("GelFireResNeg40","LOCALS",1)
  !Global("GelFireResNeg30","LOCALS",1)
  !Global("GelFireResNeg20","LOCALS",1)
  !Global("GelFireResNeg10","LOCALS",1)
  !Global("GelColdResPos50","LOCALS",1)
  !Global("GelColdResPos40","LOCALS",1)
  !Global("GelColdResPos30","LOCALS",1)
  !Global("GelColdResPos20","LOCALS",1)
  !Global("GelColdResPos10","LOCALS",1)
  !Global("GelColdResNeg50","LOCALS",1)
  !Global("GelColdResNeg40","LOCALS",1)
  !Global("GelColdResNeg30","LOCALS",1)
  !Global("GelColdResNeg20","LOCALS",1)
  !Global("GelColdResNeg10","LOCALS",1)
  !Global("GelLightningResPos50","LOCALS",1)
  !Global("GelLightningResPos40","LOCALS",1)
  !Global("GelLightningResPos30","LOCALS",1)
  !Global("GelLightningResPos20","LOCALS",1)
  !Global("GelLightningResPos10","LOCALS",1)
  !Global("GelLightningResNeg50","LOCALS",1)
  !Global("GelLightningResNeg40","LOCALS",1)
  !Global("GelLightningResNeg30","LOCALS",1)
  !Global("GelLightningResNeg20","LOCALS",1)
  !Global("GelLightningResNeg10","LOCALS",1)
  !Global("GelAcidResPos50","LOCALS",1)
  !Global("GelAcidResPos40","LOCALS",1)
  !Global("GelAcidResPos30","LOCALS",1)
  !Global("GelAcidResPos20","LOCALS",1)
  !Global("GelAcidResPos10","LOCALS",1)
  !Global("GelAcidResNeg50","LOCALS",1)
  !Global("GelAcidResNeg40","LOCALS",1)
  !Global("GelAcidResNeg30","LOCALS",1)
  !Global("GelAcidResNeg20","LOCALS",1)
  !Global("GelAcidResNeg10","LOCALS",1)
  !Global("GelPoisonResPos50","LOCALS",1)
  !Global("GelPoisonResPos40","LOCALS",1)
  !Global("GelPoisonResPos30","LOCALS",1)
  !Global("GelPoisonResPos20","LOCALS",1)
  !Global("GelPoisonResPos10","LOCALS",1)
  !Global("GelPoisonResNeg50","LOCALS",1)
  !Global("GelPoisonResNeg40","LOCALS",1)
  !Global("GelPoisonResNeg30","LOCALS",1)
  !Global("GelPoisonResNeg20","LOCALS",1)
  !Global("GelPoisonResNeg10","LOCALS",1)
  !Global("GelMagicResPos50","LOCALS",1)
  !Global("GelMagicResPos40","LOCALS",1)
  !Global("GelMagicResPos30","LOCALS",1)
  !Global("GelMagicResPos20","LOCALS",1)
  !Global("GelMagicResPos10","LOCALS",1)
  !Global("GelMagicResNeg50","LOCALS",1)
  !Global("GelMagicResNeg40","LOCALS",1)
  !Global("GelMagicResNeg30","LOCALS",1)
  !Global("GelMagicResNeg20","LOCALS",1)
  !Global("GelMagicResNeg10","LOCALS",1)
  !Global("GelMagicRedPos50","LOCALS",1)
  !Global("GelMagicRedPos40","LOCALS",1)
  !Global("GelMagicRedPos30","LOCALS",1)
  !Global("GelMagicRedPos20","LOCALS",1)
  !Global("GelMagicRedPos10","LOCALS",1)
  !Global("GelMagicRedNeg50","LOCALS",1)
  !Global("GelMagicRedNeg40","LOCALS",1)
  !Global("GelMagicRedNeg30","LOCALS",1)
  !Global("GelMagicRedNeg20","LOCALS",1)
  !Global("GelMagicRedNeg10","LOCALS",1)
  !Global("GelPhysResPos50","LOCALS",1)
  !Global("GelPhysResPos40","LOCALS",1)
  !Global("GelPhysResPos30","LOCALS",1)
  !Global("GelPhysResPos20","LOCALS",1)
  !Global("GelPhysResPos10","LOCALS",1)
  !Global("GelPhysResNeg50","LOCALS",1)
  !Global("GelPhysResNeg40","LOCALS",1)
  !Global("GelPhysResNeg30","LOCALS",1)
  !Global("GelPhysResNeg20","LOCALS",1)
  !Global("GelPhysResNeg10","LOCALS",1)
  !Global("GelTwoHandedSwordsProfPos1","LOCALS",1)
  !Global("GelTwoHandedSwordsProfPos2","LOCALS",1)
  !Global("GelTwoHandedSwordsProfPos3","LOCALS",1)
  !Global("GelTwoHandedSwordsProfPos4","LOCALS",1)
  !Global("GelTwoHandedSwordsProfPos5","LOCALS",1)
  !Global("GelBastardSwordsProfPos1","LOCALS",1)
  !Global("GelBastardSwordsProfPos2","LOCALS",1)
  !Global("GelBastardSwordsProfPos3","LOCALS",1)
  !Global("GelBastardSwordsProfPos4","LOCALS",1)
  !Global("GelBastardSwordsProfPos5","LOCALS",1)
  !Global("GelLongSwordsProfPos1","LOCALS",1)
  !Global("GelLongSwordsProfPos2","LOCALS",1)
  !Global("GelLongSwordsProfPos3","LOCALS",1)
  !Global("GelLongSwordsProfPos4","LOCALS",1)
  !Global("GelLongSwordsProfPos5","LOCALS",1)
  !Global("GelShortSwordsProfPos1","LOCALS",1)
  !Global("GelShortSwordsProfPos2","LOCALS",1)
  !Global("GelShortSwordsProfPos3","LOCALS",1)
  !Global("GelShortSwordsProfPos4","LOCALS",1)
  !Global("GelShortSwordsProfPos5","LOCALS",1)
  !Global("GelDaggersProfPos1","LOCALS",1)
  !Global("GelDaggersProfPos2","LOCALS",1)
  !Global("GelDaggersProfPos3","LOCALS",1)
  !Global("GelDaggersProfPos4","LOCALS",1)
  !Global("GelDaggersProfPos5","LOCALS",1)
  !Global("GelKatanaProfPos1","LOCALS",1)
  !Global("GelKatanaProfPos2","LOCALS",1)
  !Global("GelKatanaProfPos3","LOCALS",1)
  !Global("GelKatanaProfPos4","LOCALS",1)
  !Global("GelKatanaProfPos5","LOCALS",1)
  !Global("GelScimitarProfPos1","LOCALS",1)
  !Global("GelScimitarProfPos2","LOCALS",1)
  !Global("GelScimitarProfPos3","LOCALS",1)
  !Global("GelScimitarProfPos4","LOCALS",1)
  !Global("GelScimitarProfPos5","LOCALS",1)
  !Global("GelAxeProfPos1","LOCALS",1)
  !Global("GelAxeProfPos2","LOCALS",1)
  !Global("GelAxeProfPos3","LOCALS",1)
  !Global("GelAxeProfPos4","LOCALS",1)
  !Global("GelAxeProfPos5","LOCALS",1)
  !Global("GelSpearProfPos1","LOCALS",1)
  !Global("GelSpearProfPos2","LOCALS",1)
  !Global("GelSpearProfPos3","LOCALS",1)
  !Global("GelSpearProfPos4","LOCALS",1)
  !Global("GelSpearProfPos5","LOCALS",1)
  !Global("GelHalbProfPos1","LOCALS",1)
  !Global("GelHalbProfPos2","LOCALS",1)
  !Global("GelHalbProfPos3","LOCALS",1)
  !Global("GelHalbProfPos4","LOCALS",1)
  !Global("GelHalbProfPos5","LOCALS",1)
  !Global("GelFlailProfPos1","LOCALS",1)
  !Global("GelFlailProfPos2","LOCALS",1)
  !Global("GelFlailProfPos3","LOCALS",1)
  !Global("GelFlailProfPos4","LOCALS",1)
  !Global("GelFlailProfPos5","LOCALS",1)
  !Global("GelMaceProfPos1","LOCALS",1)
  !Global("GelMaceProfPos2","LOCALS",1)
  !Global("GelMaceProfPos3","LOCALS",1)
  !Global("GelMaceProfPos4","LOCALS",1)
  !Global("GelMaceProfPos5","LOCALS",1)
  !Global("GelWHamProfPos1","LOCALS",1)
  !Global("GelWHamProfPos2","LOCALS",1)
  !Global("GelWHamProfPos3","LOCALS",1)
  !Global("GelWHamProfPos4","LOCALS",1)
  !Global("GelWHamProfPos5","LOCALS",1)
  !Global("GelClubProfPos1","LOCALS",1)
  !Global("GelClubProfPos2","LOCALS",1)
  !Global("GelClubProfPos3","LOCALS",1)
  !Global("GelClubProfPos4","LOCALS",1)
  !Global("GelClubProfPos5","LOCALS",1)
  !Global("GelQStaProfPos1","LOCALS",1)
  !Global("GelQStaProfPos2","LOCALS",1)
  !Global("GelQStaProfPos3","LOCALS",1)
  !Global("GelQStaProfPos4","LOCALS",1)
  !Global("GelQStaProfPos5","LOCALS",1)
  !Global("GelSlingProfPos1","LOCALS",1)
  !Global("GelSlingProfPos2","LOCALS",1)
  !Global("GelSlingProfPos3","LOCALS",1)
  !Global("GelSlingProfPos4","LOCALS",1)
  !Global("GelSlingProfPos5","LOCALS",1)
  !Global("GelSBowProfPos1","LOCALS",1)
  !Global("GelSBowProfPos2","LOCALS",1)
  !Global("GelSBowProfPos3","LOCALS",1)
  !Global("GelSBowProfPos4","LOCALS",1)
  !Global("GelSBowProfPos5","LOCALS",1)
  !Global("GelLBowProfPos1","LOCALS",1)
  !Global("GelLBowProfPos2","LOCALS",1)
  !Global("GelLBowProfPos3","LOCALS",1)
  !Global("GelLBowProfPos4","LOCALS",1)
  !Global("GelLBowProfPos5","LOCALS",1)
  !Global("GelXBowProfPos1","LOCALS",1)
  !Global("GelXBowProfPos2","LOCALS",1)
  !Global("GelXBowProfPos3","LOCALS",1)
  !Global("GelXBowProfPos4","LOCALS",1)
  !Global("GelXBowProfPos5","LOCALS",1)
  !Global("GelTwoWeaponStyleProfPos1","LOCALS",1)
  !Global("GelTwoWeaponStyleProfPos2","LOCALS",1)
  !Global("GelTwoWeaponStyleProfPos3","LOCALS",1)
  !Global("GelSingleWeaponStyleProfPos1","LOCALS",1)
  !Global("GelSingleWeaponStyleProfPos2","LOCALS",1)
  !Global("GelSwordShieldStyleProfPos1","LOCALS",1)
  !Global("GelSwordShieldStyleProfPos2","LOCALS",1)
  !Global("GelTwoHandedStyleProfPos1","LOCALS",1)
  !Global("GelTwoHandedStyleProfPos2","LOCALS",1)
  !Global("GelImmuneCharm","LOCALS",1)
  !Global("GelImmuneFear","LOCALS",1)
  !Global("GelImmuneSleep","LOCALS",1)
  !Global("GelImmuneStun","LOCALS",1)
  !Global("GelImmuneDiseases","LOCALS",1)
  !Global("GelImmuneLvlDrain","LOCALS",1)
  !Global("GelImmuneFreeAction","LOCALS",1)
  !Global("GelMoveMentBonus2","LOCALS",1)
  !Global("GelMoveMentBonus4","LOCALS",1)
  !Global("GelMoveMentBonus6","LOCALS",1)
  !Global("GelMoveMentBonusx2","LOCALS",1)
  !Global("GelImprovedAlacricity","LOCALS",1)
  !Global("GelUseAnyItem","LOCALS",1)
  !Global("GelIA_UAI","LOCALS",1)
  !Global("GelSavingThrowsNeg2","LOCALS",1)
  !Global("GelSavingThrowsNeg1","LOCALS",1)
  !Global("GelSavingThrowsPos1","LOCALS",1)
  !Global("GelSavingThrowsPos2","LOCALS",1)
  !Global("GelGreaterWirlwind","LOCALS",1)
  !Global("GelGreaterDeathblow","LOCALS",1)
  !Global("GelCriticalStrike","LOCALS",1)
  !Global("GelHardiness","LOCALS",1)
  !Global("GelPowerStrike","LOCALS",1)
  !Global("GelSmite","LOCALS",1)
  !Global("GelFavouredByTheSpirits","LOCALS",1)
  !Global("GelDeva","LOCALS",1)
  !Global("GelFallenDeva","LOCALS",1)
  !Global("GelSpikeTrap","LOCALS",1)
  !Global("GelTimeStopTrap","LOCALS",1)
  !Global("GelShapechangeFire","LOCALS",1)
  !Global("GelShapechangeEarth","LOCALS",1)
  !Global("GelBreathFire","LOCALS",1)
  !Global("GelPsionicBlast","LOCALS",1)
  !Global("GelShadowStep","LOCALS",1)
  !Global("GelBarbarianRage","LOCALS",1)
  !Global("GelBerserkerRage","LOCALS",1)
  !Global("GelKai","LOCALS",1)
  !Global("GelCalledShot","LOCALS",1)
  !Global("GelBlindness","LOCALS",1)
  !Global("GelMirrorImmage","LOCALS",1)
  !Global("GelBlur","LOCALS",1)
  !Global("GelChillingFist","LOCALS",1)
  !Global("GelFlamingFist","LOCALS",1)
THEN
  RESPONSE #100
    SetGlobal("GelTDia_Process","LOCALS",2)
    Continue()
END

IF
  Global("GelTDia_Process","LOCALS",2)
  ActionListEmpty()
THEN
  RESPONSE #100
    DestroySelf()
END

////// DIALOG FIL /////////
BEGIN ~GelTDia~ 
///////////////////////////First Block of choices////////////////////////////////////////// 
IF ~True()~ THEN BEGIN GelPotionOfChoices 
  SAY ~Here are some further nerfs or buffs you can choose. Be wise, i tried to restrict unrelevant choices, but want you to be free. Adding the same kit overlay you already have will give bonuses from lvl 1 to current level again. All effects are permanent. Potion name is GelPot1 incase you need to clua more.~ 
    IF ~~ THEN REPLY ~I want another Ability of Customization for later use.~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelPot1","LOCALS",1))~ GOTO GelTDia_AnotherPotion 
    IF ~OR(2)
Class(LastTalkedToBy(Myself),RANGER_ALL) 
Class(LastTalkedToBy(Myself),THIEF_ALL) 
GlobalLT("GelBackstabPot","LOCALS",1)~ THEN REPLY ~I would like to adjust Backstab Bonus~ DO ~SetGlobal("GelBackstabPot","LOCALS",1)~ GOTO GelTDia_Backstab 
    IF ~OR(4)
Class(LastTalkedToBy(Myself),RANGER_ALL) 
Class(LastTalkedToBy(Myself),THIEF_ALL) 
Class(LastTalkedToBy(Myself),MONK) 
Class(LastTalkedToBy(Myself),SHAMAN) 
GlobalLT("GelThieveryPot","LOCALS",1)~ THEN REPLY ~I would like to adjust Stealth/Thievery Stats~ DO ~SetGlobal("GelThieveryPot","LOCALS",1)~ GOTO GelTDia_Thievery 
    IF ~OR(8)
Class(LastTalkedToBy(Myself),MAGE_ALL) 
Class(LastTalkedToBy(Myself),CLERIC_ALL) 
Class(LastTalkedToBy(Myself),RANGER) 
Class(LastTalkedToBy(Myself),PALADIN) 
Class(LastTalkedToBy(Myself),SHAMAN) 
Class(LastTalkedToBy(Myself),DRUID_ALL) 
Class(LastTalkedToBy(Myself),BARD) 
Class(LastTalkedToBy(Myself),SORCERER)~ THEN REPLY ~I want to adjust spellcasting.~ GOTO GelTDia_SpellCasting 
    IF ~GlobalLT("GelKitPot","LOCALS",1)~ THEN REPLY ~I want to add more kit overlays.~ DO ~SetGlobal("GelKitPot","LOCALS",1)~ GOTO GelTDia_KitOverlays
    IF ~GlobalLT("GelAttPot","LOCALS",1)~ THEN REPLY ~I want to modify my attributes.~ DO ~SetGlobal("GelAttPot","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~GlobalLT("GelRestrictPot","LOCALS",1)~ THEN REPLY ~I want to Restric items.(specified)~ DO ~SetGlobal("GelRestrictPot","LOCALS",1)~ GOTO GelTDia_Restrictions
    IF ~GlobalLT("GelAbilityPot","LOCALS",1)~ THEN REPLY ~I want to add ability package as innate.(specified)~ DO ~SetGlobal("GelAbilityPot","LOCALS",1)~ GOTO GelTDia_AbilityPackage
    IF ~GlobalLT("GelThacoDamageAcAspeedPot","LOCALS",1)~ THEN REPLY ~I want to modify Thaco, Damage, AC, attacks per round or attackspeed.~ DO ~SetGlobal("GelThacoDamageAcAspeedPot","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~GlobalLT("GelProfienceSetPot","LOCALS",1)~ THEN REPLY ~I want to set certain profiency to certain value~ DO ~SetGlobal("GelProfienceSetPot","LOCALS",1)~ GOTO GelTDia_Profiency
    IF ~GlobalLT("GelResPot","LOCALS",1)~ THEN REPLY ~I want to modify Resistances~ DO ~SetGlobal("GelResPot","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~GlobalLT("GelImmunePot","LOCALS",1)~ THEN REPLY ~I want to add a immunity feature~ DO ~SetGlobal("GelImmunePot","LOCALS",1)~ GOTO GelTDia_Immunities
    IF ~GlobalLT("GelMovementPot","LOCALS",1)~ THEN REPLY ~I want to modify movementspeed.~ DO ~SetGlobal("GelMovementPot","LOCALS",1)~ GOTO GelTDia_Movement
    IF ~GlobalLT("GelGodModePot","LOCALS",1)~ THEN REPLY ~I want permanent Use Any Items or improved alacricity~ DO ~SetGlobal("GelGodModePot","LOCALS",1)~ GOTO GelTDia_Godmode
    IF ~GlobalLT("GelSavingPot","LOCALS",1)~ THEN REPLY ~I want alter saving throws~ DO ~SetGlobal("GelSavingPot","LOCALS",1)~ GOTO GelTDia_SavingThrows
    IF ~GlobalLT("GelXPNerf","LOCALS",1)~ THEN REPLY ~I want alter experience gained.~ DO ~SetGlobal("GelXPNerf","LOCALS",1)~ GOTO GelTDia_XPNerf
    IF ~~ THEN REPLY ~Im done with all my choices~ DO ~SetGlobal("GelTDia_Done","LOCALS",1)~ EXIT 
END

IF ~~ THEN BEGIN GelTDia_AnotherPotion
  SAY ~Another Potion of Customization is in your inventory~
    IF ~~ THEN REPLY ~Thanks.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelTDia_Backstab
  SAY ~Chose your backstab bonus. This will give a negative or positive bonus. It will work on all rangers as well. If you want to backstab with a none backstab able wepon type you can choose that in the weidu installer.~
    IF ~~ THEN REPLY ~-3 to backstab bonus(nerf)~ DO ~SetGlobal("GelBackstabNeg3","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~-2 to backstab bonus(nerf)~ DO ~SetGlobal("GelBackstabNeg2","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~-1 to backstab bonus(nerf)~ DO ~SetGlobal("GelBackstabNeg1","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~+1 to backstab bonus(buff)~ DO ~SetGlobal("GelBackstabPos1","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~+2 to backstab bonus(buff)~ DO ~SetGlobal("GelBackstabPos2","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~+3 to backstab bonus(buff)~ DO ~SetGlobal("GelBackstabPos3","LOCALS",1)~ GOTO GelPotionOfChoices
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices made.~ DO ~SetGlobal("GelBackstabReset","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelTDia_Thievery
  SAY ~Choose Category, nerfs and buffs are availeble. Only relevant categories will be availeble.~
    IF ~Class(LastTalkedToBy(Myself),THIEF_ALL) GlobalLT("OpenLocksPicked","LOCALS",1)~ THEN REPLY ~Open Locks~ DO ~SetGlobal("OpenLocksPicked","LOCALS",1)~ GOTO GelOpenLocks
    IF ~OR(2)
Class(LastTalkedToBy(Myself),THIEF_ALL) 
Class(LastTalkedToBy(Myself),MONK) 
GlobalLT("FindTrapsPicked","LOCALS",1)~ THEN REPLY ~Find Traps~ DO ~SetGlobal("FindTrapsPicked","LOCALS",1)~ GOTO GelFindTraps
    IF ~OR(2)
Class(LastTalkedToBy(Myself),THIEF_ALL) 
Class(LastTalkedToBy(Myself),BARD) 
GlobalLT("PickPocketPicked","LOCALS",1)~ THEN REPLY ~Pick Pocket~ DO ~SetGlobal("PickPocketPicked","LOCALS",1)~ GOTO GelPickPocket
    IF ~OR(3)
Class(LastTalkedToBy(Myself),THIEF_ALL) 
Class(LastTalkedToBy(Myself),MONK) 
Class(LastTalkedToBy(Myself),SHAMAN) 
GlobalLT("DetectIllusionPicked","LOCALS",1)~ THEN REPLY ~Detect Illusion~ DO ~SetGlobal("DetectIllusionPicked","LOCALS",1)~ GOTO GelIllusion
    IF ~Class(LastTalkedToBy(Myself),THIEF_ALL) GlobalLT("SetTrapsPicked","LOCALS",1) !Kit(LastTalkedToBy(Myself),"SHADOWDANCER")~ THEN REPLY ~Set Traps~ DO ~SetGlobal("SetTrapsPicked","LOCALS",1)~ GOTO GelSetTraps
    IF ~OR(3)
Class(LastTalkedToBy(Myself),THIEF_ALL) 
Class(LastTalkedToBy(Myself),MONK) 
Class(LastTalkedToBy(Myself),RANGER_ALL) 
GlobalLT("StealthPicked","LOCALS",1)~ THEN REPLY ~Stealth(Hide in shadows and move silent)~ DO ~SetGlobal("StealthPicked","LOCALS",1)~ GOTO GelStealth
    IF ~~ THEN REPLY ~Im done. Go back.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelStealth
  SAY ~Chose your stealh bonus. This will give a negative or positive bonus. Points will be given to both Hide in Shadows and Move Silent.~
    IF ~~ THEN REPLY ~-30% to stealth bonus(nerf)~ DO ~SetGlobal("GelStealthNeg30","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~-20% to stealth bonus(nerf)~ DO ~SetGlobal("GelStealthNeg20","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~-10% to stealth bonus(nerf)~ DO ~SetGlobal("GelStealthNeg10","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+10% to stealth bonus(buff)~ DO ~SetGlobal("GelStealthPos10","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+20% to stealth bonus(buff)~ DO ~SetGlobal("GelStealthPos20","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+30% to stealth bonus(buff)~ DO ~SetGlobal("GelStealthPos30","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+40% to stealth bonus(buff)~ DO ~SetGlobal("GelStealthPos40","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+50% to stealth bonus(buff)~ DO ~SetGlobal("GelStealthPos50","LOCALS",1)~ GOTO GelTDia_Thievery
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelStealthReset","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Thievery
END

IF ~~ THEN BEGIN GelFindTraps
  SAY ~Chose your Find Traps bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-30% to find traps(nerf)~ DO ~SetGlobal("GelFindTrapsNeg30","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~-20% to find traps(nerf)~ DO ~SetGlobal("GelFindTrapsNeg20","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~-10% to find traps(nerf)~ DO ~SetGlobal("GelFindTrapsNeg10","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+10% to find traps(buff)~ DO ~SetGlobal("GelFindTrapsPos10","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+20% to find traps(buff)~ DO ~SetGlobal("GelFindTrapsPos20","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+30% to find traps(buff)~ DO ~SetGlobal("GelFindTrapsPos30","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+40% to find traps(buff)~ DO ~SetGlobal("GelFindTrapsPos40","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+50% to find traps(buff)~ DO ~SetGlobal("GelFindTrapsPos50","LOCALS",1)~ GOTO GelTDia_Thievery
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelFindTrapsReset","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Thievery
END

IF ~~ THEN BEGIN GelPickPocket
  SAY ~Chose your Pick Pocket bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-30% to Pick Pocket(nerf)~ DO ~SetGlobal("GelPickPocketNeg30","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~-20% to Pick Pocket(nerf)~ DO ~SetGlobal("GelPickPocketNeg20","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~-10% to Pick Pocket(nerf)~ DO ~SetGlobal("GelPickPocketNeg10","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+10% to Pick Pocket(buff)~ DO ~SetGlobal("GelPickPocketPos10","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+20% to Pick Pocket(buff)~ DO ~SetGlobal("GelPickPocketPos20","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+30% to Pick Pocket(buff)~ DO ~SetGlobal("GelPickPocketPos30","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+40% to Pick Pocket(buff)~ DO ~SetGlobal("GelPickPocketPos40","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+50% to Pick Pocket(buff)~ DO ~SetGlobal("GelPickPocketPos50","LOCALS",1)~ GOTO GelTDia_Thievery
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelPickPocketReset","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Thievery
END

IF ~~ THEN BEGIN GelOpenLocks
  SAY ~Chose your Open Locks bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-30% to Open Locks bonus(nerf)~ DO ~SetGlobal("GelOpenLocksNeg30","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~-20% to Open Locks bonus(nerf)~ DO ~SetGlobal("GelOpenLocksNeg20","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~-10% to Open Locks bonus(nerf)~ DO ~SetGlobal("GelOpenLocksNeg10","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+10% to Open Locks bonus(buff)~ DO ~SetGlobal("GelOpenLocksPos10","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+20% to Open Locks bonus(buff)~ DO ~SetGlobal("GelOpenLocksPos20","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+30% to Open Locks bonus(buff)~ DO ~SetGlobal("GelOpenLocksPos30","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+40% to Open Locks bonus(buff)~ DO ~SetGlobal("GelOpenLocksPos40","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+50% to Open Locks bonus(buff)~ DO ~SetGlobal("GelOpenLocksPos50","LOCALS",1)~ GOTO GelTDia_Thievery
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelOpenLocksReset","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Thievery
END

IF ~~ THEN BEGIN GelIllusion
  SAY ~Chose your Detect Illusion bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-30% to Detect Illusion bonus(nerf)~ DO ~SetGlobal("GelDetectIllusionsNeg30","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~-20% to Detect Illusion bonus(nerf)~ DO ~SetGlobal("GelDetectIllusionsNeg20","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~-10% to Detect Illusion bonus(nerf)~ DO ~SetGlobal("GelDetectIllusionsNeg10","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+10% to Detect Illusion bonus(buff)~ DO ~SetGlobal("GelDetectIllusionsPos10","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+20% to Detect Illusion bonus(buff)~ DO ~SetGlobal("GelDetectIllusionsPos20","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+30% to Detect Illusion bonus(buff)~ DO ~SetGlobal("GelDetectIllusionsPos30","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+40% to Detect Illusion bonus(buff)~ DO ~SetGlobal("GelDetectIllusionsPos40","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+50% to Detect Illusion bonus(buff)~ DO ~SetGlobal("GelDetectIllusionsPos50","LOCALS",1)~ GOTO GelTDia_Thievery
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelDetectIllusionsReset","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Thievery
END

IF ~~ THEN BEGIN GelSetTraps
  SAY ~Chose your Set Traps bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-30% to Set Traps bonus(nerf)~ DO ~SetGlobal("GelSetTrapsNeg30","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~-20% to Set Traps bonus(nerf)~ DO ~SetGlobal("GelSetTrapsNeg20","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~-10% to Set Traps bonus(nerf)~ DO ~SetGlobal("GelSetTrapsNeg10","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+10% to Set Traps bonus(buff)~ DO ~SetGlobal("GelSetTrapsPos10","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+20% to Set Traps bonus(buff)~ DO ~SetGlobal("GelSetTrapsPos20","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+30% to Set Traps bonus(buff)~ DO ~SetGlobal("GelSetTrapsPos30","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+40% to Set Traps bonus(buff)~ DO ~SetGlobal("GelSetTrapsPos40","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~+50% to Set Traps bonus(buff)~ DO ~SetGlobal("GelSetTrapsPos50","LOCALS",1)~ GOTO GelTDia_Thievery
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelSetTrapsReset","LOCALS",1)~ GOTO GelTDia_Thievery
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Thievery
END

IF ~~ THEN BEGIN GelTDia_SpellCasting
  SAY ~Chose what you want to change. Different sections will have values to choose.~
    IF ~GlobalLT("GelCastingSpeed","LOCALS",1)~ THEN REPLY ~I want to alter casting speed~ DO ~SetGlobal("GelCastingSpeed","LOCALS",1)~ GOTO GelCastingSpeed
    IF ~GlobalLT("GelArcaneSpellSlots","LOCALS",1) OR(3) 
Class(LastTalkedToBy(Myself),MAGE_ALL)
Class(LastTalkedToBy(Myself),SORCERER)
Class(LastTalkedToBy(Myself),BARD)~ THEN REPLY ~I want to alter number of ARCANE spellslots/casts per rest~ DO ~SetGlobal("GelArcaneSpellSlots","LOCALS",1)~ GOTO GelArcaneCastingSlots
    IF ~GlobalLT("GelDevineSpellSlots","LOCALS",1) OR(3) 
Class(LastTalkedToBy(Myself),CLERIC_ALL)
Class(LastTalkedToBy(Myself),SHAMAN)
Class(LastTalkedToBy(Myself),DRUID)
Class(LastTalkedToBy(Myself),RANGER)
Class(LastTalkedToBy(Myself),PALADIN)~ THEN REPLY ~I want to alter number of DEVINE spellslots/casts per rest~ DO ~SetGlobal("GelDevineSpellSlots","LOCALS",1)~ GOTO GelDevineCastingSlots
    IF ~~ THEN REPLY ~Im done. Go back.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelCastingSpeed
  SAY ~Chose your Casting Speed bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-2 to Casting Speed bonus(nerf)~ DO ~SetGlobal("GelCastingSpeedNeg2","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~-1 to Casting Speed bonus(nerf)~ DO ~SetGlobal("GelCastingSpeedNeg1","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~+1 to Casting Speed bonus(buff)~ DO ~SetGlobal("GelCastingSpeedPos1","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~+2 to Casting Speed bonus(buff)~ DO ~SetGlobal("GelCastingSpeedPos2","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~+3 to Casting Speed bonus(buff)~ DO ~SetGlobal("GelCastingSpeedPos3","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~+4 to Casting Speed bonus(buff)~ DO ~SetGlobal("GelCastingSpeedPos4","LOCALS",1)~ GOTO GelTDia_SpellCasting
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelCastingSpeedReset","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_SpellCasting
END

IF ~~ THEN BEGIN GelArcaneCastingSlots
  SAY ~Chose your Arcane Casting Slots bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-1 to Arcane Casting Slots(nerf)~ DO ~SetGlobal("GelArcaneCastingSlotsNeg1","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~+1 to Arcane Casting Slots(buff)~ DO ~SetGlobal("GelArcaneCastingSlotsPos1","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~+2 to Arcane Casting Slots(buff)~ DO ~SetGlobal("GelArcaneCastingSlotsPos2","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~+3 to Arcane Casting Slots(buff)~ DO ~SetGlobal("GelArcaneCastingSlotsPos3","LOCALS",1)~ GOTO GelTDia_SpellCasting
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelArcaneCastingSlotsReset","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_SpellCasting
END

IF ~~ THEN BEGIN GelDevineCastingSlots
  SAY ~Chose your Devine Casting Slots bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-1 to Devine Casting Slots(nerf)~ DO ~SetGlobal("GelDevineCastingSlotsNeg1","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~+1 to Devine Casting Slots(buff)~ DO ~SetGlobal("GelDevineCastingSlotsPos1","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~+2 to Devine Casting Slots(buff)~ DO ~SetGlobal("GelDevineCastingSlotsPos2","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~+3 to Devine Casting Slots(buff)~ DO ~SetGlobal("GelDevineCastingSlotsPos3","LOCALS",1)~ GOTO GelTDia_SpellCasting
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelDevineCastingSlotsReset","LOCALS",1)~ GOTO GelTDia_SpellCasting
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_SpellCasting
END

IF ~~ THEN BEGIN GelTDia_KitOverlays
  SAY ~Choose a extra kit overlay or more(only relevant classes will be availeble). Adding the same kit you already overlayed will give double bonuses from Lvl1 to Current level, then single bonuses. Theese does not alter your TRUE kit. Only for multiclass-able Classes.~
    IF ~GlobalLT("GelExtraFighterKits","LOCALS",1) Class(LastTalkedToBy(Myself),FIGHTER_ALL)~ THEN REPLY ~Fighter Kit Overlayed on top~ DO ~SetGlobal("GelExtraFighterKits","LOCALS",1)~ GOTO GelChooseExtraFighterKit
    IF ~GlobalLT("GelExtraThiefKits","LOCALS",1) Class(LastTalkedToBy(Myself),THIEF_ALL)~ THEN REPLY ~Thief Kit Overlayed on top~ DO ~SetGlobal("GelExtraThiefKits","LOCALS",1)~ GOTO GelChooseExtraThiefKit
    IF ~GlobalLT("GelExtraMageKits","LOCALS",1) Class(LastTalkedToBy(Myself),MAGE_ALL)~ THEN REPLY ~Mage Kit Overlayed on top~ DO ~SetGlobal("GelExtraMageKits","LOCALS",1)~ GOTO GelChooseExtraMageKit
    IF ~GlobalLT("GelExtraClericKits","LOCALS",1) Class(LastTalkedToBy(Myself),CLERIC_ALL)~ THEN REPLY ~Cleric Kit Overlayed on top~ DO ~SetGlobal("GelExtraClericKits","LOCALS",1)~ GOTO GelChooseExtraClericKit
    IF ~GlobalLT("GelExtraRangerKits","LOCALS",1) Class(LastTalkedToBy(Myself),RANGER_ALL)~ THEN REPLY ~Ranger Kit Overlayed on top~ DO ~SetGlobal("GelExtraRangerKits","LOCALS",1)~ GOTO GelChooseExtraRangerKit
    IF ~GlobalLT("GelExtraDruidKits","LOCALS",1) Class(LastTalkedToBy(Myself),DRUID_ALL)~ THEN REPLY ~Druid Kit Overlayed on top~ DO ~SetGlobal("GelExtraDruidKits","LOCALS",1)~ GOTO GelChooseExtraDruidKit
    IF ~~ THEN REPLY ~Im done. Go back.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelChooseExtraFighterKit
  SAY ~Which fighter kit do you want?~
    IF ~~ THEN REPLY ~None~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Kensai~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiKen","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Barbarian~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiBar","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Berserker~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiBer","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Dwarven Defender~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiDwD","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Wizard Slayer~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiWiS","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_KitOverlays
END

IF ~~ THEN BEGIN GelChooseExtraMageKit
  SAY ~Which mage kit do you want?~
    IF ~~ THEN REPLY ~None~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Abjurer~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiAbj","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Conjurer~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiCon","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Deviner~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiDev","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Enchanter~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiEnc","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Illusionist~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiIll","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Invoker~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiInv","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Necromancer~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiNec","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Transmuter~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiTra","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~SuperKit, with no restrictions and 1 extra spellcast~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiSup","LOCALS",1))~ GOTO GelTDia_KitOverlays
END

IF ~~ THEN BEGIN GelChooseExtraThiefKit
  SAY ~Which Thief kit do you want?~
    IF ~~ THEN REPLY ~None~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Assassin~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiAss","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Bounty Hunter~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiBou","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Swashbuckler~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiSwa","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Shadowdancer~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiSha","LOCALS",1))~ GOTO GelMultiSuperThief
    IF ~~ THEN REPLY ~I want all Thief kits combined~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelSuperThief","LOCALS",1))~ GOTO GelMultiSuperThief
END

IF ~~ THEN BEGIN GelMultiSuperThief
  SAY ~Do you also want to add kit specific HLA abilities on certain high levels?~
    IF ~~ THEN REPLY ~No.~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Yes.~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelThiefHLA","LOCALS",1))~ GOTO GelTDia_KitOverlays
END

IF ~~ THEN BEGIN GelChooseExtraClericKit
  SAY ~Which Cleric kit do you want?~
    IF ~~ THEN REPLY ~None~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Talos~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiTal","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Helm~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiHel","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Lathander~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiLat","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Tempus~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiTemp","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Tyr~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiTyr","LOCALS",1))~ GOTO GelTDia_KitOverlays
END

IF ~~ THEN BEGIN GelChooseExtraDruidKit
  SAY ~Which Druid kit do you want?~
    IF ~~ THEN REPLY ~None~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Totemic Druid~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiTot","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Shapeshifter~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiSha","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Avenger~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiAve","LOCALS",1))~ GOTO GelTDia_KitOverlays
END

IF ~~ THEN BEGIN GelChooseExtraRangerKit
  SAY ~Which Ranger kit do you want?~
    IF ~~ THEN REPLY ~None~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Stalker~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiSta","LOCALS",1))~ GOTO GelTDia_KitOverlays
    IF ~~ THEN REPLY ~Slinging Beastmaster~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiSli","LOCALS",1)) ActionOverride(LastTalkedToBy(Myself),AddSuperKit("GelSlin"))~ GOTO GelTDia_KitOverlays
//IF ~~ THEN REPLY ~Beast Master~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiBea","LOCALS",1))~ GOTO GelTDia_KitOverlays
//IF ~~ THEN REPLY ~Archer~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelMultiArc","LOCALS",1))~ GOTO GelTDia_KitOverlays
END

IF ~~ THEN BEGIN GelTDia_Attributes
  SAY ~Choose attribute type. Values are chosen in next step. You will be redirected here after picking a value.~
    IF ~GlobalLT("GelTDiaStr","LOCALS",1)~ THEN REPLY ~Strenght~ DO ~SetGlobal("GelTDiaStr","LOCALS",1)~ GOTO GelTDiaStr 
    IF ~GlobalLT("GelTDiaDex","LOCALS",1)~ THEN REPLY ~Dexterity~ DO ~SetGlobal("GelTDiaDex","LOCALS",1)~ GOTO GelTDiaDex 
    IF ~GlobalLT("GelTDiaCon","LOCALS",1)~ THEN REPLY ~Constitution~ DO ~SetGlobal("GelTDiaCon","LOCALS",1)~ GOTO GelTDiaCon 
    IF ~GlobalLT("GelTDiaInt","LOCALS",1)~ THEN REPLY ~Intelligence~ DO ~SetGlobal("GelTDiaInt","LOCALS",1)~ GOTO GelTDiaInt 
    IF ~GlobalLT("GelTDiaWis","LOCALS",1)~ THEN REPLY ~Wisdom~ DO ~SetGlobal("GelTDiaWis","LOCALS",1)~ GOTO GelTDiaWis
    IF ~GlobalLT("GelTDiaCha","LOCALS",1)~ THEN REPLY ~Charisma~ DO ~SetGlobal("GelTDiaCha","LOCALS",1)~ GOTO GelTDiaCha
    IF ~GlobalLT("GelTDiaAll","LOCALS",1)~ THEN REPLY ~All attributes~ DO ~SetGlobal("GelTDiaAll","LOCALS",1)~ GOTO GelTDiaAllAtt
    IF ~~ THEN REPLY ~Im done. Go back.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelTDiaStr
  SAY ~Chose your Strenght bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-2 to Strenght bonus(nerf)~ DO ~SetGlobal("GelStrenghtBonusNeg2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~-1 to Strenght bonus(nerf)~ DO ~SetGlobal("GelStrenghtBonusNeg1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+1 to Strenght bonus(buff)~ DO ~SetGlobal("GelStrenghtBonusPos1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+2 to Strenght bonus(buff)~ DO ~SetGlobal("GelStrenghtBonusPos2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+3 to Strenght bonus(buff)~ DO ~SetGlobal("GelStrenghtBonusPos3","LOCALS",1)~ GOTO GelTDia_Attributes
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelStenghtBonusReset","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Attributes
END

IF ~~ THEN BEGIN GelTDiaDex
  SAY ~Chose your Dexterity bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-2 to Dexterity bonus(nerf)~ DO ~SetGlobal("GelDexterityBonusNeg2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~-1 to Dexterity bonus(nerf)~ DO ~SetGlobal("GelDexterityBonusNeg1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+1 to Dexterity bonus(buff)~ DO ~SetGlobal("GelDexterityBonusPos1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+2 to Dexterity bonus(buff)~ DO ~SetGlobal("GelDexterityBonusPos2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+3 to Dexterity bonus(buff)~ DO ~SetGlobal("GelDexterityBonusPos3","LOCALS",1)~ GOTO GelTDia_Attributes
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelDexterityBonusReset","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Attributes
END

IF ~~ THEN BEGIN GelTDiaCon
  SAY ~Chose your Constitution bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-2 to Constitution bonus(nerf)~ DO ~SetGlobal("GelConstitutionBonusNeg2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~-1 to Constitution bonus(nerf)~ DO ~SetGlobal("GelConstitutionBonusNeg1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+1 to Constitution bonus(buff)~ DO ~SetGlobal("GelConstitutionBonusPos1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+2 to Constitution bonus(buff)~ DO ~SetGlobal("GelConstitutionBonusPos2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+3 to Constitution bonus(buff)~ DO ~SetGlobal("GelConstitutionBonusPos3","LOCALS",1)~ GOTO GelTDia_Attributes
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelConstitutionBonusReset","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Attributes
END

IF ~~ THEN BEGIN GelTDiaInt
  SAY ~Chose your Intelligence bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-2 to Intelligence bonus(nerf)~ DO ~SetGlobal("GelIntelligenceBonusNeg2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~-1 to Intelligence bonus(nerf)~ DO ~SetGlobal("GelIntelligenceBonusNeg1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+1 to Intelligence bonus(buff)~ DO ~SetGlobal("GelIntelligenceBonusPos1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+2 to Intelligence bonus(buff)~ DO ~SetGlobal("GelIntelligenceBonusPos2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+3 to Intelligence bonus(buff)~ DO ~SetGlobal("GelIntelligenceBonusPos3","LOCALS",1)~ GOTO GelTDia_Attributes
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelIntelligenceBonusReset","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Attributes
END

IF ~~ THEN BEGIN GelTDiaWis
  SAY ~Chose your Wisdom bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-2 to Wisdom bonus(nerf)~ DO ~SetGlobal("GelWisdomBonusNeg2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~-1 to Wisdom bonus(nerf)~ DO ~SetGlobal("GelWisdomBonusNeg1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+1 to Wisdom bonus(buff)~ DO ~SetGlobal("GelWisdomBonusPos1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+2 to Wisdom bonus(buff)~ DO ~SetGlobal("GelWisdomBonusPos2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+3 to Wisdom bonus(buff)~ DO ~SetGlobal("GelWisdomBonusPos3","LOCALS",1)~ GOTO GelTDia_Attributes
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelWisdomBonusReset","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Attributes
END

IF ~~ THEN BEGIN GelTDiaCha
  SAY ~Chose your Charisma bonus. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-2 to Charisma bonus(nerf)~ DO ~SetGlobal("GelCharismaBonusNeg2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~-1 to Charisma bonus(nerf)~ DO ~SetGlobal("GelCharismaBonusNeg1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+1 to Charisma bonus(buff)~ DO ~SetGlobal("GelCharismaBonusPos1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+2 to Charisma bonus(buff)~ DO ~SetGlobal("GelCharismaBonusPos2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+3 to Charisma bonus(buff)~ DO ~SetGlobal("GelCharismaBonusPos3","LOCALS",1)~ GOTO GelTDia_Attributes
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelCharismaBonusReset","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Attributes
END

IF ~~ THEN BEGIN GelTDiaAllAtt
  SAY ~Chose how much bonus to all Attributes(Strenght, Dexterity, Constitution, Intelligence, Wisdom and Charisma. This will give a negative or positive bonus.~
    IF ~~ THEN REPLY ~-2 to All Attribute bonus(nerf)~ DO ~SetGlobal("GelAllAttBonusNeg2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~-1 to All Attribute bonus(nerf)~ DO ~SetGlobal("GelAllAttBonusNeg1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+1 to All Attribute bonus(buff)~ DO ~SetGlobal("GelAllAttBonusPos1","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+2 to All Attribute bonus(buff)~ DO ~SetGlobal("GelAllAttBonusPos2","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~+3 to All Attribute bonus(buff)~ DO ~SetGlobal("GelAllAttBonusPos3","LOCALS",1)~ GOTO GelTDia_Attributes
//    IF ~~ THEN REPLY ~I want to reset and remove my previous choices to default~ DO ~SetGlobal("GelAllAttBonusReset","LOCALS",1)~ GOTO GelTDia_Attributes
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Attributes
END

IF ~~ THEN BEGIN GelTDia_Restrictions
  SAY ~Chose what type of gear you want to specify a restriction to use in~
    IF ~~ THEN REPLY ~Wepon types~ GOTO GelWeponRestrictions
    IF ~~ THEN REPLY ~Armor types~ GOTO GelArmorRestrictions
    IF ~~ THEN REPLY ~Jewerly types~ GOTO GelJewelRestrictions
    IF ~~ THEN REPLY ~Misc types~ GOTO GelMiscRestrictions
    IF ~~ THEN REPLY ~Im done. Go back.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelWeponRestrictions
  SAY ~Chose what weapon type to restrict~
    IF ~GlobalLT("AllWeponsRestricted","LOCALS",1)~ THEN REPLY ~All Wepons~ DO ~SetGlobal("AllWeponsRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("TwoHandedSwordRestricted","LOCALS",1)~ THEN REPLY ~Two handed swords~ DO ~SetGlobal("TwoHandedSwordRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("BastardswordsRestricted","LOCALS",1)~ THEN REPLY ~Bastard swords~ DO ~SetGlobal("BastardswordsRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("LongswordsRestricted","LOCALS",1)~ THEN REPLY ~Long swords~ DO ~SetGlobal("LongswordsRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("SmallswordsRestricted","LOCALS",1)~ THEN REPLY ~Small swords~ DO ~SetGlobal("SmallswordsRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("DaggersRestricted","LOCALS",1)~ THEN REPLY ~Daggers~ DO ~SetGlobal("DaggersRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("WarHammersRestricted","LOCALS",1)~ THEN REPLY ~War Hammers~ DO ~SetGlobal("WarHammersRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("FlailMorningRestricted","LOCALS",1)~ THEN REPLY ~Flail/Morningstars~ DO ~SetGlobal("FlailMorningRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("MacesRestricted","LOCALS",1)~ THEN REPLY ~Maces~ DO ~SetGlobal("MacesRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("QuarterStaffRestricted","LOCALS",1)~ THEN REPLY ~QuarterStaffs~ DO ~SetGlobal("QuarterStaffRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("ClubsRestricted","LOCALS",1)~ THEN REPLY ~Clubs~ DO ~SetGlobal("ClubsRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("HalberdsRestricted","LOCALS",1)~ THEN REPLY ~Halberds~ DO ~SetGlobal("HalberdsRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("SpearRestricted","LOCALS",1)~ THEN REPLY ~Spears~ DO ~SetGlobal("SpearRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~GlobalLT("AxesRestricted","LOCALS",1)~ THEN REPLY ~Axes~ DO ~SetGlobal("AxesRestricted","LOCALS",1)~ GOTO WeponRestrictedConfirmed
    IF ~~ THEN REPLY ~Done with this part. Go back.~ GOTO GelTDia_Restrictions
END

IF ~~ THEN BEGIN WeponRestrictedConfirmed
  SAY ~Wepon restriction logged and set.~
    IF ~~ THEN REPLY ~Thanks.~ GOTO GelWeponRestrictions
END

IF ~~ THEN BEGIN GelArmorRestrictions
  SAY ~Chose what armor type to restrict~
    IF ~GlobalLT("AllArmorsRestricted","LOCALS",1)~ THEN REPLY ~All Armors(Helms, Gloves, Chest including robes)~ DO ~SetGlobal("AllArmorsRestricted","LOCALS",1)~ GOTO ArmorRestrictedConfirmed
    IF ~GlobalLT("ChestArmorsRestricted","LOCALS",1)~ THEN REPLY ~All Chest including robes~ DO ~SetGlobal("ChestArmorsRestricted","LOCALS",1)~ GOTO ArmorRestrictedConfirmed
    IF ~GlobalLT("FullPlateArmorsRestricted","LOCALS",1)~ THEN REPLY ~Full Plates~ DO ~SetGlobal("FullPlateArmorsRestricted","LOCALS",1)~ GOTO ArmorRestrictedConfirmed
    IF ~GlobalLT("PlateArmorsRestricted","LOCALS",1)~ THEN REPLY ~Plate~ DO ~SetGlobal("PlateArmorsRestricted","LOCALS",1)~ GOTO ArmorRestrictedConfirmed
    IF ~GlobalLT("SplintArmorsRestricted","LOCALS",1)~ THEN REPLY ~Splint~ DO ~SetGlobal("SplintArmorsRestricted","LOCALS",1)~ GOTO ArmorRestrictedConfirmed
    IF ~GlobalLT("ChainArmorsRestricted","LOCALS",1)~ THEN REPLY ~Chain~ DO ~SetGlobal("ChainArmorsRestricted","LOCALS",1)~ GOTO ArmorRestrictedConfirmed
    IF ~GlobalLT("StuddethArmorsRestricted","LOCALS",1)~ THEN REPLY ~Studdeth Leather~ DO ~SetGlobal("StuddethArmorsRestricted","LOCALS",1)~ GOTO ArmorRestrictedConfirmed
    IF ~GlobalLT("MetalChestArmorsRestricted","LOCALS",1)~ THEN REPLY ~All Metal Chest Armor~ DO ~SetGlobal("MetalChestArmorsRestricted","LOCALS",1)~ GOTO ArmorRestrictedConfirmed
    IF ~GlobalLT("HelmsRestricted","LOCALS",1)~ THEN REPLY ~Helmets~ DO ~SetGlobal("HelmsRestricted","LOCALS",1)~ GOTO ArmorRestrictedConfirmed
    IF ~GlobalLT("GlovesRestricted","LOCALS",1)~ THEN REPLY ~Gloves/Gauntlets~ DO ~SetGlobal("GlovesRestricted","LOCALS",1)~ GOTO ArmorRestrictedConfirmed
    IF ~~ THEN REPLY ~Done with this part. Go back.~ GOTO GelTDia_Restrictions
END

IF ~~ THEN BEGIN ArmorRestrictedConfirmed
  SAY ~Armor restriction logged and set.~
    IF ~~ THEN REPLY ~Thanks.~ GOTO GelArmorRestrictions
END

IF ~~ THEN BEGIN GelJewelRestrictions
  SAY ~Chose what Jewelry type to restrict~
    IF ~GlobalLT("AmuletRestricted","LOCALS",1)~ THEN REPLY ~Amulets~ DO ~SetGlobal("AmuletRestricted","LOCALS",1)~ GOTO JewelRestrictedConfirmed
    IF ~GlobalLT("RingsRestricted","LOCALS",1)~ THEN REPLY ~Rings~ DO ~SetGlobal("RingsRestricted","LOCALS",1)~ GOTO JewelRestrictedConfirmed
    IF ~GlobalLT("CloaksRestricted","LOCALS",1)~ THEN REPLY ~Cloaks and robes~ DO ~SetGlobal("CloaksRestricted","LOCALS",1)~ GOTO JewelRestrictedConfirmed
    IF ~GlobalLT("BootsRestricted","LOCALS",1)~ THEN REPLY ~Boots~ DO ~SetGlobal("BootsRestricted","LOCALS",1)~ GOTO JewelRestrictedConfirmed
    IF ~GlobalLT("BeltsRestricted","LOCALS",1)~ THEN REPLY ~Belts~ DO ~SetGlobal("BeltsRestricted","LOCALS",1)~ GOTO JewelRestrictedConfirmed
    IF ~~ THEN REPLY ~Done with this part. Go back.~ GOTO GelTDia_Restrictions
END

IF ~~ THEN BEGIN JewelRestrictedConfirmed
  SAY ~Jewelry restriction logged and set.~
    IF ~~ THEN REPLY ~Thanks.~ GOTO GelJewelRestrictions
END

IF ~~ THEN BEGIN GelTDia_AbilityPackage
  SAY ~Here you may choose to add some innate abilities~
    IF ~GlobalLT("GelHLAability","LOCALS",1)~ THEN REPLY ~List of HLA innate abilities~ DO ~SetGlobal("GelHLAability","LOCALS",1)~ GOTO GelHLAAbility
    IF ~GlobalLT("GelInnateAbility","LOCALS",1)~ THEN REPLY ~List of typical innate abilities~ DO ~SetGlobal("GelInnateAbility","LOCALS",1)~ GOTO GelInnateAbility
    IF ~GlobalLT("GelNecroPack","LOCALS",1)~ THEN REPLY ~I want a necromancer pack as innate abilities(live progression with levels), mainly touch attacks but a few skulltraps, animate deads and at higher levels a few horrid whitling and wail of banhsee.~ DO ~SetGlobal("GelNecroPack","LOCALS",1) ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelNecroPack1","LOCALS",1))~ GOTO GelNecroPackPicked
    IF ~GlobalLT("GelAllMonkPot","LOCALS",1)~ THEN REPLY ~I want all monk kit bonuses(same as all monk combined via kit changer).~ DO ~ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelSupMonk","LOCALS",1))~ GOTO GelMonkAbilitiesPicked
    IF ~~ THEN REPLY ~Im done. Go back.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelMiscRestrictions
  SAY ~Gel Misc Restrictions not implemented yet. Plan is wands, scrolls, potions etc.~
    IF ~~ THEN REPLY ~Oh, im sorry to hear that.~ GOTO GelTDia_Restrictions
END

IF ~~ THEN BEGIN GelNecroPackPicked
  SAY ~Necro Innate Abilities pack is added and will scale with levels.~
    IF ~~ THEN REPLY ~Thanks.~ GOTO GelTDia_AbilityPackage
END

IF ~~ THEN BEGIN GelMonkAbilitiesPicked
  SAY ~All monk kits Innate Abilities is added and will scale with levels.~
    IF ~~ THEN REPLY ~Thanks.~ GOTO GelTDia_AbilityPackage
END

IF ~~ THEN BEGIN GelHLAAbility
  SAY ~Choose which HLA ability to add~
    IF ~GlobalLT("GelGreaterWirlwind","LOCALS",1)~ THEN REPLY ~Greater Wirlwind~ DO ~SetGlobal("GelGreaterWirlwind","LOCALS",1)~ GOTO GelHLAChosen
    IF ~GlobalLT("GelGreaterDeathblow","LOCALS",1)~ THEN REPLY ~Greater Deathblow~ DO ~SetGlobal("GelGreaterDeathblow","LOCALS",1)~ GOTO GelHLAChosen
    IF ~GlobalLT("GelCriticalStrike","LOCALS",1)~ THEN REPLY ~Critical Strike~ DO ~SetGlobal("GelCriticalStrike","LOCALS",1)~ GOTO GelHLAChosen
    IF ~GlobalLT("GelHardiness","LOCALS",1)~ THEN REPLY ~Hardiness~ DO ~SetGlobal("GelHardiness","LOCALS",1)~ GOTO GelHLAChosen
    IF ~GlobalLT("GelPowerStrike","LOCALS",1)~ THEN REPLY ~Power Strike~ DO ~SetGlobal("GelPowerStrike","LOCALS",1)~ GOTO GelHLAChosen
    IF ~GlobalLT("GelSmite","LOCALS",1)~ THEN REPLY ~Smite~ DO ~SetGlobal("GelSmite","LOCALS",1)~ GOTO GelHLAChosen
    IF ~GlobalLT("GelFavouredByTheSpirits","LOCALS",1)~ THEN REPLY ~Favoured By The Spirits~ DO ~SetGlobal("GelFavouredByTheSpirits","LOCALS",1)~ GOTO GelHLAChosen
    IF ~GlobalLT("GelDeva","LOCALS",1)~ THEN REPLY ~Deva~ DO ~SetGlobal("GelDeva","LOCALS",1)~ GOTO GelHLAChosen
    IF ~GlobalLT("GelFallenDeva","LOCALS",1)~ THEN REPLY ~Fallen Deva~ DO ~SetGlobal("GelFallenDeva","LOCALS",1)~ GOTO GelHLAChosen
    IF ~GlobalLT("GelSpikeTrap","LOCALS",1) OR(2) Class(LastTalkedToBy(Myself),THIEF_ALL) Class(LastTalkedToBy(Myself),BARD)~ THEN REPLY ~Spike Trap~ DO ~SetGlobal("GelSpikeTrap","LOCALS",1)~ GOTO GelHLAChosen
    IF ~GlobalLT("GelTimeStopTrap","LOCALS",1) OR(2) Class(LastTalkedToBy(Myself),THIEF_ALL) Class(LastTalkedToBy(Myself),BARD)~ THEN REPLY ~Time Stop Trap~ DO ~SetGlobal("GelTimeStopTrap","LOCALS",1)~ GOTO GelHLAChosen
    IF ~GlobalLT("GelShapechangeFire","LOCALS",1)~ THEN REPLY ~Shapechange: Fire Elemental~ DO ~SetGlobal("GelShapechangeFire","LOCALS",1)~ GOTO GelHLAChosen
    IF ~GlobalLT("GelShapechangeEarth","LOCALS",1)~ THEN REPLY ~Shapechange: Earth Elemental~ DO ~SetGlobal("GelShapechangeEarth","LOCALS",1)~ GOTO GelHLAChosen
    IF ~~ THEN REPLY ~Im done with HLA abilities.~ GOTO GelTDia_AbilityPackage
END

IF ~~ THEN BEGIN GelHLAChosen
  SAY ~HLA Ability Added.~
    IF ~~ THEN REPLY ~Thanks.~ GOTO GelHLAAbility
END

IF ~~ THEN BEGIN GelInnateAbility
  SAY ~Chose innate abilities.~
    IF ~GlobalLT("GelBreathFire","LOCALS",1)~ THEN REPLY ~Breathe Fire~ DO ~SetGlobal("GelBreathFire","LOCALS",1)~ GOTO GelInnateAbilityChosen
    IF ~GlobalLT("GelPsionicBlast","LOCALS",1)~ THEN REPLY ~Psionic Blast~ DO ~SetGlobal("GelPsionicBlast","LOCALS",1)~ GOTO GelInnateAbilityChosen
//    IF ~GlobalLT("GelShapechangeGWerewolf","LOCALS",1)~ THEN REPLY ~Shapechange: Greater Werewolf~ DO ~SetGlobal("GelShapechangeGWerewolf","LOCALS",1)~ GOTO GelInnateAbilityChosen
    IF ~GlobalLT("GelShadowStep","LOCALS",1)~ THEN REPLY ~Shadow Step~ DO ~SetGlobal("GelShadowStep","LOCALS",1)~ GOTO GelInnateAbilityChosen
    IF ~GlobalLT("GelBarbarianRage","LOCALS",1)~ THEN REPLY ~Barbarian Rage~ DO ~SetGlobal("GelBarbarianRage","LOCALS",1)~ GOTO GelInnateAbilityChosen
    IF ~GlobalLT("GelBerserkerRage","LOCALS",1)~ THEN REPLY ~Berserker Rage~ DO ~SetGlobal("GelBerserkerRage","LOCALS",1)~ GOTO GelInnateAbilityChosen
    IF ~GlobalLT("GelKai","LOCALS",1)~ THEN REPLY ~Kai~ DO ~SetGlobal("GelKai","LOCALS",1)~ GOTO GelInnateAbilityChosen
    IF ~GlobalLT("GelCalledShot","LOCALS",1)~ THEN REPLY ~Called Shot~ DO ~SetGlobal("GelCalledShot","LOCALS",1)~ GOTO GelInnateAbilityChosen
    IF ~GlobalLT("GelBlindness","LOCALS",1)~ THEN REPLY ~Blindness~ DO ~SetGlobal("GelBlindness","LOCALS",1)~ GOTO GelInnateAbilityChosen
    IF ~GlobalLT("GelMirrorImmage","LOCALS",1)~ THEN REPLY ~Mirror Immage~ DO ~SetGlobal("GelMirrorImmage","LOCALS",1)~ GOTO GelInnateAbilityChosen
    IF ~GlobalLT("GelBlur","LOCALS",1)~ THEN REPLY ~Blur~ DO ~SetGlobal("GelBlur","LOCALS",1)~ GOTO GelInnateAbilityChosen
    IF ~GlobalLT("GelChillingFist","LOCALS",1)~ THEN REPLY ~Chilling Fists~ DO ~SetGlobal("GelChillingFist","LOCALS",1)~ GOTO GelInnateAbilityChosen
    IF ~GlobalLT("GelFlamingFist","LOCALS",1)~ THEN REPLY ~Flaming Fists~ DO ~SetGlobal("GelFlamingFist","LOCALS",1)~ GOTO GelInnateAbilityChosen
    IF ~~ THEN REPLY ~Im done with Innate abilities.~ GOTO GelTDia_AbilityPackage
END

IF ~~ THEN BEGIN GelInnateAbilityChosen
  SAY ~HLA Ability Added.~
    IF ~~ THEN REPLY ~Thanks.~ GOTO GelInnateAbility
END

IF ~~ THEN BEGIN GelTDia_Hitfactors
  SAY ~Choose what you want to modify. You can pick several categories here, then go back when you are done.~
    IF ~GlobalLT("GelThacoPicked","LOCALS",1)~ THEN REPLY ~THAC0~ DO ~SetGlobal("GelThacoPicked","LOCALS",1)~ GOTO GelTDia_Thaco
    IF ~GlobalLT("GelDamagePicked","LOCALS",1)~ THEN REPLY ~Damage (melee/ranged damage bonus)~ DO ~SetGlobal("GelDamagePicked","LOCALS",1)~ GOTO GelTDia_Damage
    IF ~GlobalLT("GelACPicked","LOCALS",1)~ THEN REPLY ~Armor Class (AC)~ DO ~SetGlobal("GelACPicked","LOCALS",1)~ GOTO GelTDia_AC
    IF ~GlobalLT("GelAPRPicked","LOCALS",1)~ THEN REPLY ~Attacks per round (APR)~ DO ~SetGlobal("GelAPRPicked","LOCALS",1)~ GOTO GelTDia_APR
    IF ~GlobalLT("GelSpeedPicked","LOCALS",1)~ THEN REPLY ~Speed Factor~ DO ~SetGlobal("GelSpeedPicked","LOCALS",1)~ GOTO GelTDia_AttackSpeed
    IF ~~ THEN REPLY ~Im done. Go back.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelTDia_Thaco
  SAY ~Choose your THAC0 modifier.~
    IF ~~ THEN REPLY ~-5 THAC0 Bonus (nerf)~ DO ~SetGlobal("GelThacoPos5","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-4 THAC0 Bonus (nerf)~ DO ~SetGlobal("GelThacoPos4","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-3 THAC0 Bonus (nerf)~ DO ~SetGlobal("GelThacoPos3","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-2 THAC0 Bonus (nerf)~ DO ~SetGlobal("GelThacoPos2","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-1 THAC0 Bonus (nerf)~ DO ~SetGlobal("GelThacoPos1","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+1 THAC0 Bonus (buff)~ DO ~SetGlobal("GelThacoNeg1","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+2 THAC0 Bonus (buff)~ DO ~SetGlobal("GelThacoNeg2","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+3 THAC0 Bonus (buff)~ DO ~SetGlobal("GelThacoNeg3","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+4 THAC0 Bonus (buff)~ DO ~SetGlobal("GelThacoNeg4","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+5 THAC0 Bonus (buff)~ DO ~SetGlobal("GelThacoNeg5","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Hitfactors
END

IF ~~ THEN BEGIN GelTDia_Damage
  SAY ~Choose your Damage modifier.~
    IF ~~ THEN REPLY ~-5 damage bonus (nerf)~ DO ~SetGlobal("GelDamageNeg5","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-4 damage bonus (nerf)~ DO ~SetGlobal("GelDamageNeg4","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-3 damage bonus (nerf)~ DO ~SetGlobal("GelDamageNeg3","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-2 damage bonus (nerf)~ DO ~SetGlobal("GelDamageNeg2","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-1 damage bonus (nerf)~ DO ~SetGlobal("GelDamageNeg1","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+1 damage bonus (buff)~ DO ~SetGlobal("GelDamagePos1","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+2 damage bonus (buff)~ DO ~SetGlobal("GelDamagePos2","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+3 damage bonus (buff)~ DO ~SetGlobal("GelDamagePos3","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+4 damage bonus (buff)~ DO ~SetGlobal("GelDamagePos4","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+5 damage bonus (buff)~ DO ~SetGlobal("GelDamagePos5","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Hitfactors
END

IF ~~ THEN BEGIN GelTDia_AC
  SAY ~Choose your AC modifier.~
    IF ~~ THEN REPLY ~-5 AC bonus (nerf)~ DO ~SetGlobal("GelACPos5","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-4 AC bonus (nerf)~ DO ~SetGlobal("GelACPos4","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-3 AC bonus (nerf)~ DO ~SetGlobal("GelACPos3","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-2 AC bonus (nerf)~ DO ~SetGlobal("GelACPos2","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-1 AC bonus (nerf)~ DO ~SetGlobal("GelACPos1","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+1 AC bonus (buff)~ DO ~SetGlobal("GelACNeg1","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+2 AC bonus (buff)~ DO ~SetGlobal("GelACNeg2","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+3 AC bonus (buff)~ DO ~SetGlobal("GelACNeg3","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+4 AC bonus (buff)~ DO ~SetGlobal("GelACNeg4","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+5 AC bonus (buff)~ DO ~SetGlobal("GelACNeg5","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Hitfactors
END

IF ~~ THEN BEGIN GelTDia_APR
  SAY ~Choose your Attacks Per Round (APR) modifier.~
    IF ~~ THEN REPLY ~-1 APR (nerf)~ DO ~SetGlobal("GelAPRNeg1","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+1 APR (buff)~ DO ~SetGlobal("GelAPRPos1","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+2 APR (buff)~ DO ~SetGlobal("GelAPRPos2","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+3 APR (buff)~ DO ~SetGlobal("GelAPRPos3","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Hitfactors
END

IF ~~ THEN BEGIN GelTDia_AttackSpeed
  SAY ~Choose your Speed Factor modifier.~
    IF ~~ THEN REPLY ~-5 speed factor bonus (nerf)~ DO ~SetGlobal("GelSpeedPos5","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-4 speed factor bonus (nerf)~ DO ~SetGlobal("GelSpeedPos4","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-3 speed factor bonus (nerf)~ DO ~SetGlobal("GelSpeedPos3","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-2 speed factor bonus (nerf)~ DO ~SetGlobal("GelSpeedPos2","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~-1 speed factor bonus (nerf)~ DO ~SetGlobal("GelSpeedPos1","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+1 speed factor bonus (buff)~ DO ~SetGlobal("GelSpeedNeg1","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+2 speed factor bonus (buff)~ DO ~SetGlobal("GelSpeedNeg2","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+3 speed factor bonus (buff)~ DO ~SetGlobal("GelSpeedNeg3","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+4 speed factor bonus (buff)~ DO ~SetGlobal("GelSpeedNeg4","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~+5 speed factor bonus (buff)~ DO ~SetGlobal("GelSpeedNeg5","LOCALS",1)~ GOTO GelTDia_Hitfactors
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Hitfactors
END

IF ~~ THEN BEGIN GelTDia_Resists
  SAY ~Choose any resist type to alter.~
    IF ~GlobalLT("GelFireResists","LOCALS",1)~ THEN REPLY ~Fire Resists~ DO ~SetGlobal("GelFireResists","LOCALS",1)~ GOTO GelFireResists
    IF ~GlobalLT("GelColdResists","LOCALS",1)~ THEN REPLY ~Cold Resists~ DO ~SetGlobal("GelColdResists","LOCALS",1)~ GOTO GelColdResists
    IF ~GlobalLT("GelLightningResists","LOCALS",1)~ THEN REPLY ~Lightning Resists~ DO ~SetGlobal("GelLightningResists","LOCALS",1)~ GOTO GelLightningResists
    IF ~GlobalLT("GelAcidResists","LOCALS",1)~ THEN REPLY ~Acid Resists~ DO ~SetGlobal("GelAcidResists","LOCALS",1)~ GOTO GelAcidResists
    IF ~GlobalLT("GelPoisonResists","LOCALS",1)~ THEN REPLY ~Poison Resists~ DO ~SetGlobal("GelPoisonResists","LOCALS",1)~ GOTO GelPoisonResists
    IF ~GlobalLT("GelMagicResists","LOCALS",1)~ THEN REPLY ~Magic Resists~ DO ~SetGlobal("GelMagicResists","LOCALS",1)~ GOTO GelMagicResists
    IF ~GlobalLT("GelMagicReduce","LOCALS",1)~ THEN REPLY ~Magic Damage Reduction~ DO ~SetGlobal("GelMagicReduce","LOCALS",1)~ GOTO GelMagicReduce
    IF ~GlobalLT("GelPhysicalResists","LOCALS",1)~ THEN REPLY ~Physical Damage Resistance~ DO ~SetGlobal("GelPhysicalResists","LOCALS",1)~ GOTO GelPhysicalResists
    IF ~~ THEN REPLY ~Im done. Go back.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelFireResists
  SAY ~Choose Fire Resistance modifier.~
    IF ~~ THEN REPLY ~-50% Fire Resistance (nerf)~ DO ~SetGlobal("GelFireResNeg50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-40% Fire Resistance (nerf)~ DO ~SetGlobal("GelFireResNeg40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-30% Fire Resistance (nerf)~ DO ~SetGlobal("GelFireResNeg30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-20% Fire Resistance (nerf)~ DO ~SetGlobal("GelFireResNeg20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-10% Fire Resistance (nerf)~ DO ~SetGlobal("GelFireResNeg10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+10% Fire Resistance (buff)~ DO ~SetGlobal("GelFireResPos10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+20% Fire Resistance (buff)~ DO ~SetGlobal("GelFireResPos20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+30% Fire Resistance (buff)~ DO ~SetGlobal("GelFireResPos30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+40% Fire Resistance (buff)~ DO ~SetGlobal("GelFireResPos40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+50% Fire Resistance (buff)~ DO ~SetGlobal("GelFireResPos50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Resists
END

IF ~~ THEN BEGIN GelColdResists
  SAY ~Choose Cold Resistance modifier.~
    IF ~~ THEN REPLY ~-50% Cold Resistance (nerf)~ DO ~SetGlobal("GelColdResNeg50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-40% Cold Resistance (nerf)~ DO ~SetGlobal("GelColdResNeg40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-30% Cold Resistance (nerf)~ DO ~SetGlobal("GelColdResNeg30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-20% Cold Resistance (nerf)~ DO ~SetGlobal("GelColdResNeg20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-10% Cold Resistance (nerf)~ DO ~SetGlobal("GelColdResNeg10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+10% Cold Resistance (buff)~ DO ~SetGlobal("GelColdResPos10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+20% Cold Resistance (buff)~ DO ~SetGlobal("GelColdResPos20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+30% Cold Resistance (buff)~ DO ~SetGlobal("GelColdResPos30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+40% Cold Resistance (buff)~ DO ~SetGlobal("GelColdResPos40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+50% Cold Resistance (buff)~ DO ~SetGlobal("GelColdResPos50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Resists
END

IF ~~ THEN BEGIN GelLightningResists
  SAY ~Choose Lightning Resistance modifier.~
    IF ~~ THEN REPLY ~-50% Lightning Resistance (nerf)~ DO ~SetGlobal("GelLightningResNeg50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-40% Lightning Resistance (nerf)~ DO ~SetGlobal("GelLightningResNeg40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-30% Lightning Resistance (nerf)~ DO ~SetGlobal("GelLightningResNeg30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-20% Lightning Resistance (nerf)~ DO ~SetGlobal("GelLightningResNeg20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-10% Lightning Resistance (nerf)~ DO ~SetGlobal("GelLightningResNeg10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+10% Lightning Resistance (buff)~ DO ~SetGlobal("GelLightningResPos10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+20% Lightning Resistance (buff)~ DO ~SetGlobal("GelLightningResPos20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+30% Lightning Resistance (buff)~ DO ~SetGlobal("GelLightningResPos30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+40% Lightning Resistance (buff)~ DO ~SetGlobal("GelLightningResPos40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+50% Lightning Resistance (buff)~ DO ~SetGlobal("GelLightningResPos50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Resists
END

IF ~~ THEN BEGIN GelAcidResists
  SAY ~Choose Acid Resistance modifier.~
    IF ~~ THEN REPLY ~-50% Acid Resistance (nerf)~ DO ~SetGlobal("GelAcidResNeg50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-40% Acid Resistance (nerf)~ DO ~SetGlobal("GelAcidResNeg40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-30% Acid Resistance (nerf)~ DO ~SetGlobal("GelAcidResNeg30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-20% Acid Resistance (nerf)~ DO ~SetGlobal("GelAcidResNeg20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-10% Acid Resistance (nerf)~ DO ~SetGlobal("GelAcidResNeg10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+10% Acid Resistance (buff)~ DO ~SetGlobal("GelAcidResPos10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+20% Acid Resistance (buff)~ DO ~SetGlobal("GelAcidResPos20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+30% Acid Resistance (buff)~ DO ~SetGlobal("GelAcidResPos30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+40% Acid Resistance (buff)~ DO ~SetGlobal("GelAcidResPos40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+50% Acid Resistance (buff)~ DO ~SetGlobal("GelAcidResPos50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Resists
END

IF ~~ THEN BEGIN GelPoisonResists
  SAY ~Choose Poison Resistance modifier.~  
    IF ~~ THEN REPLY ~-50% Poison Resistance (nerf)~ DO ~SetGlobal("GelPoisonResNeg50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-40% Poison Resistance (nerf)~ DO ~SetGlobal("GelPoisonResNeg40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-30% Poison Resistance (nerf)~ DO ~SetGlobal("GelPoisonResNeg30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-20% Poison Resistance (nerf)~ DO ~SetGlobal("GelPoisonResNeg20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-10% Poison Resistance (nerf)~ DO ~SetGlobal("GelPoisonResNeg10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+10% Poison Resistance (buff)~ DO ~SetGlobal("GelPoisonResPos10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+20% Poison Resistance (buff)~ DO ~SetGlobal("GelPoisonResPos20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+30% Poison Resistance (buff)~ DO ~SetGlobal("GelPoisonResPos30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+40% Poison Resistance (buff)~ DO ~SetGlobal("GelPoisonResPos40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+50% Poison Resistance (buff)~ DO ~SetGlobal("GelPoisonResPos50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Resists
END

IF ~~ THEN BEGIN GelMagicResists
  SAY ~Choose Magic Resistance modifier.~
    IF ~~ THEN REPLY ~-50% Magic Resistance (nerf)~ DO ~SetGlobal("GelMagicResNeg50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-40% Magic Resistance (nerf)~ DO ~SetGlobal("GelMagicResNeg40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-30% Magic Resistance (nerf)~ DO ~SetGlobal("GelMagicResNeg30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-20% Magic Resistance (nerf)~ DO ~SetGlobal("GelMagicResNeg20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-10% Magic Resistance (nerf)~ DO ~SetGlobal("GelMagicResNeg10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+10% Magic Resistance (buff)~ DO ~SetGlobal("GelMagicResPos10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+20% Magic Resistance (buff)~ DO ~SetGlobal("GelMagicResPos20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+30% Magic Resistance (buff)~ DO ~SetGlobal("GelMagicResPos30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+40% Magic Resistance (buff)~ DO ~SetGlobal("GelMagicResPos40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+50% Magic Resistance (buff)~ DO ~SetGlobal("GelMagicResPos50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Resists
END

IF ~~ THEN BEGIN GelMagicReduce
  SAY ~Choose Magic Damage Reduction modifier.~
    IF ~~ THEN REPLY ~-50% Magic Damage Reduction (nerf)~ DO ~SetGlobal("GelMagicRedNeg50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-40% Magic Damage Reduction (nerf)~ DO ~SetGlobal("GelMagicRedNeg40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-30% Magic Damage Reduction (nerf)~ DO ~SetGlobal("GelMagicRedNeg30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-20% Magic Damage Reduction (nerf)~ DO ~SetGlobal("GelMagicRedNeg20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-10% Magic Damage Reduction (nerf)~ DO ~SetGlobal("GelMagicRedNeg10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+10% Magic Damage Reduction (buff)~ DO ~SetGlobal("GelMagicRedPos10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+20% Magic Damage Reduction (buff)~ DO ~SetGlobal("GelMagicRedPos20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+30% Magic Damage Reduction (buff)~ DO ~SetGlobal("GelMagicRedPos30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+40% Magic Damage Reduction (buff)~ DO ~SetGlobal("GelMagicRedPos40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+50% Magic Damage Reduction (buff)~ DO ~SetGlobal("GelMagicRedPos50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Resists
END


IF ~~ THEN BEGIN GelPhysicalResists
  SAY ~Choose Physical Damage Resistance modifier.~
    IF ~~ THEN REPLY ~-50% Physical Damage Resistance (nerf)~ DO ~SetGlobal("GelPhysResNeg50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-40% Physical Damage Resistance (nerf)~ DO ~SetGlobal("GelPhysResNeg40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-30% Physical Damage Resistance (nerf)~ DO ~SetGlobal("GelPhysResNeg30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-20% Physical Damage Resistance (nerf)~ DO ~SetGlobal("GelPhysResNeg20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~-10% Physical Damage Resistance (nerf)~ DO ~SetGlobal("GelPhysResNeg10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+10% Physical Damage Resistance (buff)~ DO ~SetGlobal("GelPhysResPos10","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+20% Physical Damage Resistance (buff)~ DO ~SetGlobal("GelPhysResPos20","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+30% Physical Damage Resistance (buff)~ DO ~SetGlobal("GelPhysResPos30","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+40% Physical Damage Resistance (buff)~ DO ~SetGlobal("GelPhysResPos40","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~+50% Physical Damage Resistance (buff)~ DO ~SetGlobal("GelPhysResPos50","LOCALS",1)~ GOTO GelTDia_Resists
    IF ~~ THEN REPLY ~No change. Go back.~ GOTO GelTDia_Resists
END

IF ~~ THEN BEGIN GelTDia_Profiency
  SAY ~Choose to set a profiency to a custom value.
Extra important notice here!:
Putting points on level up in combination with spellgiven profience gives a stacking bug.
IF YOU DONT KNOW THE FULL CONTEXT OF THIS STACKING BUG, AND IF YOU HAVE NOT FULL CONTROL THAT YOU HAVE ENOUGHT FREE SPACES TO PUT PROFIENCE POINTS ON LEVEL UP YOU WILL HAVE ISSUES WITH STUCK IN LEVEL UP WINDOW, AS WELL AS WAY TO MANY PROFIENCE POINTS.
If you are unsure, dont use this feature. It is always safe to put profience points into a wepon types your character do not get profience points in on level ups.
It is also safe to use this after you have maxed a certain category.
Just never manually put a profiency point on level up in something you have given points to via this dialog.~
    IF ~~ THEN REPLY ~Okay, understood, I still want to set some profience points~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~I dont want to use this feature~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelTDia_Profiency1
  SAY ~Choose category~
    IF ~GlobalLT("GelProfTwohandedSwordPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Two Handed Swords~ DO ~SetGlobal("GelProfTwohandedSwordPot","LOCALS",1)~ GOTO GelProfPotTwohandedSwords
    IF ~GlobalLT("GelProfBastardSwordPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Bastard Swords~ DO ~SetGlobal("GelProfBastardSwordPot","LOCALS",1)~ GOTO GelProfPotBastardSwords
    IF ~GlobalLT("GelProfLongSwordPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Long Swords~ DO ~SetGlobal("GelProfLongSwordPot","LOCALS",1)~ GOTO GelProfPotLongSwords
    IF ~GlobalLT("GelProfShortSwordPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Short Swords~ DO ~SetGlobal("GelProfShortSwordPot","LOCALS",1)~ GOTO GelProfPotShortSwords
    IF ~GlobalLT("GelProfDaggersPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Daggers~ DO ~SetGlobal("GelProfDaggersPot","LOCALS",1)~ GOTO GelProfPotDaggers
    IF ~GlobalLT("GelProfKatanaPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Katana~ DO ~SetGlobal("GelProfKatanaPot","LOCALS",1)~ GOTO GelProfPotKatana
    IF ~GlobalLT("GelProfScimitarPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Scimitar / Wakizashi / Ninja-to~ DO ~SetGlobal("GelProfScimitarPot","LOCALS",1)~ GOTO GelProfPotScimitar
    IF ~GlobalLT("GelProfAxePot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Axes~ DO ~SetGlobal("GelProfAxePot","LOCALS",1)~ GOTO GelProfPotAxe
    IF ~GlobalLT("GelProfSpearPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Spears~ DO ~SetGlobal("GelProfSpearPot","LOCALS",1)~ GOTO GelProfPotSpear
    IF ~GlobalLT("GelProfHalberdPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Halberds~ DO ~SetGlobal("GelProfHalberdPot","LOCALS",1)~ GOTO GelProfPotHalberd
    IF ~GlobalLT("GelProfFlailPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Flails/Morningstars~ DO ~SetGlobal("GelProfFlailPot","LOCALS",1)~ GOTO GelProfPotFlail
    IF ~GlobalLT("GelProfMacePot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Maces~ DO ~SetGlobal("GelProfMacePot","LOCALS",1)~ GOTO GelProfPotMace
    IF ~GlobalLT("GelProfWarhammerPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to War Hammers~ DO ~SetGlobal("GelProfWarhammerPot","LOCALS",1)~ GOTO GelProfPotWarhammer
    IF ~GlobalLT("GelProfClubPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Clubs~ DO ~SetGlobal("GelProfClubPot","LOCALS",1)~ GOTO GelProfPotClub
    IF ~GlobalLT("GelProfQuarterstaffPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Quarterstaff~ DO ~SetGlobal("GelProfQuarterstaffPot","LOCALS",1)~ GOTO GelProfPotQuarterstaff
    IF ~GlobalLT("GelProfSlingPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Slings~ DO ~SetGlobal("GelProfSlingPot","LOCALS",1)~ GOTO GelProfPotSling
    IF ~GlobalLT("GelProfShortbowPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Shortbows~ DO ~SetGlobal("GelProfShortbowPot","LOCALS",1)~ GOTO GelProfPotShortbow
    IF ~GlobalLT("GelProfLongbowPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Longbows~ DO ~SetGlobal("GelProfLongbowPot","LOCALS",1)~ GOTO GelProfPotLongbow
    IF ~GlobalLT("GelProfCrossbowPot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Crossbows~ DO ~SetGlobal("GelProfCrossbowPot","LOCALS",1)~ GOTO GelProfPotCrossbow
    IF ~GlobalLT("GelProfTwoWeaponStylePot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Two-Weapon Style~ DO ~SetGlobal("GelProfTwoWeaponStylePot","LOCALS",1)~ GOTO GelProfPotTwoWeaponStyle
    IF ~GlobalLT("GelProfSingleWeaponStylePot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Single-Weapon Style~ DO ~SetGlobal("GelProfSingleWeaponStylePot","LOCALS",1)~ GOTO GelProfPotSingleWeaponStyle
    IF ~GlobalLT("GelProfSwordShieldStylePot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Sword and Shield Style~ DO ~SetGlobal("GelProfSwordShieldStylePot","LOCALS",1)~ GOTO GelProfPotSwordShieldStyle
    IF ~GlobalLT("GelProfTwoHandedStylePot","LOCALS",1)~ THEN REPLY ~I want to set a certain ammount to Two-Handed Weapon Style~ DO ~SetGlobal("GelProfTwoHandedStylePot","LOCALS",1)~ GOTO GelProfPotTwoHandedStyle
    IF ~~ THEN REPLY ~Im done. Go back.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelProfPotTwohandedSwords
  SAY ~Choose what to SET 2 handed swords profiency into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to twohanded swords profiency~ DO ~SetGlobal("GelTwoHandedSwordsProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to twohanded swords profiency~ DO ~SetGlobal("GelTwoHandedSwordsProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to twohanded swords profiency~ DO ~SetGlobal("GelTwoHandedSwordsProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to twohanded swords profiency~ DO ~SetGlobal("GelTwoHandedSwordsProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to twohanded swords profiency~ DO ~SetGlobal("GelTwoHandedSwordsProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotBastardSwords
  SAY ~Choose what to SET Bastard sword profiency into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Bastard swords profiency~ DO ~SetGlobal("GelBastardSwordsProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Bastard swords profiency~ DO ~SetGlobal("GelBastardSwordsProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Bastard swords profiency~ DO ~SetGlobal("GelBastardSwordsProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Bastard swords profiency~ DO ~SetGlobal("GelBastardSwordsProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Bastard swords profiency~ DO ~SetGlobal("GelBastardSwordsProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotLongSwords
  SAY ~Choose what to SET Long swords profiency into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Long swords profiency~ DO ~SetGlobal("GelLongSwordsProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Long swords profiency~ DO ~SetGlobal("GelLongSwordsProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Long swords profiency~ DO ~SetGlobal("GelLongSwordsProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Long swords profiency~ DO ~SetGlobal("GelLongSwordsProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Long swords profiency~ DO ~SetGlobal("GelLongSwordsProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotShortSwords
  SAY ~Choose what to SET Short swords profiency into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Short swords profiency~ DO ~SetGlobal("GelShortSwordsProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Short swords profiency~ DO ~SetGlobal("GelShortSwordsProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Short swords profiency~ DO ~SetGlobal("GelShortSwordsProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Short swords profiency~ DO ~SetGlobal("GelShortSwordsProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Short swords profiency~ DO ~SetGlobal("GelShortSwordsProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotDaggers
  SAY ~Choose what to SET Daggers profiency into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Daggers profiency~ DO ~SetGlobal("GelDaggersProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Daggers profiency~ DO ~SetGlobal("GelDaggersProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Daggers profiency~ DO ~SetGlobal("GelDaggersProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Daggers profiency~ DO ~SetGlobal("GelDaggersProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Daggers profiency~ DO ~SetGlobal("GelDaggersProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotKatana
  SAY ~Choose what to SET Katana profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Katana profiency~ DO ~SetGlobal("GelKatanaProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Katana profiency~ DO ~SetGlobal("GelKatanaProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Katana profiency~ DO ~SetGlobal("GelKatanaProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Katana profiency~ DO ~SetGlobal("GelKatanaProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Katana profiency~ DO ~SetGlobal("GelKatanaProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotScimitar
  SAY ~Choose what to SET Scimitar/Wakizashi/Ninja-two profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Scimitar/Wakizashi/Ninja-Two profiency~ DO ~SetGlobal("GelScimitarProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Scimitar/Wakizashi/Ninja-Two profiency~ DO ~SetGlobal("GelScimitarProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Scimitar/Wakizashi/Ninja-Two profiency~ DO ~SetGlobal("GelScimitarProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Scimitar/Wakizashi/Ninja-Two profiency~ DO ~SetGlobal("GelScimitarProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Scimitar/Wakizashi/Ninja-Two profiency~ DO ~SetGlobal("GelScimitarProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotAxe
  SAY ~Choose what to SET Axes profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Axes profiency~ DO ~SetGlobal("GelAxeProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Axes profiency~ DO ~SetGlobal("GelAxeProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Axes profiency~ DO ~SetGlobal("GelAxeProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Axes profiency~ DO ~SetGlobal("GelAxeProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Axes profiency~ DO ~SetGlobal("GelAxeProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotSpear
  SAY ~Choose what to SET Spears profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Spears profiency~ DO ~SetGlobal("GelSpearProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Spears profiency~ DO ~SetGlobal("GelSpearProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Spears profiency~ DO ~SetGlobal("GelSpearProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Spears profiency~ DO ~SetGlobal("GelSpearProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Spears profiency~ DO ~SetGlobal("GelSpearProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotHalberd
  SAY ~Choose what to SET Halberds profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Halberds profiency~ DO ~SetGlobal("GelHalbProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Halberds profiency~ DO ~SetGlobal("GelHalbProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Halberds profiency~ DO ~SetGlobal("GelHalbProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Halberds profiency~ DO ~SetGlobal("GelHalbProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Halberds profiency~ DO ~SetGlobal("GelHalbProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotFlail
  SAY ~Choose what to SET Flails/Morningstars profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Flails/Morningstars profiency~ DO ~SetGlobal("GelFlailProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Flails/Morningstars profiency~ DO ~SetGlobal("GelFlailProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Flails/Morningstars profiency~ DO ~SetGlobal("GelFlailProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Flails/Morningstars profiency~ DO ~SetGlobal("GelFlailProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Flails/Morningstars profiency~ DO ~SetGlobal("GelFlailProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotMace
  SAY ~Choose what to SET Maces profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Maces profiency~ DO ~SetGlobal("GelMaceProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Maces profiency~ DO ~SetGlobal("GelMaceProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Maces profiency~ DO ~SetGlobal("GelMaceProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Maces profiency~ DO ~SetGlobal("GelMaceProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Maces profiency~ DO ~SetGlobal("GelMaceProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotWarhammer
  SAY ~Choose what to SET War Hammers profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to War Hammers profiency~ DO ~SetGlobal("GelWHamProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to War Hammers profiency~ DO ~SetGlobal("GelWHamProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to War Hammers profiency~ DO ~SetGlobal("GelWHamProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to War Hammers profiency~ DO ~SetGlobal("GelWHamProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to War Hammers profiency~ DO ~SetGlobal("GelWHamProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotClub
  SAY ~Choose what to SET Clubs profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Clubs profiency~ DO ~SetGlobal("GelClubProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Clubs profiency~ DO ~SetGlobal("GelClubProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Clubs profiency~ DO ~SetGlobal("GelClubProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Clubs profiency~ DO ~SetGlobal("GelClubProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Clubs profiency~ DO ~SetGlobal("GelClubProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotQuarterstaff
  SAY ~Choose what to SET Quarterstaff profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Quarterstaff profiency~ DO ~SetGlobal("GelQStaProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Quarterstaff profiency~ DO ~SetGlobal("GelQStaProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Quarterstaff profiency~ DO ~SetGlobal("GelQStaProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Quarterstaff profiency~ DO ~SetGlobal("GelQStaProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Quarterstaff profiency~ DO ~SetGlobal("GelQStaProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotSling
  SAY ~Choose what to SET Slings profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Slings profiency~ DO ~SetGlobal("GelSlingProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Slings profiency~ DO ~SetGlobal("GelSlingProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Slings profiency~ DO ~SetGlobal("GelSlingProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Slings profiency~ DO ~SetGlobal("GelSlingProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Slings profiency~ DO ~SetGlobal("GelSlingProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotShortbow
  SAY ~Choose what to SET Shortbows profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Shortbows profiency~ DO ~SetGlobal("GelSBowProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Shortbows profiency~ DO ~SetGlobal("GelSBowProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Shortbows profiency~ DO ~SetGlobal("GelSBowProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Shortbows profiency~ DO ~SetGlobal("GelSBowProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Shortbows profiency~ DO ~SetGlobal("GelSBowProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotLongbow
  SAY ~Choose what to SET Longbows profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Longbows profiency~ DO ~SetGlobal("GelLBowProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Longbows profiency~ DO ~SetGlobal("GelLBowProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Longbows profiency~ DO ~SetGlobal("GelLBowProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Longbows profiency~ DO ~SetGlobal("GelLBowProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Longbows profiency~ DO ~SetGlobal("GelLBowProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotCrossbow
  SAY ~Choose what to SET Crossbows profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Crossbows profiency~ DO ~SetGlobal("GelXBowProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Crossbows profiency~ DO ~SetGlobal("GelXBowProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Crossbows profiency~ DO ~SetGlobal("GelXBowProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~4 to Crossbows profiency~ DO ~SetGlobal("GelXBowProfPos4","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~5 to Crossbows profiency~ DO ~SetGlobal("GelXBowProfPos5","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotTwoWeaponStyle
  SAY ~Choose what to SET Two-Weapon Style profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Two-Weapon Style profiency~ DO ~SetGlobal("GelTwoWeaponStyleProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Two-Weapon Style profiency~ DO ~SetGlobal("GelTwoWeaponStyleProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~3 to Two-Weapon Style profiency~ DO ~SetGlobal("GelTwoWeaponStyleProfPos3","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotSingleWeaponStyle
  SAY ~Choose what to SET Single-Weapon Style profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Single-Weapon Style profiency~ DO ~SetGlobal("GelSingleWeaponStyleProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Single-Weapon Style profiency~ DO ~SetGlobal("GelSingleWeaponStyleProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotSwordShieldStyle
  SAY ~Choose what to SET Sword and Shield Style profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Sword and Shield Style profiency~ DO ~SetGlobal("GelSwordShieldStyleProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Sword and Shield Style profiency~ DO ~SetGlobal("GelSwordShieldStyleProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelProfPotTwoHandedStyle
  SAY ~Choose what to SET Two Handed Wepon Style profience into. Mind this is not a increase function, its a SET function~
    IF ~~ THEN REPLY ~1 to Two-Handed Weapon Style profiency~ DO ~SetGlobal("GelTwoHandedStyleProfPos1","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~2 to Two-Handed Weapon Style profiency~ DO ~SetGlobal("GelTwoHandedStyleProfPos2","LOCALS",1)~ GOTO GelTDia_Profiency1
    IF ~~ THEN REPLY ~No change, go back~ GOTO GelTDia_Profiency1
END

IF ~~ THEN BEGIN GelTDia_Immunities
  SAY ~Here you may choose a immunity function.~
    IF ~GlobalLT("GelImmuneCharm","LOCALS",1)~ THEN REPLY ~Immunity to Charm and Domination effects.~ DO ~SetGlobal("GelImmuneCharm","LOCALS",1)~ GOTO GelImmunityChosen
    IF ~GlobalLT("GelImmuneFear","LOCALS",1)~ THEN REPLY ~Immunity to Fear.~ DO ~SetGlobal("GelImmuneFear","LOCALS",1)~ GOTO GelImmunityChosen
    IF ~GlobalLT("GelImmuneSleep","LOCALS",1)~ THEN REPLY ~Immunity to Sleep effects.~ DO ~SetGlobal("GelImmuneSleep","LOCALS",1)~ GOTO GelImmunityChosen
    IF ~GlobalLT("GelImmuneStun","LOCALS",1)~ THEN REPLY ~Immunity to Stun effects such as Hold / Paralyze and Psionic Blasts.~ DO ~SetGlobal("GelImmuneStun","LOCALS",1)~ GOTO GelImmunityChosen
    IF ~GlobalLT("GelImmuneDiseases","LOCALS",1)~ THEN REPLY ~Immunity to Diseases.~ DO ~SetGlobal("GelImmuneDiseases","LOCALS",1)~ GOTO GelImmunityChosen
    IF ~GlobalLT("GelImmuneLvlDrain","LOCALS",1)~ THEN REPLY ~Immunity to Level Drain.~ DO ~SetGlobal("GelImmuneLvlDrain","LOCALS",1)~ GOTO GelImmunityChosen
    IF ~GlobalLT("GelImmuneFreeAction","LOCALS",1)~ THEN REPLY ~Effect: Free action. Prevents movement-altering effects, includes haste effects etc.~ DO ~SetGlobal("GelImmuneFreeAction","LOCALS",1)~ GOTO GelImmunityChosen
    IF ~~ THEN REPLY ~Im done. Go back.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelImmunityChosen
  SAY ~Immunity chosen and removed from list of choices.~
    IF ~~ THEN REPLY ~Thanks.~ GOTO GelTDia_Immunities
END

IF ~~ THEN BEGIN GelTDia_Movement
  SAY ~So, you want to modify your movement?~
    IF ~~ THEN REPLY ~Yes please.~ GOTO GelMovementChoice
    IF ~~ THEN REPLY ~No. Go back.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelMovementChoice
  SAY ~Choose a value for your movement modifications.~
    IF ~~ THEN REPLY ~+2 to move speed~ DO ~SetGlobal("GelMoveMentBonus2","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~+4 to move speed~ DO ~SetGlobal("GelMoveMentBonus4","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~+6 to move speed~ DO ~SetGlobal("GelMoveMentBonus6","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~Double my move speed~ DO ~SetGlobal("GelMoveMentBonusx2","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~No. I do not want it afterall..~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelTDia_Godmode
  SAY ~Oh, so we are playing hard today. The choice is yours.~
    IF ~~ THEN REPLY ~I want permanent Improved Alacricity~ DO ~SetGlobal("GelImprovedAlacricity","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~I want permanent Use Any Item~ DO ~SetGlobal("GelUseAnyItem","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~I want permanent Improved Alacricity AND Use Any Item~ DO ~SetGlobal("GelIA_UAI","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~No. I this is a bit to powerfull for me.~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelTDia_SavingThrows
  SAY ~Chose a saving throw bonus. Save vs all is the function.~
    IF ~~ THEN REPLY ~-2 bonus to saving throws (NERF)~ DO ~SetGlobal("GelSavingThrowsNeg2","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~-1 bonus to saving throws (NERF)~ DO ~SetGlobal("GelSavingThrowsNeg1","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~+1 bonus to saving throws (BUFF)~ DO ~SetGlobal("GelSavingThrowsPos1","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~+2 bonus to saving throws (BUFF)~ DO ~SetGlobal("GelSavingThrowsPos2","LOCALS",1)~ GOTO GelPotionOfChoices
    IF ~~ THEN REPLY ~No. I do not want it afterall..~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelTDia_XPNerf
  SAY ~Choose your experience gained % penalty, theese will overwrite eachothers if previous chosen~
    IF ~GlobalLT("GelXpChosen","LOCALS",1)~ THEN REPLY ~0%~ DO ~SetGlobal("GelXpChosen","LOCALS",1) ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelXp0","LOCALS",1))~ GOTO GelXpChosenConfirmed
    IF ~GlobalLT("GelXpChosen","LOCALS",1)~ THEN REPLY ~10%~ DO ~SetGlobal("GelXpChosen","LOCALS",1) ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelXp10","LOCALS",1))~ GOTO GelXpChosenConfirmed
    IF ~GlobalLT("GelXpChosen","LOCALS",1)~ THEN REPLY ~20%~ DO ~SetGlobal("GelXpChosen","LOCALS",1) ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelXp20","LOCALS",1))~ GOTO GelXpChosenConfirmed
    IF ~GlobalLT("GelXpChosen","LOCALS",1)~ THEN REPLY ~30%~ DO ~SetGlobal("GelXpChosen","LOCALS",1) ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelXp30","LOCALS",1))~ GOTO GelXpChosenConfirmed
    IF ~GlobalLT("GelXpChosen","LOCALS",1)~ THEN REPLY ~34%~ DO ~SetGlobal("GelXpChosen","LOCALS",1) ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelXp34","LOCALS",1))~ GOTO GelXpChosenConfirmed
    IF ~GlobalLT("GelXpChosen","LOCALS",1)~ THEN REPLY ~40%~ DO ~SetGlobal("GelXpChosen","LOCALS",1) ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelXp40","LOCALS",1))~ GOTO GelXpChosenConfirmed
    IF ~GlobalLT("GelXpChosen","LOCALS",1)~ THEN REPLY ~50%~ DO ~SetGlobal("GelXpChosen","LOCALS",1) ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelXp50","LOCALS",1))~ GOTO GelXpChosenConfirmed
    IF ~GlobalLT("GelXpChosen","LOCALS",1)~ THEN REPLY ~60%~ DO ~SetGlobal("GelXpChosen","LOCALS",1) ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelXp60","LOCALS",1))~ GOTO GelXpChosenConfirmed
    IF ~GlobalLT("GelXpChosen","LOCALS",1)~ THEN REPLY ~66%~ DO ~SetGlobal("GelXpChosen","LOCALS",1) ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelXp66","LOCALS",1))~ GOTO GelXpChosenConfirmed
    IF ~GlobalLT("GelXpChosen","LOCALS",1)~ THEN REPLY ~70%~ DO ~SetGlobal("GelXpChosen","LOCALS",1) ActionOverride(LastTalkedToBy(Myself),SetGlobal("GelXp70","LOCALS",1))~ GOTO GelXpChosenConfirmed
    IF ~~ THEN REPLY ~Nah, I don't want this~ GOTO GelPotionOfChoices
END

IF ~~ THEN BEGIN GelXpChosenConfirmed
  SAY ~XP% gained ammount chosen.~
    IF ~~ THEN REPLY ~Thanks.~ GOTO GelPotionOfChoices
END

///https://gibberlings3.github.io/iesdp/files/ids/bgee/kit.htm