04-29-2011, 09:54 AM
EDIT - Sorry guys, I've worked out how to do it. (Whoop!) I don't need you help.
Hello, I'm very new to modding and I want to do something rather basic. So could you possibly help me?
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.
Hello, I'm very new to modding and I want to do something rather basic. So could you possibly help me?
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.