Quests & NPC'ing guidelines and naming conventions

Claim Quest & NPC work
Post Reply
User avatar
roerich
Cruel Warlord
Posts: 1707
Joined: Sat Jan 03, 2015 3:10 pm
Location: Denmark

Quests & NPC'ing guidelines and naming conventions

Post by roerich » Tue Jan 13, 2015 1:00 pm

reserved

[horizontalline][/horizontalline]
Quests:




[horizontalline][/horizontalline]
NPCing:

User avatar
Texafornian
PT Modder
Posts: 146
Joined: Thu Sep 15, 2016 9:16 pm

Post by Texafornian » Thu Jan 04, 2018 8:51 pm

Some naming conventions for consideration, based on existing IDs in Sky_Main.esp:

IMPORTANT:
- Do not use leading underscores (_Sky_Dont_Do_This) in IDs as they can lead to unexpected behavior.
- Copying dialogue and scripts from Microsoft Word can introduce invalid punctuation characters. I've noticed better results copying stuff over from Notepad and Notepad++.
- IDs are limited to a maximum of 32 characters, BUT anything that can either exist with more than 1 copy or be referenced by a script must have a max of 24 characters. 8 additional characters (24 + 8 = 32) are tacked on when copies exist. This (can) apply to containers, NPCs, objects, and activators. (Thanks Rot!)
- Global variables or "Globals" (Gameplay -> Globals in the Construction Set) are "free" in that they cause no impact, FPS drop, slowdown, etc. Consider using them when a journal entry check alone won't work for whatever you're trying to do.

Quest Assets:
Ex: Sky_qRe_Kw01_Apple

Sky_ - All SHOTN ESP/ESM assets begin with Sky_
q - "quest"
Re - The region (The Reach in this case)
Kw - The city/location (Karthwasten)
01 - The claim number/identifier. If it's a faction quest chain, then one should add two letters before 01 such as TG01 for "Thieves Guild" or FG01 for "Fighters Guild"
Apple - The asset ID

Specific IDs:
Journal entries - Journal
Scripts - sc_Name

Example: Karthwasten Thieves Guild Quest 3
Sky_qRe_KwTG03_Journal - The journal ID for the quest
Sky_qRe_KwTG03_Dagger - The Cassius Family Dagger that Corelyn wants you to retrieve
Sky_qRe_KwTG03_sc_Dagger - The script on the dagger

One thing to note: This naming convention doesn't include the name of the quest in the IDs, just the claim identifier.

Quests with Mutliple Objectives/Non-Linear Paths
New journal IDs that have the same quest name (index of 0 with "Quest Name" checked) as another quest can be used to track objectives. Completed entries under the new journal IDs will be added to the same quest in the journal. (Thanks again to Rot)

Just append a suffix to the journal ID format like so: Sky_qRe_KwTG01_Journal_Name

Example: Karthwasten Thieves Guild Quest 2
Sky_qRe_KwTG02_Journal - The journal ID for the quest (with "Doing a Cat's Job" as the "Quest Name" in index 0 entry)
Sky_qRe_KwTG02_Journal_Driz - Journal ID for Driziiri delivery (with "Doing a Cat's Job" as the "Quest Name" in index 0 entry and "I have delivered moon sugar to Driziiri." as one other entry with an index of 10)
Sky_qRe_KwTG02_Journal_Ties - Journal ID for Ties-The-Bark delivery (with "Doing a Cat's Job" as the "Quest Name" in index 0 entry and "I have delivered moon sugar to Ties-The-Bark." as one other entry with an index of 10)

When the player delivers moon sugar to either NPC, a journal entry will appear under "Doing a Cat's Job" in the Quests tab of the journal. The dialogue conditions for completing the quest require the player to be at the correct stage in the quests Sky_qRe_KwTG02_Journal, Sky_qRe_KwTG02_Journal_Driz, Sky_qRe_KwTG02_Journal_Ties, (and Sky_qRe_KwTG02_Journal_Geod).
Last edited by Texafornian on Sat Jan 13, 2018 7:03 pm, edited 2 times in total.
CharGen Revamped: Expanded Lands | Alternate starts in PC, SHOTN, TR, and Solstheim

User avatar
Infragris
Project Administrator
Posts: 1301
Joined: Fri Jan 02, 2015 7:51 pm

Post by Infragris » Wed Jan 10, 2018 2:49 pm

As noted on Discord, using hyphens in ID's seems to be fine after all, the issue appears to be in some version of OpenCS or another program having difficulties compiling such scripts.

User avatar
Texafornian
PT Modder
Posts: 146
Joined: Thu Sep 15, 2016 9:16 pm

Post by Texafornian » Thu Jan 11, 2018 2:38 am

Thanks, I edited my original post. Still, SHOTN seems to use underscores in the vast majority of cases and it could be useful to keep one style.
CharGen Revamped: Expanded Lands | Alternate starts in PC, SHOTN, TR, and Solstheim

Post Reply

Return to “Unclaimed”