Let's see what I can figure out...
Set var "_MyScriptX" = 0
Set var "_MyScriptY" = 0
Get natural target Regular monster
I can't figure out why you're setting myscripts here, especially why to 0, 0? Setting them this way will have any code that would check/use the x, y coordinates of something look at the top left corner of the room (the point (0, 0) in DROD coordinates). I especially don't understand the use here since you set them back to -9999 right after.
Separately, I don't know why you're using natural target. That tests for decoys, stalwarts, soldiers, and timeclones under certain circumstances. Unless the rooms with these cards will never have those entity types present, I would check for the player's presence over the card directly with a "
wait for entity player at tile"
command.
Wait while entity Player 0,0,0,0
This checks whether the player is standing on the tile (0, 0), which is not at all what you want. I would change this line to the following 5 lines:
Set var "_MyScriptX" = _MyX
Set var "_MyScriptY" = _MyY
Wait while entity Player 0,0,0,0
Set var "_MyScriptX" = -9999
Set var "_MyScriptY" = -9999
Setting myscript this way makes the wait while entity command check the location of the character calling the script, which is presumably what you want.
I would guess you're having trouble making sense of what myscript is for. I suggest giving this topic of mine a read to hopefully sort some things out:
http://forum.caravelgames.com/viewtopic.php?TopicID=42834
If I understand your desired behavior correctly (beethro steps on-->
card "
primes"
to flip-->
beethro steps off, making the card flip), I coded something similar for Beethro's Awakening that checked for a specific way of stepping off I won't go into and toggled 4 different states instead of just 2. It wouldn't be too hard to snip that code out into what you seem to want.
____________________________
109th Skywatcher
Here are some links to Things!
Click here to view the secret text
[Last edited by Xindaris at 02-04-2019 07:17 PM]