Items

Yuecake
05 Apr 2012, 00:17
Hello everyone!

I am needing a little help with something. I am setting up a puzzle in the game where the player needs to show 4 items in a certain order to an NPC. So they need to show card 1, then card 2, then card 3, then card 4 - then afterwards the NPC will unlock an exit. But they're not giving them the cards, the player will keep them after showing.

Any idea how to go about doing this?

Many thanks,
Yuecake

sgreig
05 Apr 2012, 05:16
I would think the way to do this would be to create a custom show command, and then the write the scripts from there.

Alex
05 Apr 2012, 10:08
Yes, as sgreig says you'll probably want a show command with a pattern like:


show #object1# to #object2#


Then object2 can have a string list attribute defining a particular "show" order, and an integer attribute which keeps track of where in the list the player has got to.

Yuecake
05 Apr 2012, 13:16
That is excellent thank you very much :)