Skip to content

Instantly share code, notes, and snippets.

@Flurrywinde
Created April 1, 2022 22:22
Show Gist options
  • Save Flurrywinde/d55f92d04fed35c9d1c3566859604197 to your computer and use it in GitHub Desktop.
Save Flurrywinde/d55f92d04fed35c9d1c3566859604197 to your computer and use it in GitHub Desktop.
GIST created by python code
digraph {
0 [label="START" shape=doublecircle fillcolor=chartreuse style=filled tooltip=""]
0 -> 67
67 [label="..." shape=box fillcolor=none style=filled tooltip="1: CREATE leadership 50
2: CREATE strength 50
4: Welcome to your very first ChoiceScript game! page_break Your majesty, your people are starving in t...
? (line 11)
"]
67 -> 64 [label="Make pre-emptive war on the western lands."]
64 [label="..." shape=box fillcolor=none style=filled tooltip="12: Make pre-emptive war on the western lands.
13: If you can seize their territory, your kingdom will flourish. But your army's morale is low and the..
? (line 15)
"]
64 -> 10 [label="Drive the peasants like slaves; if we work hard enough, we'll win."]
10 [label="T[128]" shape=box fillcolor=none style=filled tooltip="Unfortunately, morale doesn't work like that. Your army soon turns against you and the kingdom fall.."]
10 -> 30
64 -> 13 [label="Appoint charismatic knights and give them land, peasants, and resources."]
13 [label="T[139]" shape=box fillcolor=none style=filled tooltip="Your majesty's people are eminently resourceful. Your knights win the day, but take care: they may .."]
13 -> 30
64 -> 16 [label="Steal food and weapons from the enemy in the dead of night."]
16 [label="T[152]" shape=box fillcolor=none style=filled tooltip="A cunning plan. Soon your army is a match for the westerners; they choose not to invade for now, bu.."]
16 -> 30
67 -> 65 [label="Beat swords to plowshares and trade food to the westerners for protection."]
65 [label="..." shape=box fillcolor=none style=filled tooltip="28: Beat swords to plowshares and trade food to the westerners for protection.
29: The westerners have you at the point of a sword. They demand unfair terms from you.
? (line 31)
"]
65 -> 22 [label="Accept the terms for now."]
22 [label="T[118]" shape=box fillcolor=none style=filled tooltip="Eventually, the barbarian westerners conquer you anyway, destroying their bread basket, and the enti.."]
22 -> 30
65 -> 25 [label="Threaten to salt our fields if they don't offer better terms."]
25 [label="T[54]" shape=box fillcolor=none style=filled tooltip="They blink. Your majesty gets a fair price for wheat."]
25 -> 30
67 -> 66 [label="Abdicate the throne. I have clearly mismanaged this kingdom!"]
66 [label="..." shape=box fillcolor=none style=filled tooltip="39: Abdicate the throne. I have clearly mismanaged this kingdom!
40: The kingdom descends into chaos, but you manage to escape with your own hide. Perhaps in time you ca..
44: vars (Other links: 19 23 27 35 38)
45: SET leadership 10
46: SET strength 10
48: What do you prefer?
? (line 49)
"]
66 -> 36 [label="Leadership"]
36 [label="SET leadership +10" shape=hexagon fillcolor=powderblue style=filled tooltip=""]
36 -> 40
66 -> 39 [label="Strength"]
39 [label="SET strength +10" shape=hexagon fillcolor=powderblue style=filled tooltip=""]
39 -> 40
40 [label="action" shape=cds fillcolor=orange style=filled color=red penwidth=5 tooltip="1.2.45.46.51: leadership=20 strength=10
1.2.45.46.54: leadership=10 strength=20 "]
40 -> 42
42 [label="?" shape=triangle fillcolor=cornsilk style=filled tooltip=""]
42 -> 44 [label="Run for class president"]
44 [label="IF leadership > 15" shape=diamond fillcolor=cornsilk style=filled color=red penwidth=5 tooltip="leadership = 20,10 "]
44 -> 45 [label="Y"]
45 [label="T[21]" shape=box fillcolor=none style=filled tooltip="You win the election."]
45 -> 1
44 -> 47 [label="N"]
47 [label="T[22]" shape=box fillcolor=none style=filled tooltip="You lose the election."]
47 -> 1
42 -> 50 [label="Lift weights"]
50 [label="IF strength > 15" shape=diamond fillcolor=cornsilk style=filled color=red penwidth=5 tooltip="strength = 10,20 "]
50 -> 51 [label="Y"]
51 [label="T[21]" shape=box fillcolor=none style=filled tooltip="You lift the weights."]
51 -> 1
50 -> 53 [label="N"]
53 [label="T[65]" shape=box fillcolor=none style=filled tooltip="You drop the weights and hurt yourself badly. You never recover."]
53 -> 1
1 [label="END" shape=doublecircle fillcolor=firebrick style=filled color=red penwidth=5 tooltip="1.2.45.46.51: leadership=20 strength=10
1.2.45.46.54: leadership=10 strength=20 "]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment