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
How to display message at beginning?
NylePudding Offline
Member

Posts: 77
Threads: 23
Joined: Apr 2011
Reputation: 0
#1
How to display message at beginning?

EDIT - Sorry guys, I've worked out how to do it. (Whoop!) I don't need you help. Big Grin

Hello, I'm very new to modding and I want to do something rather basic. So could you possibly help me? Big Grin

Basically I want to show a message 5 seconds after you start playing.

This is what I have so far:

void OnStart()
{
AddTimer("tut01", 5, "TimerTutorial01");

if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");

for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i,

"tinderbox.ent");
}
}



void TimerTutorial01(string &in asTimer)
{
SetMessage(string& asTextCategory, string& asTextEntry, float afTime);
}

void OnEnter()
{

}

void OnLeave()
{

}


So what exactly do I have to put in the "SetMessage" function? For a simple example I want the message to say: "The Donkeys are going to get you!"

Like I said I am rather new to modding, so please have patience with me.
Shy
(This post was last modified: 04-29-2011, 10:07 AM by NylePudding.)
04-29-2011, 09:54 AM
Find


Messages In This Thread
How to display message at beginning? - by NylePudding - 04-29-2011, 09:54 AM



Users browsing this thread: 3 Guest(s)