Page 1 of 1

Saving custom overlays with scenario

Posted: Sun Jun 04, 2017 5:59 am
by Hestia
Sorry if this was answered before, but I couldn't find it anywhere.

When creating a scenario is there a way to save any custom overlays inside the scenario so next time you load the scenario those overlays would be loaded as well?

RE: Saving custom overlays with scenario

Posted: Sun Jun 04, 2017 6:47 am
by michaelm75au
Yes, you need to load them when the scenario is loaded.
Trigger: Scenario loaded
Action: ScenEdit_UseAttachment('68869353-1f37-468b-8890-8eaf780610d7')
ScenEdit_UseAttachment('3ee283bf-b63a-4d68-adb0-5a29dc1a1a66')
ScenEdit_UseAttachment('dc11a06e-f88f-4610-bca1-87c45718b778')
ScenEdit_UseAttachment('478c41cc-6a0b-4db5-9c06-461f013c579d')
ScenEdit_UseAttachment('7ea14ad8-55d4-4212-8fad-df59c7a88e15')
---
The attachments are the overlays

RE: Saving custom overlays with scenario

Posted: Sun Jun 04, 2017 1:35 pm
by Hestia
Thank you, Michael!

LE: works like a charm! :)

RE: Saving custom overlays with scenario

Posted: Mon Jun 05, 2017 5:36 am
by TYHo
Hmmm... I must be doing something wrong... How do you copy the attachment GUID to the Action Lua script? Type it manually? There should be a more efficient method right? Thanks!

RE: Saving custom overlays with scenario

Posted: Mon Jun 05, 2017 7:15 pm
by Hestia
Look for the folder named "AttachmentRepo" in the game installation location. Inside it you'll find folders for each attachment you've added. Those folders' names are actually the GUIDs you need to copy in the Action Lua scripts.
I don't know a quicker method.

RE: Saving custom overlays with scenario

Posted: Tue Jun 06, 2017 1:14 pm
by TYHo
Got it, thanks!