View Full Version: Tra la la!

Chex Quest Fan Forums > Newmaps: A Chex Quest Mod > Tra la la!


Title: Tra la la!
Description: Skipping!


xbolt - July 19, 2007 05:30 AM (GMT)
I've finally managed to devise a way to skip cutscenes! :D

This much requested feature will make everybody's life easier! :lol:



(WARNING: Script inflation levels: HIGH)

Manny Cav - July 19, 2007 05:32 AM (GMT)
Hallelujah!

rrppo - July 19, 2007 05:23 PM (GMT)
Sweet!

GameMaster - July 20, 2007 03:03 AM (GMT)
how exactly?

Master of Nachos - July 20, 2007 03:24 AM (GMT)
Cool! I second GameMaster's question.

xbolt - July 20, 2007 06:54 AM (GMT)
Here's a snippet from the E2M1 script that has to do with the intro:

CODE
[scripts]

mobj chexguy;
mobj ship;
int skipping = 0;

script 17
{
   runcommand("gr_fogcolor 000000\n");
   runcommand("gr_fogdensity 100000\n");
   runcommand("viewsize 12\n");
   setpicvisible(widescreen, 1);
   chexguy = spawn(PLAYER, -1224, 656, 90, 24);
   setcamera(18, (0), (64), (0));
   wait(200);
   if(skipping == 1)
   {
       goto(skip1);
   }
   setcamera(75, (315), (72), (0));
   
   (Part of script removed to keep post length down)
   
   startscript(200);
   wait(300);
   if(skipping == 1)
   {
       goto(skip1);
   }
   setcamera(77, (90), (64), (0));
   startscript(201);
   wait(100);
   skip1:
   ship = spawn(TALLTECHPILLAR, -192, -512, 0, 448);
   if(skipping == 1)
   {
       goto(skip2);
   }
       
   (Part of script removed to keep post length down)
   
   setcamera(18, (0), (56), (0));
   wait(300);
   if(skipping == 1)
   {
       goto(skip2);
   }
   timedtip(200, "Oh no...");
   wait(300);
   skip2:
   silentteleport(19, 28);
   runcommand("viewsize 10\n");
   setpicvisible(widescreen, 0);
   clearcamera();
   startscript(201);
   wait(300);
   timedtip(300, "I guess I'm not going to get any gas here.");
}

script 29
{
   skipping = 1;
}


When the player starts in the dummy sector, the walls are switches that activate script 29. And so, between each part of the intro script, I check whether or not the player has pushed the switch, and if it has been pushed, I skip down to the end.

Now you notice, that I first skip down to when the ship lands, and then skip to the end. This is because, if I skip straight to the end, the ship won't appear.




Hosted for free by InvisionFree