- 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.
Monster Script Types
Moderator: GZDoom Developers
- solarsnowfall
- Posts: 1581
- Joined: Thu Jun 30, 2005 1:44 am
Monster Script Types
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.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Monster Script Types
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.
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.
Re: Monster Script Types
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.
I know suggesting alternatives is often frowned upon, but this approach seems overall simpler and more flexible to me.
- solarsnowfall
- Posts: 1581
- Joined: Thu Jun 30, 2005 1:44 am
Re: Monster Script Types
That was more or less how I've been doing it. It's a pain, but it works. Thanks.
-
- Posts: 59
- Joined: Sat Apr 12, 2014 11:10 am
Re: Monster Script Types
Obviously, "0" must be as activator - monster which dies and etc.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.
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.Gez wrote:Put states with [wiki]CallACS[/wiki] in the monster's Spawn, Death, and Raise state sequences.
I don't understand, why it's so necessary. More examples, please.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.
- 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
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:It's not working correctly for monsters.
Woah woah, slow down. Nobody has proven a need yet. (See above.) That makes it doubly uncool to be making demands about implementation.Monsterovich wrote:That's reason why these decorate-based script actions are needed, but they must look like: