08-09-2011, 06:09 AM
Ok so here's my script:
I got the AddQuest to work (it shows up in my game that i received a memento. However, when i try to delete that memento, it doesnt. Btw i added .hps and .lang just to clarify that its those files, its not in my script.
Any help? Please and thank you.
Code:
.hps
////////////////////////////
// Run when entering map
void OnEnter()
{
PlayMusic("amb_safe.ogg", true, 0.5, 5, 0, true);
AddUseItemCallback("", "crowbar", "closet", "KeyOnDoor1", true);
AddUseItemCallback("", "HallKey", "hall", "KeyOnDoor2", true);
AddUseItemCallback("", "artroomkey", "artroom", "KeyOnDoor3", true);
AddUseItemCallback("", "pathwaytolabkey", "pathtolab", "KeyOnDoor4", true);
SetLevelDoorLockedText("pathtolab", "Doors", "Door_pathtolab_Name");
AddQuest("readnote","readnote");
CompleteQuest("readnotecomplete", "readnotecomplete");
}
.lang
<Entry Name="Quest_readnote_Text">Read the note next to your bed.</Entry>
<Entry Name="Quest_readnotecomplete_Text">Read the note next to your bed.</Entry>
I got the AddQuest to work (it shows up in my game that i received a memento. However, when i try to delete that memento, it doesnt. Btw i added .hps and .lang just to clarify that its those files, its not in my script.
Any help? Please and thank you.