The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting advice: Filling a bucket by three consecutive Item Callbacks.
AlexWM05 Offline
Junior Member

Posts: 4
Threads: 2
Joined: Oct 2013
Reputation: 0
#1
Scripting advice: Filling a bucket by three consecutive Item Callbacks.

Hey! So it looks like my very first post here is going to be me swallowing my pride and asking for help! What a way to make an introduction. Heck, I'm not even quite sure if this message board is anywhere near as active as it was when the mod tools came out two years ago. But I am making a really big custom story for myself, more for my resume specifically. Better late than never, especially since I've already put thousands of hours of work on this...

So yeah, to the topic... HELP!

So I am designing a puzzle that involves filling a bucket of water. Instead of giving you a wall of text, here's a quick outlined summary.

THE PREMISE
Phase One: In a labyrinth-esque level, you find a room that has a small hole and a bucket.

Phase Two: You need to obtain what's resting in the bottom of that hole, so the player should figure out that the bucket could be of some use.

Phase Three: This labyrinth will have three pathways to three small separate levels. Each of these levels will have a certain element to get the player further towards solving the "hole and bucket" puzzle, like how there are hidden orb fragments in the torture rooms of the original.

Phase Four: Inside each room is a small water source, and each water source that you approach will fill your bucket 1/3 full. Visiting and solving all three specific rooms should earn you a full bucket of water.

Phase Five: You should have enough water to fill the hole in the labyrinth, allowing the needed object to float to you.

WHAT I KNOW

- I know that I will have to use the model editor to create some new entities that changes the description and function of the bucket's water levels (a 1/3 full bucket and a 2/3 full bucket.) I would have one entity removed and replaces with a different version of it when an item callback is used on the correct script area.

- I know how to make Phase Five work. I will do a fade out, a water pour sound effect, and have the entities appear before a fade in. Simple!

WHAT I NEED HELP WITH

- I have separated the three specific rooms with the water source from the main labyrinth level, making them each it's own specific level. There was too much data for all the levels to handle in unison before some entities and static objects failed to appear.

- In relation to this, I have learned that apparently some entites that you obtain from on level is not respond to Item Callbacks on other levels. The best given example is when I pick up an empty bucket in the labyrinth hall, and it will not respond to a script area in a different level that will have the small water sources.

- This is a non-linear quest. So I'm trying to find a way to make the bucket filling process work in any room in any order.

- I'm starting to believe that this is a situation where using Global Variables would be the ticket, but I'm not quite as familiar with how they work and how they are supposed to be properly used.

I hope I was clear enough with my explanation. I will in-hesitantly give some extra clarifications if there are other questions about this puzzle. The best I can ask for is an explanation on how using Global Variables can help.

So, thanks guys! And hello! Big Grin
10-12-2013, 12:58 AM
Find


Messages In This Thread
Scripting advice: Filling a bucket by three consecutive Item Callbacks. - by AlexWM05 - 10-12-2013, 12:58 AM



Users browsing this thread: 1 Guest(s)