|
@@ -0,0 +1,493 @@
|
|
|
+# beta_journal_relationships
|
|
|
+!! Date Created: October, 2024
|
|
|
+!! Version: .01 - initial release
|
|
|
+!! Author: Hooded Silence
|
|
|
+!! Purpose: Contains the navigation elements for all Pertinent data for NPC relations in game
|
|
|
+
|
|
|
+if $ARGS[0] = 'init':
|
|
|
+ *clr & cla
|
|
|
+ !! Do we need to load a vcard or just index the NPCs?
|
|
|
+ $loc_id = 'beta_journal_relationships'
|
|
|
+ $hot_link = $loc_id
|
|
|
+ gs 'beta_journal', 'nav_construct'
|
|
|
+ '<center>'
|
|
|
+ !! panel_show - trigger for which relationship panel that is open
|
|
|
+ !! 1 Family, 2 Pavlovsk, 3 Gadukino, 4 city, 5 Pushkin, 6 School
|
|
|
+ if panel_show ! 1 or panel_show = 0:
|
|
|
+ '<a href="exec:panel_show = 1 & gs ''<<$loc_id>>'', ''init''">Show Family</a>'
|
|
|
+ elseif panel_show = 1:
|
|
|
+ '<i>Show Family</i>'
|
|
|
+ gs $loc_id, 'rel_family'
|
|
|
+ end
|
|
|
+ if panel_show ! 2:
|
|
|
+ '<a href="exec:panel_show = 2 & gs ''<<$loc_id>>'', ''init''">Show Pavlovsk NPCs</a>'
|
|
|
+ elseif panel_show = 2:
|
|
|
+ '<i>Show Pavlovsk NPCs</i>'
|
|
|
+ gs $loc_id, 'rel_pavlovsk'
|
|
|
+ end
|
|
|
+ if panel_show ! 3:
|
|
|
+ '<a href="exec:panel_show = 3 & gs ''<<$loc_id>>'', ''init''">Show Gadukino NPCs</a>'
|
|
|
+ elseif panel_show = 3:
|
|
|
+ '<i>Show Gadukino NPCs</i>'
|
|
|
+ gs $loc_id, 'rel_gudukino'
|
|
|
+ end
|
|
|
+ if panel_show ! 4:
|
|
|
+ '<a href="exec:panel_show = 4 & gs ''<<$loc_id>>'', ''init''">Show St Petersburg NPCs</a>'
|
|
|
+ elseif panel_show = 4:
|
|
|
+ '<i>Show St Petersburg NPCs</i>'
|
|
|
+ gs $loc_id, 'rel_city'
|
|
|
+ end
|
|
|
+ if panel_show ! 5:
|
|
|
+ '<a href="exec:panel_show = 5 & gs ''<<$loc_id>>'', ''init''">Show Pushkin NPCs</a>'
|
|
|
+ elseif panel_show = 5:
|
|
|
+ '<i>Show Pushkin NPCs</i>'
|
|
|
+ gs $loc_id, 'rel_pushkin'
|
|
|
+ end
|
|
|
+ if panel_show ! 6:
|
|
|
+ '<a href="exec:panel_show = 6 & gs ''<<$loc_id>>'', ''init''">Show School NPCs</a>'
|
|
|
+ elseif panel_show = 6:
|
|
|
+ '<i>Show Gadukino NPCs</i>'
|
|
|
+ gs $loc_id, 'rel_school'
|
|
|
+ end
|
|
|
+ '</center>'
|
|
|
+end
|
|
|
+
|
|
|
+!! Friends and Relations
|
|
|
+
|
|
|
+if $ARGS[0] = 'rel_family':
|
|
|
+ '<center><table width="90%" cellspacing="0" cellpadding="0" valign="top">'
|
|
|
+ if kid > 0 or arrsize('$lover') > 0: gs $loc_id, 'rel_spouse_kids'
|
|
|
+ rel_id = 29
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ rel_id = 28
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ rel_id = 33
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ rel_id = 34
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ '</table></center>'
|
|
|
+end
|
|
|
+
|
|
|
+if $ARGS[0] = 'rel_spouse_kids':
|
|
|
+ '<center><h2>Lovers & Children</h2></center>'
|
|
|
+ if kid > 0:
|
|
|
+ i = 0
|
|
|
+ if kid = 1:
|
|
|
+ '<th>You have a child, a <<$polreb[0]>> named <<$kidname[0]>>. Born <<daykid[0]>>-<<monthkid[0]>>-<<yearkid[0]>>. Aged <<kidage[0]>>.</th>'
|
|
|
+
|
|
|
+ else
|
|
|
+ 'You have children:'
|
|
|
+ :LoopKidCounter
|
|
|
+ if i < kid:
|
|
|
+ '<th> a <<$polreb[i]>> named <<$kidname[i]>>. Born <<daykid[i]>>-<<monthkid[i]>>-<<yearkid[i]>>. Aged <<kidage[i]>>.</th>'
|
|
|
+ i += 1
|
|
|
+ jump 'LoopKidCounter'
|
|
|
+ end
|
|
|
+ end
|
|
|
+ *nl
|
|
|
+ *nl
|
|
|
+ end
|
|
|
+
|
|
|
+ jnl_i = 0
|
|
|
+ jnl_max_i = arrsize('$lover')
|
|
|
+ :loverjournalloop
|
|
|
+ if jnl_i < jnl_max_i:
|
|
|
+ gs 'npcStat', $lover[jnl_i], 'i'
|
|
|
+
|
|
|
+ if mid($npc_rel_type[$npcID9], 1, 2) = 'ex':
|
|
|
+ jnl_i += 1
|
|
|
+ jump 'loverjournalloop'
|
|
|
+ end
|
|
|
+
|
|
|
+ if $npc_rel_type[$npcID9] = 'husband':
|
|
|
+ 'You have been married for <<daystart - spouseVars[''marry_day'']>> days. Your husband <<$npcdesc9>> is <<$npcheight9>> and <<$npcbuild9>> with <<$npchair9>> hair. <<$npcdesc9>> is usually wearing <<$npcClo9>>. Member <<$dick_desc9>> cock and <<$dick_girth9>>. Relationship <<npc_rel[$npcID9]>>.'
|
|
|
+ else
|
|
|
+ 'Your <<$npcrelat9>> <<$npcdesc9>> is <<$npcheight9>> and <<$npcbuild9>> with <<$npchair9>> hair. <<$npcdesc9>> is usually wearing <<$npcClo9>>. Your relationship is <<npc_rel[$npcID9]>> after <<npc_dates[$npcID9]>> dates and <<daystart - npc_daygenerated[$npcID9]>> days dating.'
|
|
|
+ end
|
|
|
+
|
|
|
+ gs 'indik', '1', npc_rel[$npcID9], npc_rel[$npcID9], 100
|
|
|
+ '<<$ind>>'
|
|
|
+
|
|
|
+ if npc_rel[$npcID9] > 1:
|
|
|
+ if npc_gentle[$npcID9] = 1:
|
|
|
+ '<<$Xec9>> is timid and lacks confidence.'
|
|
|
+ elseif npc_rough[$npcID9] = 0:
|
|
|
+ '<<$Xec9>> has a cheerful and sociable personality.'
|
|
|
+ else
|
|
|
+ '<<$Xec9>> is short-tempered and strict.'
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
+ *nl
|
|
|
+
|
|
|
+ jnl_i += 1
|
|
|
+ jump 'loverjournalloop'
|
|
|
+ end
|
|
|
+ killvar 'jnl_i'
|
|
|
+ killvar 'jnl_max_i'
|
|
|
+end
|
|
|
+if $ARGS[0] = 'rel_pavlovsk':
|
|
|
+ '<center><table width="90%" cellspacing="0" cellpadding="0" valign="top">'
|
|
|
+ if npc_rel['A54'] > 0:
|
|
|
+ rel_id = 54
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A57'] > 0:
|
|
|
+ rel_id = 57
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A217'] > 0:
|
|
|
+ rel_id = 217
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A112'] > 0:
|
|
|
+ rel_id = 112
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A119'] > 0:
|
|
|
+ rel_id = 119
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ '</table></center>'
|
|
|
+end
|
|
|
+if $ARGS[0] = 'rel_school':
|
|
|
+end
|
|
|
+if $ARGS[0] = 'rel_city':
|
|
|
+ '<center><table width="90%" cellspacing="0" cellpadding="0" valign="top">'
|
|
|
+ if npc_rel['A192'] > 0:
|
|
|
+ rel_id = 192
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A218'] > 0:
|
|
|
+ rel_id = 218
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A219'] > 0:
|
|
|
+ rel_id = 219
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A220'] > 0:
|
|
|
+ rel_id = 220
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A93'] > 0:
|
|
|
+ rel_id = 93
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A43'] > 0:
|
|
|
+ rel_id = 43
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A35'] > 0:
|
|
|
+ rel_id = 35
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A169'] > 0:
|
|
|
+ rel_id = 169
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A89'] > 0:
|
|
|
+ rel_id = 89
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ if npc_rel['A216'] > 0:
|
|
|
+ rel_id = 216
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ end
|
|
|
+ '</table></center>'
|
|
|
+
|
|
|
+ ! '<center><h2>Other Relations</h2></center>'
|
|
|
+ ! Uncomment if re-introduced into the game ensure you use NPC ID to update them
|
|
|
+ ! if alla > 0: 'Friendship with Alla <<alla>>'
|
|
|
+ ! if masha > 0: 'Friendship with Masha <<masha>>'
|
|
|
+ ! if npc_rel['A41'] > 0: 'Friendship with Givi K. <<npc_rel[''A41'']>>'
|
|
|
+ ! if npc_rel['A42'] > 0: 'Friendship with Ashot <<npc_rel[''A42'']>>'
|
|
|
+end
|
|
|
+if $ARGS[0] = 'rel_gadukino':
|
|
|
+ '<center><h3>Gadukino</h3></center>'
|
|
|
+ if npc_rel['A31'] > 0 or npc_rel['A32'] > 0:
|
|
|
+ '<center><h3>Great Grandparents</h3></center>'
|
|
|
+ '<table width="90%" align="center" width="90%" cellspacing="0" cellpadding="0" valign="top">'
|
|
|
+ rel_id = 31
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ rel_id = 32
|
|
|
+ gs $loc_id, 'npc_preview'
|
|
|
+ '</table>'
|
|
|
+ end
|
|
|
+ '</table>'
|
|
|
+ if npc_rel['A31'] > 0: 'Friendship with Elena (your great-grandmother):' & gs 'journal', 'relindex', 'A31'
|
|
|
+ if npc_rel['A32'] > 0: 'Friendship with Zlatek (your great-grandfather):' & gs 'journal', 'relindex', 'A32'
|
|
|
+ if npc_rel['A60'] > 0: 'Friendship with Mira:' & gs 'journal', 'relindex', 'A60'
|
|
|
+ if npc_rel['A61'] > 0: 'Friendship with Kolyamba:' & gs 'journal', 'relindex', 'A61'
|
|
|
+ if npc_rel['A62'] > 0: 'Friendship with Vasyan:' & gs 'journal', 'relindex', 'A62'
|
|
|
+ if npc_rel['A63'] > 0: 'Friendship with Mitka:' & gs 'journal', 'relindex', 'A63'
|
|
|
+ if npc_rel['A64'] > 0: 'Friendship with Afanasiy:' & gs 'journal', 'relindex', 'A64'
|
|
|
+ if npc_rel['A65'] > 0: 'Friendship with Vtialiy:' & gs 'journal', 'relindex', 'A65'
|
|
|
+ if npc_rel['A221'] > 0: 'Friendship with Grigory:' & gs 'journal', 'relindex', 'A221'
|
|
|
+ if npc_rel['A172'] > 0: 'Friendship with Andrei (hunter):' & gs 'journal', 'relindex', 'A172'
|
|
|
+ if npc_rel['A173'] > 0: 'Friendship with Igor (hunter):' & gs 'journal', 'relindex', 'A173'
|
|
|
+ if npc_rel['A174'] > 0: 'Friendship with Sergei (hunter):' & gs 'journal', 'relindex', 'A174'
|
|
|
+ '<a href="exec:pavlovsk_show = 0 & gs ''<<$loc_id>>'', ''init''">Hide Gadukino NPCs</a>'
|
|
|
+end
|
|
|
+if $ARGS[0] = 'rel_pushkin':
|
|
|
+ !! Ballet Maya
|
|
|
+end
|
|
|
+
|
|
|
+!! relationship functions
|
|
|
+
|
|
|
+if $ARGS[0] = 'relationstab':
|
|
|
+
|
|
|
+
|
|
|
+ if mid($start_type,1,2) = 'sg' and SchoolAtestat = 0 and SchoolBlock = 0:
|
|
|
+
|
|
|
+ '<center><h2>Standings by Social Group</h2></center>'
|
|
|
+
|
|
|
+ if grupTipe < 5 and grupvalue[grupTipe] > 700:
|
|
|
+ $journal_school_standing = ' You are well respected and liked within your clique.'
|
|
|
+ elseif grupTipe < 5 and grupvalue[grupTipe] > 300:
|
|
|
+ $journal_school_standing = ' You are in good standing with your clique.'
|
|
|
+ elseif grupTipe < 5:
|
|
|
+ $journal_school_standing = '<font color="red"> You have to work on your clique standing. You''re in danger of being cast out.</font>'
|
|
|
+ end
|
|
|
+
|
|
|
+ if grupTipe = 0:
|
|
|
+ 'You are not a member of any particular school social group.' + $journal_school_standing
|
|
|
+ elseif grupTipe = 1:
|
|
|
+ 'Your school social group consists of the popular, cool and beautiful.' + $journal_school_standing
|
|
|
+ elseif grupTipe = 2:
|
|
|
+ 'Your school social group consists of jocks and natural athletes.' + $journal_school_standing
|
|
|
+ elseif grupTipe = 3:
|
|
|
+ 'Your school social group consists of nerds, geeks and good students.' + $journal_school_standing
|
|
|
+ if nerd_game['game_day'] > daystart: 'You have been invited to a games night on <<$week[(week + (nerd_game[''game_day''] - daystart))]>> at '+func('time', 'get_time_string', 20, 0, cheatVars['time_format'])+' in the community center library.'
|
|
|
+ if nerd_game['game_day'] = daystart: 'You have been invited to a games night tonight at '+func('time', 'get_time_string', 20, 0, cheatVars['time_format'])+' in the community center library.'
|
|
|
+ elseif grupTipe = 4:
|
|
|
+ 'Your school social group consists of gopniks, rebels, punks or troublemakers.' + $journal_school_standing
|
|
|
+ elseif grupTipe = 5:
|
|
|
+ 'Your school social group consists of losers, teacher''s pets, sluts and the ugly.'
|
|
|
+ end
|
|
|
+ *nl
|
|
|
+
|
|
|
+ 'Cool Kids'
|
|
|
+
|
|
|
+ gs 'indik', '4', grupvalue[1]/10, grupvalue[1], 1 & '<<$ind>>'
|
|
|
+
|
|
|
+ 'Jocks'
|
|
|
+ gs 'indik', '4', grupvalue[2]/10, grupvalue[2], 2 & '<<$ind>>'
|
|
|
+
|
|
|
+ 'Nerds'
|
|
|
+ gs 'indik', '4', grupvalue[3]/10, grupvalue[3], 3 & '<<$ind>>'
|
|
|
+
|
|
|
+ 'Gopnik'
|
|
|
+ gs 'indik', '4', grupvalue[4]/10, grupvalue[4], 4 & '<<$ind>>'
|
|
|
+
|
|
|
+ '<center><h2>Popular Kids Relations</h2></center>'
|
|
|
+
|
|
|
+ if npc_rel['A1'] > 0: 'Friendship with Dimka:' & gs 'journal', 'relindex', 'A1'
|
|
|
+ if npc_rel['A4'] > 0: 'Friendship with Igor:' & gs 'journal', 'relindex', 'A4'
|
|
|
+ if npc_rel['A14'] > 0: 'Friendship with Katja:' & gs 'journal', 'relindex', 'A14'
|
|
|
+ if npc_rel['A15'] > 0: 'Friendship with Vicky:' & gs 'journal', 'relindex', 'A15'
|
|
|
+ if npc_rel['A17'] > 0: 'Friendship with Irina:' & gs 'journal', 'relindex', 'A17'
|
|
|
+ if npc_rel['A22'] > 0: 'Friendship with Bella:' & gs 'journal', 'relindex', 'A22'
|
|
|
+ if npc_rel['A146'] > 0: 'Friendship with Marcus:' & gs 'journal', 'relindex', 'A146'
|
|
|
+ if npc_rel['A147'] > 0: 'Friendship with Andrey:' & gs 'journal', 'relindex', 'A147'
|
|
|
+ if npc_rel['A148'] > 0: 'Friendship with Mefodiy:' & gs 'journal', 'relindex', 'A148'
|
|
|
+ if soniaQW['slut'] = 0 and npc_rel['A25'] > 0: 'Friendship with Sonia:' & gs 'journal', 'relindex', 'A25'
|
|
|
+ if npc_rel['A139'] > 0: 'Friendship with Stasya:' & gs 'journal', 'relindex', 'A139'
|
|
|
+ if npc_rel['A140'] > 0: 'Friendship with Lizaveta:' & gs 'journal', 'relindex', 'A140'
|
|
|
+
|
|
|
+ '<center><h2>Jocks Relations</h2></center>'
|
|
|
+
|
|
|
+ if npc_rel['A3'] > 0: 'Friendship with Ivan:' & gs 'journal', 'relindex', 'A3'
|
|
|
+ if fedormasha = 0 and npc_rel['A5'] > 0: 'Friendship with Fedor:' & gs 'journal', 'relindex', 'A5'
|
|
|
+ if npc_rel['A8'] > 0: 'Friendship with Svyatoslav:' & gs 'journal', 'relindex', 'A8'
|
|
|
+ if npc_rel['A13'] > 0: 'Friendship with Lariska:' & gs 'journal', 'relindex', 'A13'
|
|
|
+ if npc_rel['A18'] > 0: 'Friendship with Christina:' & gs 'journal', 'relindex', 'A18'
|
|
|
+ if npc_rel['A19'] > 0: 'Friendship with Lina:' & gs 'journal', 'relindex', 'A19'
|
|
|
+ if npc_rel['A23'] > 0: 'Friendship with Albina:' & gs 'journal', 'relindex', 'A23'
|
|
|
+ if npc_rel['A149'] > 0: 'Friendship with Lazar:' & gs 'journal', 'relindex', 'A149'
|
|
|
+ if npc_rel['A150'] > 0: 'Friendship with Erast:' & gs 'journal', 'relindex', 'A150'
|
|
|
+ if npc_rel['A141'] > 0: 'Friendship with Veronika:' & gs 'journal', 'relindex', 'A141'
|
|
|
+ if npc_rel['A165'] > 0: 'Friendship with Vanya:' & gs 'journal', 'relindex', 'A165'
|
|
|
+
|
|
|
+ '<center><h2>Nerds Relations</h2></center>'
|
|
|
+
|
|
|
+ if npc_rel['A2'] > 0: 'Friendship with Artem:' & gs 'journal', 'relindex', 'A2'
|
|
|
+ if npc_rel['A6'] > 0: 'Friendship with Petka:' & gs 'journal', 'relindex', 'A6'
|
|
|
+ if npc_rel['A12'] > 0: 'Friendship with Julia:' & gs 'journal', 'relindex', 'A12'
|
|
|
+ if npc_rel['A16'] > 0: 'Friendship with Natasha:' & gs 'journal', 'relindex', 'A16'
|
|
|
+ if npc_rel['A151'] > 0: 'Friendship with Evgeny:' & gs 'journal', 'relindex', 'A151'
|
|
|
+ if npc_rel['A152'] > 0: 'Friendship with Feofan:' & gs 'journal', 'relindex', 'A152'
|
|
|
+ if npc_rel['A153'] > 0: 'Friendship with Gerasim:' & gs 'journal', 'relindex', 'A153'
|
|
|
+ if npc_rel['A142'] > 0: 'Friendship with Zinaida:' & gs 'journal', 'relindex', 'A142'
|
|
|
+ if npc_rel['A240'] > 0: 'Friendship with Natalia:' & gs 'journal', 'relindex', 'A240'
|
|
|
+
|
|
|
+ '<center><h2>Gopnik Relations</h2></center>'
|
|
|
+
|
|
|
+ if npc_rel['A9'] > 0: 'Friendship with Vitek:' & gs 'journal', 'relindex', 'A9'
|
|
|
+ if npc_rel['A10'] > 0: 'Friendship with Dan:' & gs 'journal', 'relindex', 'A10'
|
|
|
+ if npc_rel['A11'] > 0: 'Friendship with Vasily:' & gs 'journal', 'relindex', 'A11'
|
|
|
+ if npc_rel['A20'] > 0: 'Friendship with Lena:' & gs 'journal', 'relindex', 'A20'
|
|
|
+ if npc_rel['A21'] > 0: 'Friendship with Lera:' & gs 'journal', 'relindex', 'A21'
|
|
|
+ if npc_rel['A24'] > 0: 'Friendship with Pauline:' & gs 'journal', 'relindex', 'A24'
|
|
|
+ if npc_rel['A154'] > 0: 'Friendship with Radomir:' & gs 'journal', 'relindex', 'A154'
|
|
|
+ if npc_rel['A155'] > 0: 'Friendship with Lavrenti:' & gs 'journal', 'relindex', 'A155'
|
|
|
+ if npc_rel['A156'] > 0: 'Friendship with Arkadi:' & gs 'journal', 'relindex', 'A156'
|
|
|
+ if npc_rel['A157'] > 0: 'Friendship with Roman:' & gs 'journal', 'relindex', 'A157'
|
|
|
+ if npc_rel['A158'] > 0: 'Friendship with Valentin:' & gs 'journal', 'relindex', 'A158'
|
|
|
+ if npc_rel['A143'] > 0: 'Friendship with Alyona:' & gs 'journal', 'relindex', 'A143'
|
|
|
+ if npc_rel['A144'] > 0: 'Friendship with Anushka:' & gs 'journal', 'relindex', 'A144'
|
|
|
+ if npc_rel['A145'] > 0: 'Friendship with Ekaterina:' & gs 'journal', 'relindex', 'A145'
|
|
|
+ if npc_rel['A189'] > 0: 'Friendship with Niko:' & gs 'journal', 'relindex', 'A189'
|
|
|
+
|
|
|
+ '<center><h2>Outcast/Loner Relations</h2></center>'
|
|
|
+
|
|
|
+ if npc_rel['A7'] > 0: 'Friendship with Lesco:' & gs 'journal', 'relindex', 'A7'
|
|
|
+ if npc_rel['A159'] > 0: 'Friendship with Petia:' & gs 'journal', 'relindex', 'A159'
|
|
|
+ if soniaQW['slut'] > 0 and npc_rel['A25'] > 0: 'Friendship with Sonia:' & gs 'journal', 'relindex', 'A25'
|
|
|
+ if fedormasha = 1 and npc_rel['A5'] > 0: 'Friendship with Fedor:' & gs 'journal', 'relindex', 'A5'
|
|
|
+
|
|
|
+ '<center><h2>Teachers/Coaches/School Staff Relations</h2></center>'
|
|
|
+
|
|
|
+ if npc_rel['A26'] > 0: 'Friendship with Anatoly Tsarev (Math Teacher):' & gs 'journal', 'relindex', 'A26'
|
|
|
+ if npc_rel['A69'] > 0: 'Friendship with Mikhail Nikolaevich (Volleyball Coach):' & gs 'journal', 'relindex', 'A69'
|
|
|
+ if npc_rel['A128'] > 0: 'Friendship with Makar Vasilyev (Art Teacher):' & gs 'journal', 'relindex', 'A128'
|
|
|
+ if npc_rel['A129'] > 0: 'Friendship with Serafim Ivanov (Computer Science Teacher):' & gs 'journal', 'relindex', 'A129'
|
|
|
+ if npc_rel['A130'] > 0: 'Friendship with Ilya Yenotin (Literature Teacher):' & gs 'journal', 'relindex', 'A130'
|
|
|
+ if npc_rel['A131'] > 0: 'Friendship with Viktor Pavlovich (P.E. Teacher):' & gs 'journal', 'relindex', 'A131'
|
|
|
+ if npc_rel['A132'] > 0: 'Friendship with Ruslan Kuznetsov (Shop Teacher):' & gs 'journal', 'relindex', 'A132'
|
|
|
+ if npc_rel['A133'] > 0: 'Friendship with Rolan Metveev (Janitor):' & gs 'journal', 'relindex', 'A133'
|
|
|
+ if npc_rel['A134'] > 0: 'Friendship with Aleksandrina Volkov (Headmistress):' & gs 'journal', 'relindex', 'A134'
|
|
|
+ if npc_rel['A135'] > 0: 'Friendship with Yeva Sokoloff (Geography Teacher):' & gs 'journal', 'relindex', 'A135'
|
|
|
+ if npc_rel['A136'] > 0: 'Friendship with Olga Aleksandrov (School Nurse):' & gs 'journal', 'relindex', 'A136'
|
|
|
+ if npc_rel['A137'] > 0: 'Friendship with Raven Braakman (English Teacher):' & gs 'journal', 'relindex', 'A137'
|
|
|
+ if npc_rel['A138'] > 0: 'Friendship with Arina Orlov (Biology Teacher):' & gs 'journal', 'relindex', 'A138'
|
|
|
+
|
|
|
+
|
|
|
+ !!!WD: Formatting
|
|
|
+ if (npc_rel['A93'] + npc_rel['A41'] + npc_rel['A42'] + npc_rel['A43'] + gosh + npc_rel['A220'] + npc_rel['A219'] + npc_QW['A192'] + npc_rel['A218']) > 0:*nl
|
|
|
+ *nl
|
|
|
+
|
|
|
+ end
|
|
|
+end
|
|
|
+
|
|
|
+if $ARGS[0] = 'npc_preview':
|
|
|
+ !! creates the npc table.
|
|
|
+ '<tr><th width="10%"><img height=''50'' src="images/characters/shared/headshots_main/<<rel_id>>.jpg"></th>'
|
|
|
+ '<th width="30%"><<$npc_firstname[''A<<rel_id>>'']>> <<$npc_lastname[''A<<rel_id>>'']>> (<<$npc_nickname[''A<<rel_id>>'']>>):'
|
|
|
+ gs 'journal', 'relindex', 'A<<rel_id>>'
|
|
|
+ '</th><th align left>Events</th></tr>'
|
|
|
+end
|
|
|
+
|
|
|
+!! This function creates a interface to access NPC data and quest history in a legible way, modify the layout at your own peril!
|
|
|
+
|
|
|
+if $ARGS[0] = 'vcard':
|
|
|
+ !!NOTE: all data is pulled from a data file called quest_data_a<npc_id> for each npc quest - use quest_data_274 as an example!
|
|
|
+ *clr & cla
|
|
|
+ $quest_id = 'A' + ARGS[1]
|
|
|
+ $loc_id = 'beta_journal_quests'
|
|
|
+ !! Debug Section
|
|
|
+ if ARGS[1] = 0:
|
|
|
+ gt $loc_id, 'failure', 'id'
|
|
|
+ end
|
|
|
+ !! Initiate NPC data.
|
|
|
+ if $npc_quest['q_next'] = '':
|
|
|
+ !! qstage = current stage index
|
|
|
+ qstage = 1
|
|
|
+ end
|
|
|
+ gs 'quest_data_<<$quest_id>>', 'init'
|
|
|
+ !! Reset to correct location
|
|
|
+ $loc_id = 'beta_journal_quests'
|
|
|
+ !! Ensure quest data fields are populated
|
|
|
+ if $npc_quest['body'] ='':
|
|
|
+ gt $loc_id, 'failure', 'quest_body'
|
|
|
+ end
|
|
|
+ if $npc_quest['q_next'] = '':
|
|
|
+ gt $loc_id, 'failure', 'nav_forward'
|
|
|
+ end
|
|
|
+ if $npc_quest['q_back'] = '':
|
|
|
+ gt $loc_id, 'failure', 'nav_back'
|
|
|
+ end
|
|
|
+ !! Section used to generate the user quests and other pertinent information
|
|
|
+ !! Start vcard construction
|
|
|
+ $vcard += '<center><h3>Ballet Quests - Characters</h3></center>'
|
|
|
+ $vcard += '<br>'
|
|
|
+ $vcard += '<div width="80%">'
|
|
|
+ $vcard += '<div style="width: 120px; padding: 0; float:left"><img style="height:100px;" src="<<$npc_img_path[''<<$quest_id>>'']>>/<<ARGS[1]>>_profile.jpg"></div>'
|
|
|
+ $vcard += '<div style="padding: 0;">'
|
|
|
+ $vcard += '<p><ul style="margin:0; padding:0;">Name: <<$npc_firstname[''<<$quest_id>>'']>> "<<$npc_nickname[''<<$quest_id>>'']>>" <<$npc_lastname[''<<$quest_id>>'']>></ul>'
|
|
|
+ $vcard += '<ul style="margin:0; padding:0;">Date of Birth: ' + func('shortgs', 'convert_dob', ARGS[1]) + ' </ul>'
|
|
|
+ $vcard += '<ul style="margin:0; padding:0;">Home: ' + iif($npc_home['$quest_id'] = '', 'Not known', $npc_home['$quest_id'] ) + '</ul>'
|
|
|
+ $vcard += '<ul style="margin:0; padding:0;">Location: Unknown</ul>'
|
|
|
+ !! if debug is enabled show pop up msg:
|
|
|
+ if debug['code'] = 1:
|
|
|
+ gs 'quest_data_a<<ARGS[1]>>', 'debug'
|
|
|
+ $vcard += '<ul style="margin:0; padding:0;">Debug Vars:<a href="exec:msg <<$npc_quest[''debug_data'']>>">Quest Vars (pop up)</a></ul>'
|
|
|
+ end
|
|
|
+ $vcard += '</p></div>'
|
|
|
+ $vcard += '</div>'
|
|
|
+ $vcard += '<br>'
|
|
|
+
|
|
|
+ !! Output
|
|
|
+ $vcard
|
|
|
+
|
|
|
+ !! Start quest body construction
|
|
|
+ $qsteps += '<div width = "80%">'
|
|
|
+ $qsteps += '<div style="padding: 10px;">'
|
|
|
+ $qsteps += '<h4>🔎 Quest hints:</h4>'
|
|
|
+ if journal_hints = 0:
|
|
|
+ $qsteps += '<a href="exec: journal_hints = 1 & gt ''<<$loc_id>>'', ''vcard'', <<ARGS[1]>>" >Enable hints</a><font color = "red"><b> Spoilers!</b></font> '
|
|
|
+ else
|
|
|
+ $qsteps += $npc_quest['hints']
|
|
|
+ $qsteps += '<br> <br>'
|
|
|
+ $qsteps += '<a href="exec: journal_hints = 0 & gt ''<<$loc_id>>'', ''vcard'', <<ARGS[1]>>">Disable hints</a> '
|
|
|
+ end
|
|
|
+ $qsteps += '<br>'
|
|
|
+ $qsteps += '<h4>🧭 Quest requisites:</h4>'
|
|
|
+ $qsteps += '<p><<$npc_quest[''body'']>></p>'
|
|
|
+ $qsteps += '<br>'
|
|
|
+ $qsteps += '</div>'
|
|
|
+ $qsteps += '<div style="padding:5px; align: center;">'
|
|
|
+ $qsteps += '<center><h5>Quest History</h5></center>'
|
|
|
+
|
|
|
+ if $npc_quest['q_next'] = 'null':
|
|
|
+ $next_nav = 'Current Stage'
|
|
|
+ else
|
|
|
+ $next_nav = '<a href="gs ''<<$loc_id>>'', ''navigation'', ''next'' "" >Next Stage</a> <b>→</b>'
|
|
|
+ end
|
|
|
+ if $npc_quest['q_back'] = 'null':
|
|
|
+ $back_nav = 'Quest Start'
|
|
|
+ else
|
|
|
+ $back_nav = '<b>←</b> <a href="gs ''<<$loc_id>>'', ''navigation'', ''back'' " >Previous Stage</a> '
|
|
|
+ end
|
|
|
+ $qsteps += '<center><<$back_nav>> | <<$next_nav>></center>'
|
|
|
+ $qsteps += '</div>'
|
|
|
+ $qsteps += '</div>'
|
|
|
+ $qsteps += '<br>'
|
|
|
+ $qsteps += '<br>'
|
|
|
+
|
|
|
+ !! Output
|
|
|
+ $qsteps
|
|
|
+
|
|
|
+ !! Clean up
|
|
|
+ killvar '$vcard'
|
|
|
+ killvar '$qsteps'
|
|
|
+ killvar 'quest_id'
|
|
|
+ killvar '$evt_suffix'
|
|
|
+end
|
|
|
+!! Vcard Navigation bar
|
|
|
+if $ARGS[0] = 'navigation':
|
|
|
+ $nav_click = $ARGS[1]
|
|
|
+ if $ARGS[1] ! '' and qstage = 1:
|
|
|
+ $npc_quest['q_back'] = 'null'
|
|
|
+ elseif qstage > 1 and $nav_click = 'next':
|
|
|
+ qstage += 1
|
|
|
+ elseif qstage >= 2 and $nav_click ='back':
|
|
|
+ qstage -= 1
|
|
|
+ else
|
|
|
+ $debug['journal'] = 'Navigation failed to be set.'
|
|
|
+ end
|
|
|
+ killvar '$nav_click'
|
|
|
+ gs 'quest_data_<<$quest_id>>', 'init'
|
|
|
+ gs 'beta_journal_quests', 'init'
|
|
|
+end
|
|
|
+--- beta_journal_relationships ---------------------------------
|