Added CCOH and missing areas Changed some areas to be craftable, Fixed some on death issues, Fixed the Gaurd
28 lines
1011 B
Plaintext
28 lines
1011 B
Plaintext
#include "vamp_subrace"
|
|
void main()
|
|
{
|
|
object oPC = GetLastRespawnButtonPresser();
|
|
|
|
PrintString("vamp_respawn: " + GetName(oPC));
|
|
if (GetCampaignInt("Vampire", "NewVamp",oPC)==1)
|
|
{
|
|
PrintString("vamp_respawn: " + GetName(oPC) + " is a NewVamp.");
|
|
object oWaypoint = GetWaypointByTag("vamp_crypt");
|
|
if (GetIsObjectValid(oWaypoint) == TRUE)
|
|
{
|
|
PrintString("vamp_respawn: " + GetName(oPC) + "| vamp_crypt is a valid location to be respawned.");
|
|
location lLoc = GetLocation(oWaypoint);
|
|
AssignCommand(oPC, ActionJumpToLocation(lLoc));
|
|
DelayCommand(3.0f, SetSubRace(oPC, "Vampire"));
|
|
DelayCommand(3.0f, ExportSingleCharacter(oPC));
|
|
DelayCommand(3.0f, init_subrace(oPC));
|
|
SetCampaignInt("Vampire","NewVamp",0,oPC);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
//Add here what happens to "non new vampires"
|
|
PrintString("vamp_respawn: " + GetName(oPC) + " is not a new vampire.");
|
|
}
|
|
}
|