Frictional Games Forum (read-only)
[SOLVED]Memento dont work - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SOLVED]Memento dont work (/thread-25361.html)

Pages: 1 2


RE: Memento dont work - Rowzter - 05-25-2014

(05-25-2014, 02:57 PM)Romulator Wrote:
Spoiler below!

(05-25-2014, 02:22 PM)Badcat5550 Wrote: Try this

void padlockquest(string &in asParent, string &in asChild, int alState)
{
AddQuest ("YOUR AREA NAME", "padlockdoor");
}

because I think I found the problem!

If that works then why not give me a rating if you want.

(03-27-2014, 01:03 AM)Traggey Wrote: Don't EVER.


EVER
<EVER>

Ask for rep.

Thanks.

Just sayin' Tongue


Add this to the .hps file which has the locked Level door in its .map file:
PHP Code:
void OnStart()
{
AddUseItemCallback("""level_door_key_name""level_door_name""unlock_level_door"true);
//Change level_door_key_name and level_door_name to their respective names in the level editor, but keep the quotes ("").
}

void unlock_level_door(string &in asItemstring &in asEntity)
{
SetLevelDoorLocked(asEntityfalse);


Does that really works since the door and the key are on different levels?. shall try this out!


RE: Memento dont work - Romulator - 05-25-2014

I don't see why it shouldn't. Just make sure the name of the key matches up with the script you use where the Level Door is located!


RE: Memento dont work - Rowzter - 05-25-2014

(05-25-2014, 03:01 PM)Romulator Wrote: I don't see why it shouldn't. Just make sure the name of the key matches up with the script you use where the Level Door is located!

that worked fine =D

I just read somewhere that you have to make something globalvariants if 2 items or whatever aren't in the same level/map. whatever thanks for the help everyone!


RE: Memento dont work - Romulator - 05-25-2014

Globals are only used when you need to check something across two or more maps.

In the case of unlocking a level door in another map using global vars, a likely method to use would be the levers.

But since a key can be taken between two maps, you don't need to worry about it!
Good luck on your project!


RE: Memento dont work - Rowzter - 05-25-2014

(05-25-2014, 03:17 PM)Romulator Wrote: Globals are only used when you need to check something across two or more maps.

In the case of unlocking a level door in another map using global vars, a likely method to use would be the levers.

But since a key can be taken between two maps, you don't need to worry about it!
Good luck on your project!

Thank You! =D