okay so i have four extaction ovens where you have to put an object inside I would like to make it so if you put the "object" inside the area that I've put in the oven The object self goes inactive and an other "object" goes actvive so it looks like you put it in the,
but I go to the problem I want to make it that you have to put four diffrent objects inside. so if you hav just on and yoyupull the lever you will see a messag in the screen "you don't have enough ingredients" but if you pull it when all the objects are inside but not at the correct place it says liek incorrect combination and if you have it int he right order it will just work.
But I can't really figure out how to make it so thta it only works if its the right combination.
Edit: also if there is a way to make and if statement with an active object than I think I could handle it myself :/
CURRENTLY WORKING ON: Final Light = 40%
Need of voice actors.
(This post was last modified: 09-08-2012, 01:02 PM by Steve.)
Look around inside "Machine Room" (original amnesia map) and analyze it's coal system. Try to replicate it to the best of your ability, and only if you're completely out of ideas, should you post for help. I'm sensing you just want the script done, since usually, people give us at least an overview of their own attempts scripting their puzzle.
well yes I tried to anylyse the map Machine Room but I couldn't reaaly figure it out so I asked for soem advice :\
and if else just taking over the code from the original doens't really help you to learn how to do this in the future...
CURRENTLY WORKING ON: Final Light = 40%
Need of voice actors.
(This post was last modified: 09-08-2012, 05:01 PM by Steve.)
I wish i had the time to test this myself, I think it could be done with Local Variable, and If statements.
If the item is the correct one after the first that entered. it would add 1 to a Local Variable.
If the current number of items is not 4 it will display the message.
i really would like to work on it. but i don't have the time for it pt.
yeah if there was a way to use the if function to check if there is an entity active I think I know how I can do it but I have no idea if it is possible to do that.
CURRENTLY WORKING ON: Final Light = 40%
Need of voice actors.
There is.... Ok i will give it a try... give me a couple of minutes...
EDIT: OK I'm done.
Ok so assuming that you already know how to display messages, then here is the script.
Tell me if you need explanation.
I did not make the "Not enough ingredients"-part. Instead it just says "Incorrect combination". Because that is technically also an incorrect combination.
object_1 = first object
object_2 = second object
object_3 = third object
object_4 = fourth object
Lever_1 = lever. Pull it UP to trigger function
AreaOven_1 = A script area in first oven. It has "ItemInteraction" checked
AreaOven_2 = A script area in second oven. It has "ItemInteraction" checked
AreaOven_3 = A script area in third oven. It has "ItemInteraction" checked
AreaOven_4 = A script area in fourth oven. It has "ItemInteraction" checked
thanks a ton beecake
I will look at it in detail later, but at first glance i saw giveitem the puzzle is with drag objects, I might be wrong and it's just for drag objects. if so my bad.
thanks anyway
CURRENTLY WORKING ON: Final Light = 40%
Need of voice actors.
(09-08-2012, 06:37 PM)Steve Wrote: thanks a ton beecake
I will look at it in detail later, but at first glance i saw giveitem the puzzle is with drag objects, I might be wrong and it's just for drag objects. if so my bad.
thanks anyway
(09-08-2012, 06:37 PM)Steve Wrote: thanks a ton beecake
I will look at it in detail later, but at first glance i saw giveitem the puzzle is with drag objects, I might be wrong and it's just for drag objects. if so my bad.
thanks anyway
The puzzle is with items in your inventory
yeah I thought so I will look if I can modify the code so it will work for drag objects(if possible) or else if have to make the item pick ubject that will aken a time or find another way
and could you tell me how an if entity active code looks like? just a question it could be usefull
CURRENTLY WORKING ON: Final Light = 40%
Need of voice actors.
(This post was last modified: 09-08-2012, 06:44 PM by Steve.)