I made a simple script so far for my custom story where, after picking up a note, it (should) show a message. Though the message doesn't show up! Everything else works good so far, the .lang file is also working. Can someone help me? :/
Map Script:
void OnStart()
{
AddUseItemCallback("", "keyStart", "doorStart", "startUnlock", true); //Working
SetEntityCallbackFunc("note-1!room-start", "aftern1rs"); //Not working :(
}
void aftern1rs(string &in asEntity, string &in OnPickup)
{
SetMessage("Message", "msg-note-1!room-start", 0);
}
.lang Script:
<CATEGORY Name="Message">
<Entry Name="msg-note-1!room-start">I should be careful with the given items, looks like this man wants to challenge me.</Entry>
</CATEGORY>
Okay, to point out, I fixed the dash and exclamation mark glitch. The message is still not showing though... (replaced with "_")