#library "Levelrand"
#include "zcommon.acs"
/*
script "delayscript" OPEN
{
	delay(10);
	ACS_NamedExecute("testing", 0);
	delay(10);
	ACS_NamedExecute("damn", 0);
}*/
script "damn" ENTER
{
  str mappack1=StrLeft(StrParam(n:PRINTNAME_LEVEL),3);
  str mappack;
  str mappacknum=StrRight(StrParam(n:PRINTNAME_LEVEL),2);
  if (mappacknum=="RA"){mappacknum="Special";};
  if (mappack1=="MM1"){mappack="Memento Mori I";};
  if (mappack1=="MM2"){mappack="Memento Mori II";};
  if (mappack1=="MMS"){mappack="Memento Mori Special";};
  if (mappack1=="INS"){mappack="Insertion";};
  if (mappack1=="REQ"){mappack="Requiem";};
  if (mappack1=="OBT"){mappack="Obituary";};
  if (mappack1=="STR"){mappack="Strain";};
  if (mappack1=="BIO"){mappack="Biowar";};
  if (mappack1=="DRK"){mappack="The Darkening";};
  if (mappack1=="TTP"){mappack="The Trooper's Playground";};
  if (mappack1=="PGR"){mappack="Perdition's Gate";};
  if (mappack1=="TVR"){mappack="Revolution!";};
  if (mappack1=="PST"){mappack="Post";};
  if (mappack1=="SCI"){mappack="Scientist";};
  if (mappack1=="ICA"){mappack="Icarus: Alien Vanguard";};
  if (mappack1=="HTP"){mappack="Hell To Pay";};
  if (mappack1=="ABY"){mappack="The Abyss";};
  if (mappack1=="REB"){mappack="The Rebirth";};
  if (mappack1=="DCV"){mappack="Dark Covenant";};
  if (mappack1=="TAL"){mappack="The Talosian Incident";};
  if (mappack1=="ALH"){mappack="All Hell Is Breaking Loose!";};
  if (mappack1=="SCY"){mappack="Scythe";};
  if (mappack1=="NJZ"){mappack="Enjay ZDoom";};
  if (mappack1=="RUI"){mappack="The Brotherhood Of Ruin";};
  if (mappack1=="EQU"){mappack="Equinox";};
  if (mappack1=="VFL"){mappack="Vile Flesh";};
  if (mappack1=="VCO"){mappack="The Vilecore";};
  if (mappack1=="BLR"){mappack="Bloodrust";};
  if (mappack1=="ASD"){mappack="ASDOOM II: The Final Countdown";};
  if (mappack1=="DYS"){mappack="Dystopia 3";};
  if (mappack1=="SLA"){mappack="Slayer";};
  if (mappack1=="LEP"){mappack="Last Day On Earth";};
  if (mappack1=="ETE"){mappack="Eternal Doom";};
  if (mappack1=="DK2"){mappack="The Darkening 2";};
  if (mappack1=="OSI"){mappack="Osiris";};
  if (mappack1=="PLE"){mappack="Pleadies";};
  if (mappack1=="GAT"){mappack="The Final Gathering";};
  if (mappack1=="ERT"){mappack="Earth";};
  if (mappack1=="TNT"){mappack="TNT: Evilution";};
  if (mappack1=="CLE"){mappack="Cleimos";};
  if (mappack1=="END"){mappack="Endgame";};
  if (mappack1=="RES"){mappack="Doom: Resurrection";};
  if (mappack1=="TW2"){mappack="The Twilight Zone II";};
  if (mappack1=="INS"){mappack="Insertion";};
  if (mappack1=="NEO"){mappack="NeoDoom";};
  if (mappack1=="LEP"){mappack="Last Day On Earth";};
  if (mappack1=="MAP"){mappack="Doom 2";};
  if (mappack1=="GDW"){mappack="Going Down";};
  if (mappack1=="CC1"){mappack="Community Chest";};
  if (mappack1=="NV1"){mappack="NOVA: The Birth";};
  if (mappack1=="KSS"){mappack="Khorus' Speedy Shit";};
  if (mappack1=="AVD"){mappack="Alien Vendetta";};
  if (mappack1=="TSP01"){PrintBold(s:"Extra hard map - The Spire");}
  else{
  if (mappack1=="TSP02"){PrintBold(s:"Extra hard map - The Spire 2");}
  else{
  if (mappack1=="EYE01"){PrintBold(s:"Extra hard map - The Eye");}
  else{
  if(StrParam(n:PRINTNAME_LEVEL)!="MAP01")
  {
  if(CheckInventory("MAP03Token")>0)
  {
  TakeInventory("MAP03Token",1);
  }
  if(CheckInventory("MAP02Token")>0)
  {
  TakeInventory("MAP02Token",1);
  GiveInventory("MAP03Token",1);
  }
  if(CheckInventory("MAP01Token")>0)
  {
  TakeInventory("MAP01Token",1);
  GiveInventory("MAP02Token",1);
  }
  PrintBold(s:"Wad: ",s:mappack,s:" Map: '",n:PRINTNAME_LEVELNAME,s:"'");
  }}}}
}
/*
script "testing" ENTER
{
  delay(1);
    Print(i:CheckInventory("MAP01Token"));
    Print(s:"\n",i:CheckInventory("MAP02Token"));
    Print(s:"\n",s:"\n",i:CheckInventory("MAP03Token"));
}
/*
script "change_mon_tid" (void) {Thing_ChangeTID(0, 951);}
script "doublehealth" (void) {int curhealth=GetActorProperty(0,APROP_Health);SetActorProperty(0,APROP_Health,curhealth*2);}
script "doublespeed" (void) {int curspeed=GetActorProperty(0,APROP_Speed);SetActorProperty(0,APROP_Speed,curspeed*2);}
script "doublemel" (void) {int curmel=GetActorProperty(0,APROP_MeleeRange);SetActorProperty(0,APROP_MeleeRange,curmel*3);}
script "instantreaction" (void) {SetActorProperty(0,APROP_MeleeRange,0);}