BarbyFN Posted August 8, 2015 Share Posted August 8, 2015 Activators can only have 1 script in GECK, but apparently GECK has a limitation in the length of single scripts, so I divided my long script in two smaller scripts (the script is short but manages too many items). How can I call 2 scripts from 1 activator? Link to comment Share on other sites More sharing options...
Deleted1205226User Posted August 8, 2015 Share Posted August 8, 2015 Couldn't you call the 2nd script at the end of the first? Link to comment Share on other sites More sharing options...
BarbyFN Posted August 8, 2015 Author Share Posted August 8, 2015 This would be perfect but how? This is my script working: scn A1DataScript Short Button Begin OnActivate ShowMessage A1DataMenu End Begin GameMode set Button to GetButtonPressed If ( Button == 0 ) Activate Endif If ( Button == 1 ) Playsound OBJComputerTerminalForward If Player.GetHasNote AWMNoteFFStashLocation ==1 Player.RemoveNote AWMNoteFFStashLocation A1TapeMachineREF.AddItem AWMNoteFFStashLocation 1 Endif If Player.GetHasNote AWMNoteMercenary ==1 Player.RemoveNote AWMNoteMercenary A1TapeMachineREF.AddItem AWMNoteMercenary 1 Endif If ... ; and 350 more if/endif blocks that I can separate in 2 scripts. Endif Endif End Is attached to the container, but I don't know commands to trigger scripts from other scripts, even in GECK official tutorial page. Link to comment Share on other sites More sharing options...
Deleted1205226User Posted August 8, 2015 Share Posted August 8, 2015 (edited) The script limit is 32,767 characters - that includes spaces and newlines.Have you checked in Notepad++ if you are within this limit? My knowledge in scripting is very limited. I thought there was an simple, easy and known way to call a script from a script, but apparently I'm wrong. Without knowing anything about it (call it an intuition), I suspect there might be a way for you with Form list. Also, Have a look at: http://forums.nexusmods.com/index.php?/topic/219290-geck-script-character-limit/ Edited August 8, 2015 by Guest Link to comment Share on other sites More sharing options...
Fallout2AM Posted August 11, 2015 Share Posted August 11, 2015 (edited) You can put a "fake" second activator, attach the second script which is written on an OnActivate block, and then in the first script use Activate to trigger it. I never used a solution like this since I mod NV and NVSE gives more possibilities, but I don't see why it shouldn't work, you can specify as parameter WHO is triggering it (I assume Player) and if the OnActivate block should run. However maybe there could be a smarter way to do that with FOSE and lists, it could deserve a look Edited August 11, 2015 by Fallout2AM Link to comment Share on other sites More sharing options...
BarbyFN Posted August 11, 2015 Author Share Posted August 11, 2015 Thanks Pixelhate and Fallout2AM, after considering all solutions, for this situation I've solved better by using two separated activators (one for text notes and other for audio and video), and it results even better because is easier to find them later according what I want to find (also looks better because I can fill with more devices my home :smile: ) Link to comment Share on other sites More sharing options...
Recommended Posts