The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help SetMessage not working?
Verkehr Offline
Member

Posts: 60
Threads: 13
Joined: Oct 2016
Reputation: 1
#1
Question  SetMessage not working?

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 "_")
(This post was last modified: 07-14-2017, 03:44 PM by Verkehr.)
07-14-2017, 03:10 PM
Find


Messages In This Thread
SetMessage not working? - by Verkehr - 07-14-2017, 03:10 PM
RE: SetMessage not working? - by Verkehr - 07-14-2017, 06:18 PM
RE: SetMessage not working? - by Verkehr - 07-14-2017, 07:48 PM



Users browsing this thread: 1 Guest(s)