IF
Global("BodhiStronghold","GLOBAL",2)
Global("AcquiredFood01","GLOBAL",1)
Global("AcquiredFood02","GLOBAL",1) 
Global("AcquiredFood03","GLOBAL",1) 
Global("AcquiredFood04","GLOBAL",1) 
Global("AcquiredFood05","GLOBAL",1) 
Global("AcquiredFood06","GLOBAL",1) 
Global("AcquiredFood07","GLOBAL",1) 
Global("AcquiredFood08","GLOBAL",1) 
Global("AcquiredFood09","GLOBAL",1) 
Global("AcquiredFood10","GLOBAL",1) 
Global("AcquiredFood11","GLOBAL",1) 
Global("AcquiredFood12","GLOBAL",1) 
Global("FeastStarted","GLOBAL",1)
THEN
	RESPONSE #100
        SetGlobal("FeastStarted","GLOBAL",2)
END





IF 
  Global("Entered","AR0808",0)
  Global("BodhiStronghold","GLOBAL",2)
THEN
  RESPONSE #100
  SetGlobal("Entered","AR0808",2)
END
  
IF 
  Global("BodhiStronghold","GLOBAL",2)
  Global("BodhiStrongholdInit","AR0808",0)
THEN
 RESPONSE #100
SetRestEncounterProbabilityDay(0)
SetRestEncounterProbabilityNight(0)
TriggerActivation("Spike01",FALSE)
TriggerActivation("Spike02",FALSE)
TriggerActivation("Spike03",FALSE)
TriggerActivation("Spike04",FALSE)
TriggerActivation("Spike05",FALSE)
Unlock("DOOR01")
SetGlobal("BodhiStrongholdInit","AR0808",1)
END  
  
  
IF
	HasItem("VVHTANOV","Container6")
	Delay(5)
	HasItem("VVHTANOV","Container6")
THEN
	RESPONSE #100
	SetGlobal("TanovaResurrected","GLOBAL",1)
		ActionOverride("Container6",DestroyItem("VVHTANOV"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("C6TANOV",[2752.672],S)
		ActionOverride("C6TANOV",DestroyItem("VVHTANOV"))			
		
		ActionOverride("C6TANOV",SetDialog("BSTANOVA"))
		
		ActionOverride("C6TANOV",ChangeAIScript("BSTANOVA",OVERRIDE))
		ActionOverride("C6TANOV",ChangeAIScript("",CLASS))
		ActionOverride("C6TANOV",ChangeAIScript("",RACE))
		ActionOverride("C6TANOV",ChangeAIScript("",GENERAL))
		ActionOverride("C6TANOV",ChangeAIScript("",DEFAULT))
		
		ChangeEnemyAlly("C6TANOV",NEUTRAL)
		ActionOverride("C6TANOV",StartDialogueNoSet(Player1))
		Continue()
END



IF
	HasItem("VVHDURST","Container6")
	Delay(5)
	HasItem("VVHDURST","Container6")
THEN
	RESPONSE #100
	SetGlobal("DurstResurrected","GLOBAL",1)

	ActionOverride("Container6",DestroyItem("VVHDURST"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("BODVAM01",[2752.672],S)
		ActionOverride("BODVAM01",DestroyItem("VVHDURST"))				
		ChangeEnemyAlly("BODVAM01",NEUTRAL)		

		
		ActionOverride("BODVAM01",SetDialog("BSDURST"))
		ActionOverride("BODVAM01",ChangeAIScript("BSDURST",OVERRIDE))
		ActionOverride("BODVAM01",ChangeAIScript("",CLASS))
		ActionOverride("BODVAM01",ChangeAIScript("",RACE))
		ActionOverride("BODVAM01",ChangeAIScript("",GENERAL))
		ActionOverride("BODVAM01",ChangeAIScript("",DEFAULT))

		ActionOverride("BODVAM01",StartDialogueNoSet(Player1))		
		Continue()
END






IF
	HasItem("VVHGELAL","Container6")
	Delay(5)
	HasItem("VVHGELAL","Container6")
THEN
	RESPONSE #100
		SetGlobal("GellalResurrected","GLOBAL",1)

		ActionOverride("Container6",DestroyItem("VVHGELAL"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("BODVAM02",[2752.672],S)
		ActionOverride("BODVAM02",DestroyItem("VVHGELAL"))			

		ChangeEnemyAlly("BODVAM02",NEUTRAL)
		
		ActionOverride("BODVAM02",SetDialog("BSGELLAL"))
		ActionOverride("BODVAM02",ChangeAIScript("BSGELLAL",OVERRIDE))
		ActionOverride("BODVAM02",ChangeAIScript("",CLASS))
		ActionOverride("BODVAM02",ChangeAIScript("",RACE))
		ActionOverride("BODVAM02",ChangeAIScript("",GENERAL))
		ActionOverride("BODVAM02",ChangeAIScript("",DEFAULT))		
		
		ActionOverride("BODVAM02",StartDialogueNoSet(Player1))			
		Continue()
END




IF
	HasItem("VVHGUARD","Container6")
	Delay(5)
	HasItem("VVHGUARD","Container6")
THEN
	RESPONSE #100
			SetGlobal("GuardResurrected","GLOBAL",1)
		ActionOverride("Container6",DestroyItem("VVHGUARD"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("C6BGUARD",[2752.672],S)
		ActionOverride("C6BGUARD",DestroyItem("VVHGUARD"))			

		ChangeEnemyAlly("C6BGUARD",NEUTRAL)
		
		ActionOverride("C6BGUARD",SetDialog("BSBGUARD"))
		ActionOverride("C6BGUARD",ChangeAIScript("BSBGUARD",OVERRIDE))
		ActionOverride("C6BGUARD",ChangeAIScript("",CLASS))
		ActionOverride("C6BGUARD",ChangeAIScript("",RACE))
		ActionOverride("C6BGUARD",ChangeAIScript("",GENERAL))
		ActionOverride("C6BGUARD",ChangeAIScript("",DEFAULT))			
		
		ActionOverride("C6BGUARD",StartDialogueNoSet(Player1))			
		Continue()
END




IF
	HasItem("VVHLANA","Container6")
	Delay(5)
	HasItem("VVHLANA","Container6")
THEN
	RESPONSE #100
			SetGlobal("DelResurrected","GLOBAL",1)	
		ActionOverride("Container6",DestroyItem("VVHLANA"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("C6DEL",[2752.672],S)
		ActionOverride("C6DEL",DestroyItem("VVHLANA"))			

		ChangeEnemyAlly("C6DEL",NEUTRAL)
		
		ActionOverride("C6DEL",SetDialog("BSDEL"))
		ActionOverride("C6DEL",ChangeAIScript("BSDEL",OVERRIDE))
		ActionOverride("C6DEL",ChangeAIScript("",CLASS))
		ActionOverride("C6DEL",ChangeAIScript("",RACE))
		ActionOverride("C6DEL",ChangeAIScript("",GENERAL))
		ActionOverride("C6DEL",ChangeAIScript("",DEFAULT))			
		
		ActionOverride("C6DEL",StartDialogueNoSet(Player1))		
		Continue()
END




IF
	HasItem("VVHDULC","Container6")
	Delay(5)
	HasItem("VVHDULC","Container6")
THEN
	RESPONSE #100
			SetGlobal("HareishanResurrected","GLOBAL",1)	
		ActionOverride("Container6",DestroyItem("VVHDULC"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("C6HAREI",[2752.672],S)
		ActionOverride("C6HAREI",DestroyItem("VVHDULC"))			

		ChangeEnemyAlly("C6HAREI",NEUTRAL)
		
		ActionOverride("C6HAREI",SetDialog("BSHAREI"))
		ActionOverride("C6HAREI",ChangeAIScript("BSHAREI",OVERRIDE))
		ActionOverride("C6HAREI",ChangeAIScript("",CLASS))
		ActionOverride("C6HAREI",ChangeAIScript("",RACE))
		ActionOverride("C6HAREI",ChangeAIScript("",GENERAL))
		ActionOverride("C6HAREI",ChangeAIScript("",DEFAULT))		
		
		ActionOverride("C6HAREI",StartDialogueNoSet(Player1))			
		Continue()
END


IF
	HasItem("VVHPARIS","Container6")
	Delay(5)
	HasItem("VVHPARIS","Container6")
THEN
	RESPONSE #100
				SetGlobal("ParisaResurrected","GLOBAL",1)	
		ActionOverride("Container6",DestroyItem("VVHPARIS"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("PPPARIS",[2752.672],S)
		ActionOverride("PPPARIS",DestroyItem("VVHPARIS"))			

		ChangeEnemyAlly("PPPARIS",NEUTRAL)

		ActionOverride("PPPARIS",SetDialog("BSPARISA"))
		ActionOverride("PPPARIS",ChangeAIScript("BSPARISA",OVERRIDE))
		ActionOverride("PPPARIS",ChangeAIScript("",CLASS))
		ActionOverride("PPPARIS",ChangeAIScript("",RACE))
		ActionOverride("PPPARIS",ChangeAIScript("",GENERAL))
		ActionOverride("PPPARIS",ChangeAIScript("",DEFAULT))	

		ActionOverride("PPPARIS",StartDialogueNoSet(Player1))		
		Continue()
END



IF
	HasItem("VVHULVAR","Container6")
	Delay(5)
	HasItem("VVHULVAR","Container6")
THEN
	RESPONSE #100
				SetGlobal("UlvarylResurrected","GLOBAL",1)	
		ActionOverride("Container6",DestroyItem("VVHULVAR"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("ULVARYL",[2752.672],S)
		ActionOverride("ULVARYL",DestroyItem("VVHULVAR"))				

		ChangeEnemyAlly("ULVARYL",NEUTRAL)

		ActionOverride("ULVARYL",SetDialog("BSULVAR"))
		ActionOverride("ULVARYL",ChangeAIScript("BSULVAR",OVERRIDE))
		ActionOverride("ULVARYL",ChangeAIScript("",CLASS))
		ActionOverride("ULVARYL",ChangeAIScript("",RACE))
		ActionOverride("ULVARYL",ChangeAIScript("",GENERAL))
		ActionOverride("ULVARYL",ChangeAIScript("",DEFAULT))	


		ActionOverride("ULVARYL",StartDialogueNoSet(Player1))			
		Continue()
END




IF
	HasItem("VVHSALIA","Container6")
	Delay(5)
	HasItem("VVHSALIA","Container6")
THEN
	RESPONSE #100
				SetGlobal("SaliaResurrected","GLOBAL",1)	
		ActionOverride("Container6",DestroyItem("VVHSALIA"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("C6SALIA",[2752.672],S)
		ActionOverride("C6SALIA",DestroyItem("VVHSALIA"))			

		ChangeEnemyAlly("C6SALIA",NEUTRAL)
		
		ActionOverride("C6SALIA",SetDialog("BSSALIA"))
		ActionOverride("C6SALIA",ChangeAIScript("BSSALIA",OVERRIDE))
		ActionOverride("C6SALIA",ChangeAIScript("",CLASS))
		ActionOverride("C6SALIA",ChangeAIScript("",RACE))
		ActionOverride("C6SALIA",ChangeAIScript("",GENERAL))
		ActionOverride("C6SALIA",ChangeAIScript("",DEFAULT))		
		
		ActionOverride("C6SALIA",StartDialogueNoSet(Player1))
		Continue()
END





IF
	HasItem("VVHCOHN","Container6")
	Delay(5)
	HasItem("VVHCOHN","Container6")
THEN
	RESPONSE #100
				SetGlobal("CohnResurrected","GLOBAL",1)	
		ActionOverride("Container6",DestroyItem("VVHCOHN"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("COHNTA",[2752.672],S)
		ActionOverride("COHNTA",DestroyItem("VVHCOHN"))			

		ChangeEnemyAlly("COHNTA",NEUTRAL)

		ActionOverride("COHNTA",SetDialog("BSCOHN"))
		ActionOverride("COHNTA",ChangeAIScript("BSCOHN",OVERRIDE))
		ActionOverride("COHNTA",ChangeAIScript("",CLASS))
		ActionOverride("COHNTA",ChangeAIScript("",RACE))
		ActionOverride("COHNTA",ChangeAIScript("",GENERAL))
		ActionOverride("COHNTA",ChangeAIScript("",DEFAULT))	


		ActionOverride("COHNTA",StartDialogueNoSet(Player1))			
		Continue()
END




IF
	HasItem("VVHMERED","Container6")
	Delay(5)
	HasItem("VVHMERED","Container6")
THEN
	RESPONSE #100
				SetGlobal("MeredathResurrected","GLOBAL",1)	
		ActionOverride("Container6",DestroyItem("VVHMERED"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("C6MERE",[2752.672],S)
		ActionOverride("C6MERE",DestroyItem("VVHMERED"))		

		ChangeEnemyAlly("C6MERE",NEUTRAL)

		ActionOverride("C6MERE",SetDialog("BSMERED"))
		ActionOverride("C6MERE",ChangeAIScript("BSMERED",OVERRIDE))
		ActionOverride("C6MERE",ChangeAIScript("",CLASS))
		ActionOverride("C6MERE",ChangeAIScript("",RACE))
		ActionOverride("C6MERE",ChangeAIScript("",GENERAL))
		ActionOverride("C6MERE",ChangeAIScript("",DEFAULT))		
		
		ActionOverride("C6MERE",StartDialogueNoSet(Player1))			
		Continue()
END





IF
	HasItem("VVHLASAL","Container6")
	Delay(5)
	HasItem("VVHLASAL","Container6")
THEN
	RESPONSE #100
				SetGlobal("LassalResurrected","GLOBAL",1)	
		ActionOverride("Container6",DestroyItem("VVHLASAL"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("LASSAL",[2752.672],S)
		ActionOverride("LASSAL",DestroyItem("VVHLASAL"))		

		ChangeEnemyAlly("LASSAL",NEUTRAL)

		ActionOverride("LASSAL",SetDialog("BSLASSAL"))
		ActionOverride("LASSAL",ChangeAIScript("BSLASSAL",OVERRIDE))
		ActionOverride("LASSAL",ChangeAIScript("",CLASS))
		ActionOverride("LASSAL",ChangeAIScript("",RACE))
		ActionOverride("LASSAL",ChangeAIScript("",GENERAL))
		ActionOverride("LASSAL",ChangeAIScript("",DEFAULT))	

		ActionOverride("LASSAL",StartDialogueNoSet(Player1))		
		Continue()
END


IF
	HasItem("MOSCDBF","Container6")
	Delay(5)
	HasItem("MOSCDBF","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MOSCDBF"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2GHOUL",[2752.672],S)
		Continue()
END


IF
	HasItem("MOSCDBM","Container6")
	Delay(5)
	HasItem("MOSCDBM","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MOSCDBM"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2GHOUL",[2752.672],S)
		Continue()
END


IF
	HasItem("MISC65","Container6")
	Delay(5)
	HasItem("MISC65","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MISC65"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2SKELM",[2752.672],S)
		Continue()
END


IF
	HasItem("MISC66","Container6")
	Delay(5)
	HasItem("MISC66","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MISC66"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2GHOUL",[2752.672],S)
		Continue()
END

IF
	HasItem("BDBODY04","Container6")
	Delay(5)
	HasItem("BDBODY04","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("BDBODY04"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2ZOMBI",[2752.672],S)
		Continue()
END

IF
	HasItem("MISC79_","Container6")
	Delay(5)
	HasItem("MISC79_","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MISC79_"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2ZOMBI",[2752.672],S)
		Continue()
END

IF
	HasItem("MISC80","Container6")
	Delay(5)
	HasItem("MISC80","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MISC80"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2ZOMBI",[2752.672],S)
		Continue()
END









IF
	HasItem("BDBODY01","Container6")
	Delay(5)
	HasItem("BDBODY01","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("BDBODY01"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2ZOMBI",[2752.672],S)
		Continue()
END


IF
	HasItem("MISC90","Container6")
	Delay(5)
	HasItem("MISC90","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MISC90"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2ZOMBI",[2752.672],S)
		Continue()
END



IF
	HasItem("MISC1E","Container6")
	Delay(5)
	HasItem("MISC1E","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MISC1E"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2ZOMBI",[2752.672],S)
		Continue()
END



IF
	HasItem("MISC5F","Container6")
	Delay(5)
	HasItem("MISC5F","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MISC5F"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2SKELM",[2752.672],S)
		Continue()
END


IF
	HasItem("BDBODY02","Container6")
	Delay(5)
	HasItem("BDBODY02","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("BDBODY02"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2GHOUL",[2752.672],S)
		Continue()
END


IF
	HasItem("MISC5M","Container6")
	Delay(5)
	HasItem("MISC5M","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MISC5M"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2GHOUL",[2752.672],S)
		Continue()
END

IF
	HasItem("BDBODY03","Container6")
	Delay(5)
	HasItem("BDBODY03","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("BDBODY03"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2GHOUL",[2752.672],S)
		Continue()
END




IF
	HasItem("MISC55","Container6")
	Delay(5)
	HasItem("MISC55","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MISC55"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2GHOUL",[2752.672],S)
		Continue()
END











IF
	HasItem("MISC7L","Container6")
	Delay(5)
	HasItem("MISC7L","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MISC7L"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2GHOUL",[2752.672],S)
		Continue()
END


IF
	HasItem("MISC5U","Container6")
	Delay(5)
	HasItem("MISC5U","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("MISC5U"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		CreateCreature("VV2GHOUL",[2752.672],S)
		Continue()
END





