Right, okay, I don't know how this is on Mac but on Windows at least:
-If you want to copy and paste code
inside the current code window, you use the usual ctrl+C, ctrl+V. This uses some kind of "
internal clipboard"
which can't move code from one character to another, which can be inconvenient.
-If you want to copy code
as text into your computer's regular clipboard, you use ctrl+B; to paste
from your computer's clipboard (if the text is formatted properly) then you use ctrl+shift+B to paste it in. This is also how you would copy code from one character to another.
So, if you copy the code in the secret above, then open the character's command and use ctrl+shift+B, it should paste it right in.
...Well, I already made a "
my own copy"
of the hold to do the challenge coding in anyway, so maybe I can just attach that once I'm done instead of posting a bunch of code in the thread
EDIT again, some feedback on these challenges:
Click here to view the secret text
×Obey 1N1W: It is surprisingly difficult to detect where something specific died, but it's easier when there's only one of that type of monster, like in this room. I've got a working solution for this one.
Obey 1E: Very easy to script because you just check whether the door is still closed when the room becomes clear.
Obey 1N1E: I do not know how to count adders. I know of a way to count how many, say, roaches there are in a room, but that involves scanning across every tile in the room one-by-one and adding to a counter for every time a roach is detected. I could do that here while detecting monsters, but then every tile with part of an adder on it would get counted. The only solution I can think of right now would be to insist that, also, their total length be at least a certain value, and then the script can check if the count is at least "the length of one adder plus 2". But that's different from the challenge you wanted.
Master 1S1W: DROD script doesn't provide any way to "track" a specific, individual monster (that I know of). I could figure out if there's some eye on that tile right before it turns on, similar to Obey 1N1W's script, but I don't know if that would accomplish what you're after. Another possibility depending on the room is to restrict what eyes the player is allowed to wake before killing that one? But it very much depends on what you're going for here.
Master 1E: I think I need some clarification here. The scroll says "clear with at least 5 to use", which sounds like "clear the room with 5 left", but you said "if you use 5 decoys"? So, is it that the player can only use 5 of them or that they should only use enough that there are (at least) 5 left at the end? So, is the player allowed to use 5 of them, or 10 of them? A quick and dirty way to make this scriptable, by the way, is if you change the challenge to "don't use the potions in column [x]". There are 5 in each column, so that would handle it neatly if the solution doesn't depend on specifically where the player uses a potion (or even if it does, but they don't need to use one in that particular column). This is because it's easier to script "is there a decoy potion in each of these 5 specific tiles?" than "are there a total of at least 5 decoy potions?"
Master 1S2E: The easiest way to make this challenge work is if you instead word it as something like "clear the room, then close all of the eastern doors before leaving" (or "all of the doors in column 32" to be more precise), because that's a very easy thing for scripting to check, and it requires what you want to require.
Eureka 2N: DROD script can't track individual monsters, but from what I can tell the adder you're talking about is guaranteed to be the only one out until the mud is gone, right? I probably need the demo to see exactly what condition you intend; it's tricky to check where a snake is exactly, but sounds possibly doable?
____________________________
109th Skywatcher
Here are some links to Things!
Click here to view the secret text
[Last edited by Xindaris at 05-01-2024 09:22 PM]