JimmyRyder Posted March 1, 2017 Share Posted March 1, 2017 Hello, me again, sorry I created a bunch of topics but I'm telling you, I searched everywhere and tried everything, and nothing worked so far. Situation: Player has to kill Tom, Tom has an holotape that is lootable after he's killed. (Stage 20)Tom dies, Player has to loot his holotape (Stage 30) Once looted, he has to activate it (no need to listen fully) (Stage 40)Player activated the holotape and has to find the hint (Stage 50) Problem: Stage won't set to 40 once the holotape is looted from Tom. Do you have anything that could help me? What I done so far: Script type: Object. scn MamboHolotapeACTIVScript begin OnAdd player if getStage MamboQuest01 >= 20 if getHasNote MamboHolotape01 setStage MamboQuest01 40 endif endif end I tried for hours every type of code. Any help is appreciated. Thanks. Link to comment Share on other sites More sharing options...
Ladez Posted March 1, 2017 Share Posted March 1, 2017 Since you can't attach scripts to notes, anything that needs to trigger upon picking up a note is usually handled with an intermediary item, usually a misc. object. I'm guessing this is what you are doing now. I don't see you adding the actual note anywhere in the script. Also, the GetHasNote condition is kind of redundant. Try this: scn MamboHolotapeACTIVScript begin OnAdd player if getStage MamboQuest01 >= 20 setStage MamboQuest01 40 endif AddNote MamboHolotape01 RemoveMe end RemoveMe removes the intermediary item so you end up with just the note. This should get you to where the player must listen to the note. To get to the next stage, use SetStage MamboQuest01 50 in the result script of the dialog topic that the note plays. Link to comment Share on other sites More sharing options...
JimmyRyder Posted March 1, 2017 Author Share Posted March 1, 2017 (edited) Thanks for your reply, it works for stage 50. I thought I could attach script to the note when picked up it set stages, but I guess you can't. Can you be more explicit on how to handle it with intermediary item ? Your script doesn't work probably because I missed something like the intermediary item. I'll try to figure out at the same time. Edited March 1, 2017 by JimmyRyder Link to comment Share on other sites More sharing options...
Ladez Posted March 1, 2017 Share Posted March 1, 2017 It's just a misc. item with a script that removes itself and gives you the note when you pick it up. Link to comment Share on other sites More sharing options...
JimmyRyder Posted March 1, 2017 Author Share Posted March 1, 2017 Like this ? It still doesn't work. http://image.noelshack.com/fichiers/2017/09/1488396798-mambo.png Link to comment Share on other sites More sharing options...
Ladez Posted March 1, 2017 Share Posted March 1, 2017 (edited) Does Tom have a script that sets the stage to 30? I assumed you had that covered. If you copied the script from my post it won't work if the stage is not at 20 or above. Edited March 1, 2017 by Ladez Link to comment Share on other sites More sharing options...
JimmyRyder Posted March 1, 2017 Author Share Posted March 1, 2017 (edited) Yes what I haven't mentionned is that Tom has bodyguards, and every bodyguards + Tom have to get killed to stage up to 30 and it works so far. (Dunno if that changes anything mentioning that) Stage is at 30 when I try, I want to it to go to 40 once the holotape is looted from his body. But it stays on 30 with "Loot his corpse, take the holotape" what I already done. Edited March 1, 2017 by JimmyRyder Link to comment Share on other sites More sharing options...
Ladez Posted March 1, 2017 Share Posted March 1, 2017 Did you put the note directly in Tom's inventory instead of the misc. item? The script won't run if you pick up the note that way, it needs to go through the intermediary so the OnAdd block runs. Link to comment Share on other sites More sharing options...
JimmyRyder Posted March 1, 2017 Author Share Posted March 1, 2017 HUGE THANKS ! Now it works! Btw, is it normal if the quest message displays after 5 sec ? It seems a bit longer than usual to me. Link to comment Share on other sites More sharing options...
Ladez Posted March 1, 2017 Share Posted March 1, 2017 Depends, the quest updates in the HUD are glitchy as hell. Sometimes they flash by in less than a second. Sometimes they don't appear at all. As long as the logic is working out I wouldn't worry. Link to comment Share on other sites More sharing options...
Recommended Posts