Calculates willpower and humanity.

Calculates blood pool.
Adds a bunch of comments.
This commit is contained in:
2023-03-02 04:23:17 -08:00
parent 970f78ffe5
commit 3e5628e360

View File

@@ -224,6 +224,7 @@ Type CharacterType
roadName As String roadName As String
roadValue As Integer roadValue As Integer
willpower As Integer willpower As Integer
bloodPool As Integer
' Special but don't know why ' Special but don't know why
conviction As Integer conviction As Integer
instinct As Integer instinct As Integer
@@ -1160,6 +1161,7 @@ Sub NewCharacter (ch As CharacterType)
ch.roadName = "" ch.roadName = ""
ch.roadValue = 0 ch.roadValue = 0
ch.willpower = 0 ch.willpower = 0
ch.bloodPool = 0
' Virtues ' Virtues
ch.selfControl = 1 ch.selfControl = 1
ch.courage = 1 ch.courage = 1
@@ -1396,7 +1398,7 @@ Sub CGGetRoad (ch As CharacterType)
' TODO: figure out how to calculate road/humanity (typhon below) ' TODO: figure out how to calculate road/humanity (typhon below)
ch.roadName = "Humanity" ch.roadName = "Humanity"
ch.roadValue = 5 'ch.roadValue = 5
End Sub End Sub
Sub CGSpendVirtuePoints (ch As CharacterType) Sub CGSpendVirtuePoints (ch As CharacterType)
@@ -1419,6 +1421,9 @@ Sub CGSpendVirtuePoints (ch As CharacterType)
ch.instinct = 3 ch.instinct = 3
End Sub End Sub
Sub CGSpendFreebiePoints (ch As CharacterType)
End Sub
' Ignore this warning ch is not used yet because the sub is not implemented yet. ' Ignore this warning ch is not used yet because the sub is not implemented yet.
Sub SaveCharacterSheet (ch As CharacterType) Sub SaveCharacterSheet (ch As CharacterType)
' Where do you want the file to be saved? (default is C:\Windows\Desktop)? ' Where do you want the file to be saved? (default is C:\Windows\Desktop)?
@@ -1436,12 +1441,18 @@ Sub CharacterGenerator ()
Call CGGetRoad(ch) Call CGGetRoad(ch)
Call CGSpendVirtuePoints(ch) Call CGSpendVirtuePoints(ch)
' TODO: figure out how to actually calculate generation; seems like a combination of 13 or 15 depending on clan and your generation background count
' Generation starts at 13 and goes down 1 point per point of the "generation" background. ' Generation starts at 13 and goes down 1 point per point of the "generation" background.
ch.generation = INITIAL_GENERATION - GetBackground(ch, BACKGROUND_GENERATION) ch.generation = INITIAL_GENERATION - GetBackground(ch, BACKGROUND_GENERATION)
' TODO: figure out how to calculate willpower ' Willpower
ch.willpower = 10 ch.willpower = ch.courage
' Humanity
ch.roadValue = ch.conscience + ch.selfControl
' Blood Pool - The only die roll.
ch.bloodPool = GetRandomInt(1, 10)
' Spend freebie points
Call CGSpendFreebiePoints(ch)
Call SaveCharacterSheet(ch) Call SaveCharacterSheet(ch)
Call ShowCharacterSheet(ch) Call ShowCharacterSheet(ch)
@@ -1557,30 +1568,40 @@ Sub FillAbilityValues (ch As CharacterType, values() As Integer, groupIndex As I
Next Next
End Sub End Sub
' Simpler character generator with fewer questions and more things done randomly without asking.
Sub CharacterGeneratorForDummies Sub CharacterGeneratorForDummies
Print "CharacterGeneratorForDummies" Print "CharacterGeneratorForDummies"
End Sub End Sub
' Maybe just remove this. It's kinda pointless. It asks some questions and calculates a contested roll.
' C1 dice pool, C1 difficulty, C2 dice pool, C2 difficulty, then rolls all the dice and does the math.
' In practice it's just slower than rolling the dice
Sub CombatComputer Sub CombatComputer
Print "CombatComputer" Print "CombatComputer"
End Sub End Sub
' Asks for a number of dice and a difficulty. Rolls the dice, calculates botches and successes.
Sub DiceRoller Sub DiceRoller
Print "DiceRoller" Print "DiceRoller"
End Sub End Sub
' Like the character generator if you choose random for everything. Should do random names/ages too, but doesn't yet.
Sub RandomCharacterGenerator Sub RandomCharacterGenerator
Print "RandomCharacterGenerator" Print "RandomCharacterGenerator"
End Sub End Sub
' This had a function at one point but got taken out. Will only come back if the disassembly can figure it out.
Sub Choice6 Sub Choice6
Print "Unnamed choice 6" Print "Unnamed choice 6"
End Sub End Sub
' Like the character generator but for vehicles. Much simpler with fewer questions. Prints a vehicle sheet when done. Never finished and crashes mid way through currently.
Sub VehicleGenerator Sub VehicleGenerator
Print "VehicleGenerator" Print "VehicleGenerator"
End Sub End Sub
' TODO: Look for other options that make sense in the menu. Random NPC generator. Spending experience points on a character. Some sort of character library.
Sub PressAnyKeyToContinue () Sub PressAnyKeyToContinue ()
While InKey$ = "": Wend While InKey$ = "": Wend
End Sub End Sub