The place to discuss the ADRIFT Interactive Fiction toolkit

help, I'm being mugged....

This forum is the place to discuss the older ADRIFT versions 3.9 and 4.0.

Please refer to the ADRIFT 4 Manual for more information.

Postby Albaniua » Tue Oct 26, 2010 8:57 pm

ok, so I'm walking around my city and I want to get this is what I did

just for clarity sake all tasks are in [ ] and events are in { }

character: mugger
In the walk, when mugger runs across player, [###mug enounter] happens.

[###mug encounter] trips an {mugging event} (3 moves) that basically say" the guy is looking at you" and "the guy is walking towards you"---I didn't want him to mug you right off the bat.

at the end of [mugging event} it runs [##you are mugged] which takes your money and some life away.

it all runs beautifully, but if you move to the next room, the event keeps happening (with descriptions), you are not actually mugged, since the mugger has to be in the same room as the player. How can I have the event stop when I go to another room? Do I have to mess with the direction arguments?--override basic movements. I don't want to do that. is there any other way?
Honk if you've played Escape from Rungistan.
User avatar
Posts: 87
Joined: Tue Sep 30, 2008 8:55 pm
Location: Las Vegas, NV

Postby Duncan_B » Wed Oct 27, 2010 1:05 am

I assume you want your event to repeat? You can narrow the rooms the event displays in, or you could add in a condition check that will check if the player is in a room that is not the Mugging Room (or whatever you're calling it). Add an "Event can be paused if..." piece that references the Not in Mugging Room task.

That's one way, anyway. Sort of tough to tell without actually looking at how you've written it.

Return to ADRIFT 3.9 and 4.0

Who is online

Users browsing this forum: No registered users and 3 guests