1
0
Эх сурвалжийг харах

fix `goddess`-start in example-mod

Stephan Fuchs 11 сар өмнө
parent
commit
c13e236a4a

+ 98 - 86
sugarcube/src/mods/example/exampleMod.tw

@@ -1,88 +1,100 @@
-:: intro_sg_select_char_after[mod modExample]
-<<act 'Godess'>>
-    <<gt 'modExample_intr_sg_select_godess'>>
-<</act>>
+:: mod_goddess_scripts[script]
+setup.startingCharacters ??= {};
+setup.startingCharacters.mod = {
+	parent: 'sg_starting_category',
+	label: 'Modded starts',
+	image: 'mods/example/start.jpg',
+	desc: 'These starts are added by mods.',
+	pc:{
+		bmi: 22,
+		legHairVisibility: 4,
+		skinAppearance: 0,
+		tan: 0
+	},
+	
+	traits:{
+		nerd_points:60,
+		nerd_status:2,
+		nerd_lernHome:5,
+	},
+	
+	npcs:{
+		bulk:{
+			nerds:{
+				values:{
+					fam: 500,
+					rel: 65
+				}
+			},
+			parents_social:{
+				values:{
+					rel: 70
+				}
+			}
+		}
+	},
+	tags: ['nerd']
+};
 
+setup.startingCharacters.mod_goddess = {
+	parent: 'mod',
+	label: 'Godess',
+	image: 'mods/example/start.jpg',
+	desc: `Strong, intelligent and beautiful: some people think that you have a divine touch.`,
+	pc:{
+		bmi: 19,
+		faceGeneticAttractiveness: 3,
+		hairColor: 3,
+		legHairVisibility: 0,
+		skinAppearance: 1,
+		teethQuality:0,
+		tits: 4,
+		willpowermax: 100
+	},
+	skills:{
+		charisma:80,
+		highHeels:80,
+		inhibition:30,
+		makeup:80,
+		people:80,
+		persuasion:80,
+		iceskating:80,
+		spirit:80,
+		chess:80,
+		computer:80,
+		gaming:80,
+		intelligence:100,
+	},
+	finances:{
+		cash: 20000
+	},
+	items:{
+		cosmetics:100,
+		razor:100
+	},
+	school:{
+		grades:{	art:75,	bio:80,	comp:80,	eng:85,	geo:80,	his:80,	lit:80,	math:85,	mus:75,	pe:60,	rus:80,	sci:90,	shop:55	},
+		group: 'nerds'
+	},
+	npcs:{
+		bulk:{
+			cool:{	values:{	fam: 300,	rel: 75}},
+			jocks:{	values:{	fam: 200,	rel: 75}},
+			nerds:{	values:{				rel: 75}},
+			gopniks:{values:{	fam: 200,	rel: 75}},
+			ouctasts:{values:{	fam: 200,	rel: 75}},
+		}
+	},
+	wardrobe:{
+		items:{
+			'school_33':'add',
+			'moncheri_gown_16':'wear',
+			'moncheri_shoes_59':'wear',
+			'moncheri_coat_7':'wear',
+			'lusso_bra_18':'wear',
+			'lusso_panties_18':'wear',
+			'fashionista_purse_8':'wear'
+		}
+	}
+};
 
-:: modExample_intr_sg_select_godess[mod modExample]
-    <h2>Godess</h2>
-	<<image "mods/example/start.jpg">>
-	<p>
-		Strong, intelligent and beautiful: some people think that you have a divine touch.
-	</p>
-	<<actCLA 'Select another option'>>
-		<<gt 'intro_sg_select_char'>>
-	<</actCLA>>
-	<<actCLA 'Confirm this option'>>
-		<<gs 'intro_sg_select_char_nerd'>>
-
-		<<set $pc.legHair = -1>>
-		<<set $pc.pcs_hairbsh = 1>>
-		<<set $finances.cash = 20000>>
-		<<set $alterstrtimg = 8>>
-		<<run $pc.skillSetLevel('charisma',100)>>
-		<<run $pc.skillSetLevel('spirit',100)>>
-		<<run $pc.skillSetLevel('iceskating',100)>>
-		<<run $pc.skillSetLevel('people',100)>>
-		<<run $pc.skillSetLevel('persuasion',100)>>
-		<<run $pc.skillSetLevel('makeup',100)>>
-		<<run $pc.skillSetLevel('agility',100)>>
-		<<run $pc.skillSetLevel('strength',100)>>
-		<<run $pc.skillSetLevel('reaction',100)>>
-		<<set $pc.pcs_inhib = 40>>
-		<<run $pc.skillSetLevel('highHeels',100)>>
-		<<set $pirsC = 2>>
-		<<set $PirsC2_owned = 1>>
-		<<set $currentpursetype = 'fashionista'>>
-		<<set $currentpursenumber = 13>>
-		<<setinit $fashionista_purses[13] = 1>>
-		<<set $bag = 1>>
-		<<gs 'npc_relationship' 'socialgroup_setting' 10 5 10 5 5 5>>
-		<<run $npcs.set('A18','rel',1)>>
-		<!-- !!make sure this coming after the gs code above will still set christina to a 1 relationship, if I did this code correctly, if not look for this code in other spots and fix it pls-->
-		<<run $q.school.func('groupRelSet','cool',300)>>
-		<<run $q.school.func('groupRelSet','nerds',900)>>
-		<<run $q.school.func('groupRelSet','teachers',700)>>
-		<<set $kosmetica = 10>>
-		<<set $stanok = 10>>
-		<<if getvar("$player_avatar") == 0>>
-			<<set $pc.pcs_hairlng = 300>>
-			<<set $pc.eyesize = 3>>
-			<<set $pc.lip_size = 2>>
-			<<set $pc.eyelashes = 1>>
-		<</if>>
-		<<set $pc.pcs_skin = 2000>>
-		<<set $pc.pcs_teeth = 0>>
-
-		<<set $pc.genbsize = 30>>
-		<!-- !!d cup for ideal bmi-->
-		<<set $pc.salo = 105>>
-		<<set $pc.willpowermax = 100>>
-		<<run $q.school.func('grade_award','math',85)>>
-		<<run $q.school.func('grade_award','rus',90)>>
-		<<run $q.school.func('grade_award','lit',80)>>
-		<<run $q.school.func('grade_award','art',75)>>
-		<<run $q.school.func('grade_award','bio',80)>>
-		<<run $q.school.func('grade_award','pe',60)>>
-		<<run $q.school.func('grade_award','eng',85)>>
-		<<run $q.school.func('grade_award','geo',80)>>
-		<<run $q.school.func('grade_award','sci',80)>>
-		<<run $q.school.func('grade_award','shop',55)>>
-		<<run $q.school.func('grade_award','comp',80)>>
-		<<run $q.school.func('grade_award','mus',75)>>
-		<<run $q.school.func('grade_award','his',80)>>
-		<<set $pc.glass = 0>>
-		<<set $pc.hairColor = 3>>
-		<<set $pc.pcs_teeth = -1>>
-		<<set $pc.modExample_isGodessStart = true>>
-		<<gt 'intro_sg_finalize'>>
-	<</actCLA>>
-
-:: intro_initialization_after[mod modExample]
-<<if $pc.modExample_isGodessStart>>
-	<<run $wardrobe.wear(['clothes','moncheri',16,'gown'])>>
-	<<run $wardrobe.wear(['shoes','moncheri',59])>>
-	<<run $wardrobe.wear(['coat','moncheri',7])>>
-	<<run $wardrobe.wear(['bra','lusso',18])>>
-	<<run $wardrobe.wear(['panties','lusso',18])>>
-<</if>>