Page 1 of 1

Quest log.

Posted: Wed Apr 02, 2008 20:23
by Extreme
Hey, i'm working on a project and need to be able to have a quest log. But i can't get it working as i want to. I'm not the best of scripting.

Here's the code

Code: Select all

Script 101 (void)
{

    if(questlog ==0)
	
	{
	fadeto (200, 200, 200, 1.0, 0.2);
	questlog = 1;
	SetFont("Questlog");
	HudMessage(s:"A"; HUDMSG_PLAIN, 1, 0, 0.5, 0.7, 0);
	}
	
	If(questlog ==1)
	
	{
	Cancelfade
	questlog = 1;
	SetFont("Questlog");
	HudMessage(s:"A"; HUDMSG_PLAIN, 1, 0, 0.5, 0.7, 0);
   }
			
	
}
Why doesn't it work? =( Please some help me out.

Posted: Thu Apr 03, 2008 12:25
by Extreme
nvm i fixed it... it should be "else" instead of If again sorry.. My bad of posting soo fast.

Posted: Thu Apr 10, 2008 17:13
by TheDarkArchon

Code: Select all

 If(questlog ==1) 
It's "if", not "If"

Posted: Thu Apr 10, 2008 20:39
by Graf Zahl
ACS is case insensitive.