Jump to content

Annoying scripting error


Kaiser

Recommended Posts

I am trying to make this script activate only if the game is in deathmatch mode.

here's a test script I was trying to do, but Eternity keeps crashing on me even if this script is not activated, it will start up after I erase this script entirely. How can I get the gamemode() function to work right?



example script:



script 2
{
if(gamemode() == 0)
{
message("single player on");
}
elseif(gamemode() == 1)
{
message("coop on");
}
elseif(gamemode() == 2)
{
message("deathmatch on");
}

}startscript(2);


can anyone find out why this keeps causing the port to crash?

Share this post


Link to post

The if/elseif construct is known to be buggy. The present FS system is very messy and just about impossible to improve or fix, so it is in the process of being completely replaced.

By the way, DOOM Legacy is known to have this same problem.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...