Need some help on creating a puzzle of sorts.

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

Need some help on creating a puzzle of sorts.

Postby Tweek » Thu Aug 07, 2014 8:57 am

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.
Beneath - IC Blog.
Beneath: Ages of Tweek - FB Age Dev Page.
User avatar
Tweek
 
Posts: 680
Joined: Sat Sep 29, 2007 6:37 am

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

Postby Karkadann » Thu Aug 07, 2014 2:32 pm

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
"It is the responsibility of every student to try and surpass there teacher"
Sorry teach a Bahro ate my homework again
User avatar
Karkadann
 
Posts: 1219
Joined: Sun Aug 02, 2009 10:04 am
Location: Class Clown University

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

Postby Tweek » Thu Aug 07, 2014 2:36 pm

Yeah I don't use Max....yet (work in progress there). I'll take a look at XSimplePanel.py.
Beneath - IC Blog.
Beneath: Ages of Tweek - FB Age Dev Page.
User avatar
Tweek
 
Posts: 680
Joined: Sat Sep 29, 2007 6:37 am

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

Postby Karkadann » Thu Aug 07, 2014 3:43 pm

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
"It is the responsibility of every student to try and surpass there teacher"
Sorry teach a Bahro ate my homework again
User avatar
Karkadann
 
Posts: 1219
Joined: Sun Aug 02, 2009 10:04 am
Location: Class Clown University

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

Postby dendwaler » Thu Aug 07, 2014 10:22 pm

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
Those wonderfull Worlds are called " Ages" , because that is what it takes to build one.

Image

Watch my latest Video Or even better..... watch the Cathedral's Complete Walkthrough made by Suleika!
User avatar
dendwaler
 
Posts: 875
Joined: Mon Jun 22, 2009 10:49 am
Location: Nederland

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

Postby dendwaler » Fri Aug 08, 2014 6:09 am

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.
Attachments
Journey.7z
(1003.8 KiB) Downloaded 132 times
Those wonderfull Worlds are called " Ages" , because that is what it takes to build one.

Image

Watch my latest Video Or even better..... watch the Cathedral's Complete Walkthrough made by Suleika!
User avatar
dendwaler
 
Posts: 875
Joined: Mon Jun 22, 2009 10:49 am
Location: Nederland

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

Postby Tweek » Fri Aug 08, 2014 9:58 am

Thanks dendwaler, I'll take a look at all this and see what I can figure out :)
Beneath - IC Blog.
Beneath: Ages of Tweek - FB Age Dev Page.
User avatar
Tweek
 
Posts: 680
Joined: Sat Sep 29, 2007 6:37 am

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

Postby Dulcamara » Mon Aug 11, 2014 3:08 am

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
Attachments
Puzzle3.7z
(248.4 KiB) Downloaded 146 times
Puzzle.7z
(248.35 KiB) Downloaded 141 times
Puzzle.7z
(24.93 KiB) Downloaded 124 times
User avatar
Dulcamara
 
Posts: 264
Joined: Fri Sep 03, 2010 11:06 am
Location: Alabaster

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

Postby Tweek » Mon Aug 11, 2014 12:17 pm

Thank you Dulcamara . I shall take a look through this and the other items posted :)
Beneath - IC Blog.
Beneath: Ages of Tweek - FB Age Dev Page.
User avatar
Tweek
 
Posts: 680
Joined: Sat Sep 29, 2007 6:37 am

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

Postby Dulcamara » Wed Aug 13, 2014 6:12 am

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
Attachments
PuzzleSDL.7z
(589 Bytes) Downloaded 136 times
User avatar
Dulcamara
 
Posts: 264
Joined: Fri Sep 03, 2010 11:06 am
Location: Alabaster


Return to Scripting

Who is online

Users browsing this forum: No registered users and 4 guests