Multiple interactions

Hidden moo
20 Apr 2018, 08:45

I was wondering it there was a way to have multiple interactions with the same object like it I punched a rock these times to opened a secret door. I was also wondering how to select a menu/list for a use in a script I found the check box but that is it. Any help would be appreciated thanks for your time.


J_J
20 Apr 2018, 11:21

To clarify: you would like to have someone do the same action multiple times. So, on the third attempt of "punch rock" a door would open?


Father
20 Apr 2018, 18:58

Why not use first time option in scripts
Set up verb hit or punch on object rock.
Go to scripts
Select First time
First time
print You punch the rock
Else
Select First time again
Else
Print You punch the rock again
Else
Repeat First time again
First time
Print You punch the rock a third time. With a loud rumble it slides aside revealing a secret door.
Make existing exit visible
Else
Print Nothing happens.
This does not involve coding. I use it all the time.


Father
20 Apr 2018, 19:00

Sorry about that I pressed twice


XanMag
21 Apr 2018, 00:28

That’s what I call “my old man thumbs”. 😁


DarkLizerd
21 Apr 2018, 03:25

Check out my Dark Halloween... http://textadventures.co.uk/games/view/ytxcboq5uug1zlu4q6sbvw/dark-halloween
I had several items that had multiple actions on them...
BUT, I did not use "standard" Quest style actions on them...
One easy way would to be to have 3 rocks, A, B, C...
Rock A is visible, B and C hidden...
You hit the rock...
Rock A is hidden, Rock B is now visible...
You hit the rock again...
Rock B is hidden, Rock C is now visible...
You hit the rock again...
Rock C is hidden, Exit behind the rock is now visible...
If you use the same description on each rock, or maybe add "a few more cracks" for each description, the player would not know they are hitting different objects...


Father
21 Apr 2018, 07:14

That would explain it . Xanmag.I AM an old man