MAPINFO question

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
Okgo5555
Posts: 80
Joined: Thu Mar 23, 2017 11:18 am

MAPINFO question

Post by Okgo5555 »

Is there a way to just change the default actors properties so that when a level's given monsters are all dead the level ends? I'm willing to do this via ACS as well, but specifically, for my purpose, I'm trying to set up scenarios where the level ends once the player has killed everything.

Code: Select all

SpecialAction = "<monstertype>", "<action special>", [arg1], [arg2], [arg3], [arg4], [arg5]

Code: Select all

SpecialAction = "zombiemanboss", "Exit_Normal"
Whenever I use this, I get an "Unknown top level keyword" error and, besides this, the special action would be limited to a given class (i was hoping 'monster') anyway.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: MAPINFO question

Post by Graf Zahl »

This sounds like you placed this in the wrong place. SpecialAction is a map property so it needs to be within a "map" or "defaultmap" block.
Okgo5555
Posts: 80
Joined: Thu Mar 23, 2017 11:18 am

Re: MAPINFO question

Post by Okgo5555 »

Ya. I have it at the end of the e1m1 mapblock. In just trying to suss this out and try out the concept.

As far as I understand, this type of information goes underneath the part in the lump that defines the individual level's music?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: MAPINFO question

Post by Graf Zahl »

Post your entire MAPINFO. Without it all we can do is guess.
Okgo5555
Posts: 80
Joined: Thu Mar 23, 2017 11:18 am

Re: MAPINFO question

Post by Okgo5555 »

Code: Select all

map E1M1 "Hangar Extermination"
levelnum 1
next E1M2
secretnext E1M9
sky1 SKY1 0
cluster 1
par 30
music D_E1M1
SpecialAction = "ZombiemanBoss", "Exit_Normal"
And then the idea is to replace the monsters as Bosses so that the level just ends once everything is dead.

Code: Select all

ACTOR ZombieManBoss : Zombieman replaces Zombieman
{
+BOSSDEATH
  States
  {
  Death:
    POSS H 5 A_BossDeath
    POSS I 5 A_Scream
    POSS J 5 A_NoBlocking
    POSS K 5
    POSS L -1
    Stop
  XDeath:
    POSS M 5 A_BossDeath
    POSS N 5 A_XScream
    POSS O 5 A_NoBlocking
    POSS PQRST 5
    POSS U -1
    Stop
  }
}
User avatar
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am
Contact:

Re: MAPINFO question

Post by Void Weaver »

You have wrong syntaxis.
This variant work as intended:

Code: Select all

map E1M1 "Hangar Extermination"
{ //Forgot bracket character
levelnum = 1 //Forgot equal sign
next = E1M2
secretnext = E1M9
sky1 = SKY1, 0
cluster = 1
par = 30
music = D_E1M1
SpecialAction = "ZombiemanBoss", "Exit_Normal"
}
Post Reply

Return to “Scripting”