Script and Quest help - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Script and Quest help (/thread-4480.html) |
Script and Quest help - Jordo76 - 09-17-2010 Hello,if you don't know i'm making a map (The Darkness,coming very very soon) and i need some help on some scripts and quest... First,the scripts : -I don't know how to made a script that blow all the selected torches,play wind effect & sound,close a door at the same time and make lantern oil-less/inactive...if someone could help And the quest/Memento : -I want to add memento but i can't,i checked the .lang of the game and found it was : Code: <Entry Name="Quest_NAMEOFMEMENTO_Text>DESCRIPTION OF MEMENTO</Entry> And if i'm right the code for addquest is : Code: AddQuest ("NAMEOFMEMENTO";"NAMEOFMEMENTO"); Please help me :/ RE: Script and Quest help - Liag - 09-17-2010 Code: //Use AddEntityCollideCallBack() in OnStart() to call this when player enters area This example is very simple and you should add timers and reaction sounds to make it more realistic. Also, you're using a semicolon instead of a comma in your AddQuest call (which would generate the error), unless you just got it wrong here. RE: Script and Quest help - Jordo76 - 09-17-2010 FORGOT THIS (LOOK THE EDIT) Thank you for this script and for answering but there is a little problem,i've done everything but still get an error : Code: FATAL ERROR: Could not load script file Look like there is a place where a ';' is missing but where Edit : Oh it's repaired,i accidently messed up with a script,i'm testing Edit 2 : The script don't start :/ Edit 3: For the Quest,i don't have to add AddQuest in the .hps to make it crash Just write the memento dialog in .lang file make it crash... Edit 4 : Corrected,work perfectly well,thank you,now if i find how to make memento the map will be out tomorrow i think RE: Script and Quest help - iTIMMEH - 09-17-2010 I'm looking at your last post and I'm not sure what your problem is, are you still having trouble making a memento entry? *edit* Well I decided to look at implementing mementos anyway, here's what I did to get one working: added the following code to my .hps file to add the memento when the map loads: Code: void OnStart() In my custom stories' folder I created a file called extra_english.lang containing the following: Code: <LANGUAGE> Hope this helps. RE: Script and Quest help - Jordo76 - 09-17-2010 It now work,i don't know why,maybe because i put test with a "t" and before i put it with a "T" but it now work and the map will be released tomorrow ! Someone can lock this subject,all my problems are resolved All i have to do now is make a screen.png for the description Does anyone know the dimensions ? Edit : Fixed ! I'm ready for release |