By the way I never saw the edits to your last post until the most recent post as I had seen it pre-edit and did not know there were more questions.
Aquitanius wrote:
But I'm too lazy to write up the code. You copy your code directly from the game, right? I can insert it with ctrl+shift+b. But how do you copy it to your windows clipboard? I tried ctrl+shift+c and ctrl+c. Both don't do it. Couldn't find it by searching in this forum either.
You use Ctrl + C to copy the commands as text to your clipboard, but you first need to select all of the commands you want to copy by clicking the first one, holding shift, then clicking the last one. That will select all of them.
Aquitanius wrote:
Aaaand... I still have another question: How do the behaviour movement commands work? They don't seem to do anything on their own. If I want to emulate moving towards the player I could use my code and change it around a little and not put it into each defend. But that seems a little too complicated when there are movement commands already in the editor. Thanks.
If you ask the monster to move to a particular square using the Move command, it will behave according to the movement behaviour you gave it. So if you want it to move to a certain square and actually pathfind to that square instead of getting stuck behind a wall, you should give it a pathfinding movement behaviour, etc.
Aquitanius wrote:
EDIT2: kieran, I have two questions about your burnOrder script.
1) It doesn't work if I set it up in a different NPC and let the Aumtlich just check if the burnorder is 4. It does work if it is in the Aumtlich script itself. Why?
Without seeing your code its hard to say, but if you're checking for the variable to be 4, make sure that the variable check is happening inside the loop but idependently to the other if statements. Alternatively, when the code changes the variable from a value of 3 to 4, just put the code you want to execute right there, you don't really need to add a check if the variable has reached 4 or not.
Aquitanius wrote:
2) Also if I want to Aumtlich that behave this way, they need two seperate burnOrder variables. I guess it's just because the first Aumtlich sets the burnOrder correctly to 1, but then the second one checks the wrong condition, because the burnOrder is now 1 and resets it to 0. That should be the explanation, right?
Yeah if you have multiple character scripts in the room then they will run one after the other. If you ran the burnOrder script twice in a single turn then it would never work properly as it would always reset to zero immediately after incrementing the variable because the variable will be at a different value the second time it performs the check, and so would reset it back to zero.
[Last edited by kieranmillar at 06-08-2016 07:39 PM]