Hello there guys, I was working on a potential update to my Daisy Eternal Companion mod that you can find here. It's on version 8 and I really like the potential so far in what can be achieved with Custom Monsters in ZScript.
https://www.moddb.com/mods/daisy-eterna ... -access-v8
For this I want to be able to command my companion mod with Zscript. I already made it where you press "USE" on her and she'll randomly react to the input in the form of simple animations that play and then shift back to "See State". This is what allowed me to think of a means to push this kind of interaction further.
For this, I want to be able to press a button on her (if possible), putting her in "Command" state, waiting for "orders". Whatever you press your targeting ridicule on, she goes to that location, and if there's an enemy (a being that is not FRIENDLY) within a certain range (not too big) she instantly shifts to an assigned attack state. (This being one of the attacks I already made ahead of time.)
If there no enemies, then she'll simply run there as best as her pathfinding would allow and return to you after a few seconds, having "checked" the area. (After 3 second timespan? If not then wait until you press a button on her again, setting her back to "See" state.
I'm sure it's possible but I'm not currently that well versed in ZScript to know how to begin setting up the logic. I suppose the steps would involve.
A.) Press button to get Monster into "Command" state (waiting for player input).
B.) Taking in the targeted ridicule of the player before the Monster's "command" state shifts to either Attack or Move states based on what you click on. (If it detects actor, them attack, if it detects a floor, then move.)
C.) Once the player clicks on something, the monster prioritizes movement to the assigned location (no longer following player) and shifting to either attack or back to "SEE" state if no enemies are within the targeted range.
Any help would greatly be appreciated in this regard. Thank you for your time and hope to hear your thoughts.
Commanding Custom Friendly Monsters With ZScript! [UNRESOLVED]
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!)
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!)
-
Psychojack88
- Posts: 54
- Joined: Sat May 07, 2022 10:12 pm
- Graphics Processor: nVidia (Modern GZDoom)
Commanding Custom Friendly Monsters With ZScript! [UNRESOLVED]
Last edited by Psychojack88 on Fri Oct 24, 2025 11:34 am, edited 1 time in total.
- MartinHowe
- Posts: 2099
- Joined: Mon Aug 11, 2003 1:50 pm
- Preferred Pronouns: He/Him
- Location: East Suffolk (UK)
Re: Commanding Custom Friendly Monsters With ZScript!
This is five years old and stopped due to Real Life taking over. But it still should work. Feel free to learn from the code, copy it if you like. I hope to restart it some day, but as a total rewrite due to experience gained in the intervening years.
viewtopic.php?p=1175886#p1175886
The only serious issue is they get stuck running around in circles if they get trapped in confined spaces. I think I know why but it'll take time to sort out.
viewtopic.php?p=1175886#p1175886
The only serious issue is they get stuck running around in circles if they get trapped in confined spaces. I think I know why but it'll take time to sort out.
-
Psychojack88
- Posts: 54
- Joined: Sat May 07, 2022 10:12 pm
- Graphics Processor: nVidia (Modern GZDoom)
Re: Commanding Custom Friendly Monsters With ZScript!
Hello there MartinHowe! Thank you for replying. If it allows me to command the Daisy mod then that's a great step to develop her further.
I really appreciate this, thank you so much
. The running around in circles is not that big an issue IMHO since in her current state, she seems to easily knock out of animation loops with a simple bullet, just pressing "use" on her, or teleporting to the player.
If you do update your cat mod altogether (the rewrite you've mentioned) I would love to hear about your progress.
I really appreciate this, thank you so much
If you do update your cat mod altogether (the rewrite you've mentioned) I would love to hear about your progress.