Activating sanity and makign a level door operate.
I think i have found the right scripting but have no idea what to do with it please write down exactly what i should do this is my script already please copy paste the scripting you do into mine so i know hwo it is set out, Thanks.
Edit: and scripting for a quest woudl also be good, i think the script is this -
void AddQuest(string& asName, string& asNameAndTextEntry);
void CompleteQuest(string& asName, string& asNameAndTextEntry);
bool QuestIsCompleted(string& asName);
My script already(please add scripting you do into it).
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
AddUseItemCallback("", "StudyKey", "castle_arched01_3", "UsedKeyOnDoor", true);
}
void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_arched01_2", true, true);
ShowEnemyPlayerPosition("servant_grunt_1");
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_arched01_3", false, true);
PlaySoundAtEntity("", "unlock_door", "castle_arched01_3", 0, false);
RemoveItem("StudyKey");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
|