Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : Expose "can a queen spawn" check to scripting (for vastly easier custom "queens")
New Topic New Poll Post Reply
Poster Message
Xindaris
Level: Smitemaster
Avatar
Rank Points: 1531
Registered: 06-13-2015
IP: Logged
icon Expose "can a queen spawn" check to scripting (+2)  
While making the custom elements for Spiders' Domain (one of my entries to MaGDL), I went with a very naive logic to check if they could spawn things on a particular tile. It amounted to asking whether the entity could move to that tile, and then whether or not there was something like a tunnel or a door there that should prevent something from spawning anyway. The end results included a "queen" which cannot spawn anything if placed in the bog-standard "roach queen spawner" position of stuck against a force arrow and unable to move--because, of course, that makes it fail the "move there" check.

Well, DROD clearly already has logic somewhere that tests a tile properly for whether or not a roach queen would be capable of putting an egg there. Rather than trying to reinvent that particular wheel in scripting, it'd be nice to just have a command that looks at a tile using said logic and outputs a 0 or 1 to _ReturnX or something to indicate whether or not an egg could be spawned there.

____________________________
109th Skywatcher

Here are some links to Things!
Click here to view the secret text

09-18-2021 at 06:26 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Dragon Fogel
Level: Smitemaster
Rank Points: 2434
Registered: 06-21-2014
IP: Logged
icon Re: Expose "can a queen spawn" check to scripting (+2)  
Could be part of a more general command that can also check:
-Can a double be placed here
-Can tarstuff babies spawn here
-Can waterskippers spawn here
09-18-2021 at 07:04 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
hyperme
Level: Smitemaster
Avatar
Rank Points: 1062
Registered: 06-23-2006
IP: Logged
icon Re: Expose "can a queen spawn" check to scripting (+2)  
In some senses I'm so ahead of the curve that I've already sort of done this. I've got a "Wait for open move" command waiting for a merge, which can handle most of the checks for if something can spawn somewhere. Currently it only looks at movement types, but it could be expanded to do other things.

In fact, part of the impetus for implementing this was because the spider queens in your MaGDL entry.

____________________________
[Insert witty comment here]
Qzvlkx?
09-18-2021 at 10:37 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : Expose "can a queen spawn" check to scripting (for vastly easier custom "queens")
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.