Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
jplstatic

zdoom endgame scripting? possible?

Recommended Posts

What do you mean by "plot scripting" exactly?

Anyway, between MAPINFO and ACS, the answer is likely to be yes.

Share this post


Link to post

The OP means text screens (or more advanced) before and after a map, which is possible in ZDoom.

Share this post


Link to post

Yeah, it's pretty simple to set that up with MAPINFO. Group your levels in clusters (by using the cluster keyword in each level's definition, and associating it the number of a cluster), then for the clusters you have defined, you can specify an entertext and an exittext.

For example:

map MAP01 lookup "HUSTR_1"
{
	titlepatch = "CWILV00"
	next = "MAP02"
	secretnext = "MAP02"
	sky1 = "SKY1"
	cluster = 5
	par = 30
	music = "$MUSIC_RUNNIN"
}
This is MAP01 of Doom 2. You can see it's setup for cluster 5. (Clusters 1 to 4 are used by the Ultimate Doom episodes.)
cluster 5
{
	flat = "SLIME16"
	music = "$MUSIC_READ_M"
	exittext = lookup, "C1TEXT"

}
Here's cluster 5. You can either list the text directly, or -- as is used here -- use the "lookup" keyword to tell it to look for a string in the LANGUAGE lump (same comment for the lookup HUSTR_1 in the map definition above).

The exittext is displayed when you leave a cluster by going to a map that belongs to a different cluster. The entertext is displayed when you enter a cluster from a map that belonged to another. So they're basically the same thing, and you shouldn't use both at the same time.

For reference, here are the same examples without lookups:
map MAP01 "Entryway"
{
	titlepatch = "CWILV00"
	next = "MAP02"
	secretnext = "MAP02"
	sky1 = "SKY1"
	cluster = 5
	par = 30
	music = "$MUSIC_RUNNIN"
}
cluster 5
{
	flat = "SLIME16"
	music = "$MUSIC_READ_M"
	exittext = "YOU HAVE ENTERED DEEPLY INTO THE INFESTED",
	"STARPORT. BUT SOMETHING IS WRONG. THE",
	"MONSTERS HAVE BROUGHT THEIR OWN REALITY",
	"WITH THEM, AND THE STARPORT'S TECHNOLOGY",
	"IS BEING SUBVERTED BY THEIR PRESENCE.",
	"",
	"AHEAD, YOU SEE AN OUTPOST OF HELL, A",
	"FORTIFIED ZONE. IF YOU CAN GET PAST IT,",
	"YOU CAN PENETRATE INTO THE HAUNTED HEART",
	"OF THE STARBASE AND FIND THE CONTROLLING",
	"SWITCH WHICH HOLDS EARTH'S POPULATION",
	"HOSTAGE."
}

Share this post


Link to post

Hello! I'm BRAZILIAN.

In Heretic, in the original wad, the E1M8, I did so:

map E1M8 lookup "HHUSTR_E1M8"
{
next = "EndGame1"
secretnext = "E1M9"
sky1 = "SKY1"
cluster = 2
nointermission
ironlichspecial
specialaction_lowerfloortohighest
music = "MUS_E1M8"
}

clusterdef 2
flat FLOOR25
music MUS_CPTD
exittext "Com a destruição das Iron liches"
"e seus asseclas, o último dos mortos-vivos"
"foi apurado a partir deste plano de existência."

"Essas criaturas tinham que vir de algum lugar,"
"embora Corvus, nosso herói, tem a suspeita"
"furtiva que o portal de fogo do Hells Maw"
"se abriu para a sua próxima dimensão."

"Tendo certeza de que mais mortos-vivos"
"(ou coisas ainda piores) não vêm,"
"Corvus terá que ir ao outro mundo e selar"
"Hells Maw."
"É claro que isso significa que ele pode ficar"
"preso em um lugar muito hostil."
"Mas ninguém nunca disse que:"
"Ser um herege é fácil!"
}

VERIFY THAT IS RIGHT!!!

MY QUESTION IS THIS:
now what to write YET HERE in MAPINFO so after the end animation text then appears the picture of Hell's Maw?

Share this post


Link to post
Kassildes said:

1. Hello!
2. VERIFY THAT IS RIGHT!!!
3. now what to write YET HERE in MAPINFO so after the end animation text then appears the picture of Hell's Maw?

1. Hi. You shouldn't bump old threads, though. Read the forum FAQ.
2. It isn't right, because you're mixing the new MAPINFO syntax (with curly brackets and =) with old syntax (with no curly brackets and no =), and moreso, you have more closing curly brackets than opening ones.
3. In map definition: Next = "xxxxxxxx", where "xxxxxxxx" is the name of the respective intermission definition.

Share this post


Link to post
Guest
This topic is now closed to further replies.
×