Monster Script Types

Moderator: GZDoom Developers

Post Reply
User avatar
solarsnowfall
Posts: 1581
Joined: Thu Jun 30, 2005 1:44 am

Monster Script Types

Post by solarsnowfall »

The general idea is to have a way to extend or approximate player script executability (in particular ENTER, DEATH and RESPAWN) to monsters. I can imagine at least three ways of going about this.
  • ACS script types like MONSTERENTER, MONSTERDEATH and MONSTERRESPAWN.
  • A decorate flag like ACTIVATEPLAYERSCRIPT which would simply extend player script executability to monsters defined with this flag. Less desirable because it would require redefining existing monsters.
  • MAPINFO Map Commands like SpecialAction_MonsterEnter, SpecialAction_MonsterDeath and SpecialAction_MonsterRespawn. It's difficult to imagine the utility of this beyond something like executing a script on a per monster basis, though.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Monster Script Types

Post by Graf Zahl »

I don't think this is feasible because there's absolutely no control about for which monsters this is supposed to be done.
For the MAPINFO definitions, sorry, no. How would you handle that? The current special actions are not automatic, you MUST call A_BossDeath to handle them.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Monster Script Types

Post by Gez »

Put states with [wiki]CallACS[/wiki] in the monster's Spawn, Death, and Raise state sequences.

I know suggesting alternatives is often frowned upon, but this approach seems overall simpler and more flexible to me.
User avatar
solarsnowfall
Posts: 1581
Joined: Thu Jun 30, 2005 1:44 am

Re: Monster Script Types

Post by solarsnowfall »

That was more or less how I've been doing it. It's a pain, but it works. Thanks.
Monsterovich
Posts: 59
Joined: Sat Apr 12, 2014 11:10 am

Re: Monster Script Types

Post by Monsterovich »

Graf Zahl wrote:I don't think this is feasible because there's absolutely no control about for which monsters this is supposed to be done.
For the MAPINFO definitions, sorry, no. How would you handle that? The current special actions are not automatic, you MUST call A_BossDeath to handle them.
Obviously, "0" must be as activator - monster which dies and etc.
Gez wrote:Put states with [wiki]CallACS[/wiki] in the monster's Spawn, Death, and Raise state sequences.
It's not working correctly for monsters. That's reason why these decorate-based script actions are needed, but they must look like: MONSTERDEATH, MONSTERSPAWN, MONSTER%STATENAME%. Enough to make them for only specific decorate actions. For non-monster actors I have no problems.
solarsnowfall wrote:
  • A decorate flag like ACTIVATEPLAYERSCRIPT which would simply extend player script executability to monsters defined with this flag. Less desirable because it would require redefining existing monsters.
  • MAPINFO Map Commands like SpecialAction_MonsterEnter, SpecialAction_MonsterDeath and SpecialAction_MonsterRespawn. It's difficult to imagine the utility of this beyond something like executing a script on a per monster basis, though.
I don't understand, why it's so necessary. More examples, please.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Monster Script Types

Post by NeuralStunner »

Monsterovich wrote:It's not working correctly for monsters.
Then some other factor is interfering, whether user error or an actual bug. (In either case, we need to know exactly what you tried that didn't work.)
Monsterovich wrote:That's reason why these decorate-based script actions are needed, but they must look like:
Woah woah, slow down. Nobody has proven a need yet. (See above.) That makes it doubly uncool to be making demands about implementation.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”