Page 1 of 1

Need some help on creating a puzzle of sorts.

PostPosted: Thu Aug 07, 2014 8:57 am
by Tweek
In the past most of my Ages have been about story and not interaction. Lately I've been trying to implement points of interaction and actual puzzles into my Age content.

However I pretty much have no idea what I'm doing. I can animate models, I can get an Avatar to hit a button that opens a door (and gets stuck open cause I've yet to figure out how to set up SDL values and linking them to my Age files).

I am currently working on an Age where the player needs to open a door. However the door has no power and the player needs to activate 4 power switches before they can go to the door and open it (player has to click on the door to open it). It doesn't matter the order in which the switches need to be activated. But I was wondering if there was someone around who can help me set it up?

Thanks.

Re: Need some help on creating a puzzle of sorts.

PostPosted: Thu Aug 07, 2014 2:32 pm
by Karkadann
I have not used it yet but their is a XSimplePanel.py that you may be able to use for the power switches. as far as the door is concerned in Max all you would need is to set up a two part animation, one to open one to close, add two animation components, and set it all up in a responder. It don't sound to difficult in Max but with Blender its all coding

Re: Need some help on creating a puzzle of sorts.

PostPosted: Thu Aug 07, 2014 2:36 pm
by Tweek
Yeah I don't use Max....yet (work in progress there). I'll take a look at XSimplePanel.py.

Re: Need some help on creating a puzzle of sorts.

PostPosted: Thu Aug 07, 2014 3:43 pm
by Karkadann
If no one else can help I might be able to set it up as a .prp file for you then you can just add it to your age that way.
All I would probably need is the four switches and the door

Re: Need some help on creating a puzzle of sorts.

PostPosted: Thu Aug 07, 2014 10:22 pm
by dendwaler
What you describe is basicly the same as what i did in turtle isle.
7 journey clothes had to be touched in random order and when its done you are able to open a door.
That needs 7scripts for the clothes , 1 or 2 for the door and some python code.

The only difference is that you need only 4 touches
I will post a complete working example (made in blender) including the python.pak later this day,
I just need some time to prepare it. :D

Re: Need some help on creating a puzzle of sorts.

PostPosted: Fri Aug 08, 2014 6:09 am
by dendwaler
Ok , i finished an example.
Inside the 7zip file you will find :
a map with the exported journey files, its fully explorable for everybody.
also you will find inside that map the needed Python.pak. including the src code.

A second map contains the textures though they are also packed into the blend file.
At last there is the blend file.
In the blend file is the complete age which contains a wall with 7 clothes.
and a door can only be opened after touching the 7 clothes.
finally there is the alcscript belonging to it and a soundfile.
I think this is what you need, there is not much difference between 7 clothes or 4 buttons.

I hope you can use this and if not there may be others interested in the file.

Ps , i will post the file in this post a little later because it is 100 kb to large at the moment :evil:



Another try to upload , i reduced the size of the textures but that is not important. :D

I noticed a mistake in the texture path, i had left it absolute instead of relative.
That why i just uploaded a new file , but its basicly the same.

Re: Need some help on creating a puzzle of sorts.

PostPosted: Fri Aug 08, 2014 9:58 am
by Tweek
Thanks dendwaler, I'll take a look at all this and see what I can figure out :)

Re: Need some help on creating a puzzle of sorts.

PostPosted: Mon Aug 11, 2014 3:08 am
by Dulcamara
At this point, I will thank you again for the Journey script Dendwaler. :)
I use it since 2011 in all my Ages. Even though it has since been changed a bit from Fruti.

I think I have also something for you Tweek
A simple puzzle script written from my friend Fruti from the H'Uru Shard for my Ages. Thank you Fruti :) :)

You can modify it very good. Grrrrrrrr bad english :evil:
Unfortunately, it is mostly written in German, but I think it is to be understood anyway.

The Code i used is 1 2 3 4 .The fifth button is in the middle and has no function. You can always modify the code in the PhytonScript.
The number of buttons you can change in the Alcscript and your Blendfile.

In the Attachments you (and all other who need it ) can find three Zip files.
A blend file.
The Phytoncodes and the functioning Python Pak
I also have a sfx file and the SDL file attached.
I hope this helps you further. For questions about this you can also write me a PM.
I will do my best to explain it in Denglish :lol:

Greetings
Dulcamara

Re: Need some help on creating a puzzle of sorts.

PostPosted: Mon Aug 11, 2014 12:17 pm
by Tweek
Thank you Dulcamara . I shall take a look through this and the other items posted :)

Re: Need some help on creating a puzzle of sorts.

PostPosted: Wed Aug 13, 2014 6:12 am
by Dulcamara
Sorry I made ​​a mistake :oops:
A Zipfile is double
Therefore, the SDL file is missing
SFX file is unfortunately too big but I'm sure you manage it so :P