Page 1 of 1

Player movement

PostPosted: Mon Feb 10, 2020 11:37 am
by P/o Prune
Is there a way to create a special task (player moment) using two different directions?

My PC is inside a house. s/he can leave the house either by moving north, or by going out.
I want to create ONE specific task that covers both possibilities, but is that possible?

Re: Player movement

PostPosted: Mon Feb 10, 2020 1:25 pm
by Denk
P/o Prune wrote:Is there a way to create a special task (player moment) using two different directions?

My PC is inside a house. s/he can leave the house either by moving north, or by going out.
I want to create ONE specific task that covers both possibilities, but is that possible?
Sure, that is possible.

You must create a specific task which overrides the general task "Player Movement".
(If you want something to happen but you still want to move in the specified directions, you can use "run before" or "run after" instead of "override")

Then you must leave "direction" undefined in the field that says "go to the direction", i.e. do not choose a direction.

Instead, you must specify the valid directions in the restrictions.

Create these two restrictions:
adrift Code: Select all
Referenced Direction must be North
Referenced Direction must be Out


You must change "AND" to "OR" between these two tasks.

You will most likely need more restrictions, e.g. specify in which room this task applies. Thus you need to put a set of parantheses around the above mentioned restriction pair.

I attach an example (in the example the directions are North and East but the method is the same):
SpecificTaskForTwoDirections.taf
(15.32 KiB) Downloaded 53 times