SP Tutorial Module System Character Nationality Tutorial

Users who are viewing this thread

Hello. I don't usually get the chance to write up tutorials, however, I spent the better part of the day, trying to solve this issue, and if my experience benefits just one other modder out there, then writing this up, will be worth it. With that being said, let's move on to the tutorial segment.

This evening, I'm going to be talking about adding to the list of Character Nationalities, which can be identified by the, "$character_nationality" string. We will be modifying two different python files, which I will run through the steps below.

For Modules similar to Native, use below. For Brytenwalda Sub-Modules, use the Brytenwalda Section below:

NATIVE TUTORIAL

-Open File: module_strings.py
-Find Code Segment:
Code:
("swadian","Swadian"),
-Add Code Segment:
Code:
("newnationality","New Nationality"),
-Find Code Segment:
Code:
("story_swadian","You are a Swadian and you are of an average height.^^"),
-Add Code Segment:
Code:
("story_newnationality","Describe Nationality^^"),
-Save File
-Open File: module_presentation.py
-Solve Mathematical Equation: x times 100 = y (x being the number of character nationalities)
-Find Code Segment:
Code:
(create_slider_overlay, "$g_presentation_obj_22",  100, y), # Nationality   : Swadian, Vaegir, Kherghit, Nord, Rhodhok
-Replace Code Segment:
Code:
y
with
Code:
Number from solution above
-Save File
-Compile

BRYTENWALDA TUTORIAL

-Open File: module_strings.py
-Find Code Segment:
Code:
("swadian3","Swadian (Short)"),
-Add Code Segment:
Code:
("newnationality","New Nationality"),
("newnationality2","New Nationality (Tall)"),
("newnationality3","New Nationality (Short)"),
-Find Code Segment:
Code:
("story_swadian3","You are a Swadian and and you are short in stature but agile.^^"),
-Add Code Segment:
Code:
("story_newnationality","Describe Nationality^^"),
("story_newnationality2","Describe Nationality Tall^^"),
("story_newnationality3","Describe Nationality Short^^"),
-Save File
-Open File: module_presentation.py
-Solve Mathematical Equation: x times 300 = y (x being the number of character nationalities)
-Find Code Segment:
Code:
(create_slider_overlay, "$g_presentation_obj_22",  100, y), # Nationality   : Swadian, Vaegir, Kherghit, Nord, Rhodhok
-Replace Code Segment:
Code:
y
with
Code:
Number from solution above
-Save File
-Compile

As I said earlier, I hope that this tutorial comes to help others out there.

~ Cesilia ❤
 
Back
Top Bottom