Quest log.

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
Extreme
Posts: 15
Joined: Sun Mar 30, 2008 15:50

Quest log.

Post 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.
Extreme
Posts: 15
Joined: Sun Mar 30, 2008 15:50

Post by Extreme »

nvm i fixed it... it should be "else" instead of If again sorry.. My bad of posting soo fast.
User avatar
TheDarkArchon
Posts: 1000
Joined: Wed Jul 06, 2005 11:58
Location: What's that fucking smell
Contact:

Post by TheDarkArchon »

Code: Select all

 If(questlog ==1) 
It's "if", not "If"
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

ACS is case insensitive.
Locked

Return to “GZDoom”