Page 1 of 1

Is %location1% and %location2% useable in tasks?

PostPosted: Sun May 19, 2019 5:35 am
by DazaKiwi
I'm having a bit of trouble with using # %location1% %location2%, the restriction doesn't seem to have Referenced Location 1 or Referenced Location 2 like it normally does for characters and objects. I haven't needed to param two locations before until now, but it seems you can't? unless my brain is currently running on fumes.

Re: Is %location1% and %location2% useable in tasks?

PostPosted: Sun May 19, 2019 2:23 pm
by Denk
DazaKiwi wrote:I'm having a bit of trouble with using # %location1% %location2%, the restriction doesn't seem to have Referenced Location 1 or Referenced Location 2 like it normally does for characters and objects. I haven't needed to param two locations before until now, but it seems you can't? unless my brain is currently running on fumes.

According to http://help.adrift.co/ only the following references exists:
adrift Code: Select all
A full list of references that ADRIFT understands is as follows:
%object1%, %object2%, %object3%, %object4%, %object5%, %objects%,
%character1%, %character2%, %character3%, %character4%, %character5%, %characters%,
%direction%, %number%, %text%, %location% and %item%.
You can also use %object% and %character% as shorthand for %object1% and %character1%.


Thus %location1% and %location2% are not possible.

A workaround is to use %location% and %item% in the same task. Here you can use restrictions to ensure that %item% is a location. Unfortunately, it is very limited what actions can be carried out with %item%. Thus if you want to do some more advanced actions with the item, you must pass %item% as a parameter to a task, which uses %location% as a reference.

I made a small demo, which uses this workaround:

Re: Is %location1% and %location2% useable in tasks?

PostPosted: Mon May 20, 2019 12:08 am
by DazaKiwi
Thank you Denk for taking time out to create a little demo. That is a cool work around. I've never seen %item% used and i had to really look around in the manual to find that info about the references adrift understands.

adrift Code: Select all
%item% is a special case.  This will match against any item reference (i.e. %object%, %character% or %location%).  T