Skip to content

Instantly share code, notes, and snippets.

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