This should probably be in the architecture board, as it's a question more about in-game scripting than actual development of stuff for the game. Maybe someone else can weigh in on that.
At any rate, the basic answer to most of your questions is that Yes, it's Very Easy to make something relative to the player's location, using what are called Myscript injections. The way it works is this:
You can set the variables _MyScriptX, _MyScriptY dynamically (for example, set them to be _X and _Y-1 respectively to point at the location 1 tile north of the player's current position) and then use a Generate Entity or Build command, which will then have whatever x and y you enter in the command overwritten by the values of _MyScriptX and _MyScriptY. The important thing to remember while doing this is that _MyScript vars override
LOTS of values (including how many turns the Wait command actually waits), so you'll want to reset them all to -9999 (the "
don't override"
value) immediately after you use their dynamic value, every single time. Of course, if you're trying to spawn or build something just north of the player you will need to be careful to check that it's within room bounds (not a _Y value of -1 in the above example) and not directly on top of an existing thing unless you do something like Attack Tile Kill to get rid of said thing first (but remember that some things can't be gotten rid of, such as tokens).
This is a good, but not complete, reference for what certainly values of _MyScript do to various commands.
Some of the information in
this thread will fill in those gaps, though it isn't
all accurate to DROD because that second thread is about what Myscript does in DRODRPG, a bit of a different engine. Ultimately it's usually necessary to sometimes just test these things to figure out what does exactly what.
I'm not completely sure about the answer to question 4, but based on a certain level in Lavendar Levels I'm certain
somebody at
some point found a way to make the player's sword turn via scripting which also made it process a stab.
____________________________
109th Skywatcher
Here are some links to Things!
Click here to view the secret text
[Last edited by Xindaris at 10-15-2017 08:31 PM]