ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Different Location Descriptions

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

Different Location Descriptions

Postby ohhaykfrankk » Sun Mar 10, 2019 5:58 pm

How do I make an alternate location description depending on which way you come from? If you come from the west, I want it to say 'this', but if you come from the east, it should say 'that'. If I need to make a task, I don't understand how that would work too then...Sorry and thank you!
ohhaykfrankk
 
Posts: 11
Joined: Sat Mar 09, 2019 2:18 am

Re: Different Location Descriptions

Postby Denk » Sun Mar 10, 2019 8:36 pm

I attach a taf-file, showing how it can be done.
In the demo, I have created a variable called DirectionNumber. Whenever you go east, it is set to 1 and whenever you go west, it is set to 2. This is done by the two tasks in the tasks-folder ("Going east" and "Going West"). Note how the tasks are set to "run after Playermovement" and "Task is repeatable".

Hope this helps :)
Attachments
demo.taf
(15.02 KiB) Downloaded 16 times
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
Denk
 
Posts: 249
Joined: Mon Feb 22, 2016 6:21 pm
Location: Hjørring, Denmark
Points: 31

Re: Different Location Descriptions

Postby ohhaykfrankk » Sun Mar 10, 2019 10:53 pm

Omg, that's perfect! And you made it so easy x) thank you so much!
ohhaykfrankk
 
Posts: 11
Joined: Sat Mar 09, 2019 2:18 am


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 7 guests

cron