Zscript intermission

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.

Zscript intermission

Postby camaxide » Thu Mar 30, 2017 11:24 am

So my mod used to have a normal intermission cycle where the following happens.
-exit level
1: Intermission with kill, secret, pickup count and time. (wait)
2: Enterpic for next map showing a full-screen picture matching the next map. (wait)
3: Cluster entertext - with a background and text explaining the story moving onto the next map (wait)
-enter level

From this, I wanted to add one more layer to the intermission sequence, the world map.
I've made the graphics and code for the world map, Doom1-style and it works perfect - my problem is that the code for this is going into 2: Enterpic.
I don't want to replace the Enterpic that shows the picture for the next map with the worldmap - I want the world map to be added as an extra step before the Enterpic that shows the next map picture.

With Sscript now implementing the needed code to do this, but with me not understanding a slight bit of Zscript code as of yet (I have good control over the old code used for Decorate, Mapinfo etc.) I want to find some help on how to code this extra step into my intermission cycle.

I imagine the way to go would be to add code right after the worldmap (Enterpic) that allows the key-press that moves on to not execute the default move to enter next level (or enter Cluster entertext if existing) but instead move on to a second Enterpic containing the graphics for the next map (and in turn the cluster entertext if existing - as it use to do).

So this is what I want to achieve:

-exit level
1: Intermission with kill, secret, pickup count and time. (wait)
2: Enterpic1 for the world map showing maps completed and what the next map is. (wait)
3: Enterpic2 for next map showing a full-screen picture matching the next map. (wait)
4: Cluster entertext - with a background and text explaining the story moving onto the next map (wait)
-enter level

As mentioned I have all the code for the world map and for cluster entertext etc. all sorted out, all I need is the code triggering the extra Enterpic. - if easier I could also implement both the World Map and the full-screen picture of the next map within the same Enterpic-code if ZScript allows that to be done.

I hope someone knows a way this could be done, as it's a feature I really want to get implemented into my mod. I'm 3 years down the line in the work, and got about 4-5 months left to complete the mod - and this code would help making it just the way I wish it to be.
User avatar
camaxide
 
Joined: 11 Jun 2015

Return to Editing (Archive)

Who is online

Users browsing this forum: No registered users and 1 guest