*title A Mage Reborn
*author Adam Alamsyah
*scene_list
  startup
  whichbook

*comment whichbook

*comment stats creation
*create alchemy 50
*create thaum 50
*create enchantment 50
*create spiritism 50
*create charisma 50
*create spellblade 50
*create learning 50
*create intrigue 50
*create noble 50
*create charming 50
*create emotional 50
*create optimistic 50
*create arcana 50
*create compassionate 50
*create prestige 0
*create fname ""
*create lname ""
*create karcana false

*comment customization
*create hairlength ""
*create haircolor ""
*create eyecolor ""
*create build ""
*create skintone ""
*create specialty ""
*create robecolor ""
*create robeaccent ""
*create specialtyset false
*create appearanceset false
*create genderset false
*create gender ""
*create they ""
*create their ""
*create theirs ""
*create them ""
*create theyre ""
*create themselves ""
*create profession ""

*comment additional stats
*create phant1 ""
*create phant1title ""
*create phant1acq false
*create sirdame ""
*create mask ""
*create callsign ""
*create hairgrow false
*create haircut false
*create joaquin 0
*create canride false

*comment story progression markers
*create settinghistory false
*create codexarcana false
*create memorypoint ""

*comment statchange
*create statchange false
*create charmingj false
*create reservedj false
*create noblej false
*create pragmaticj false
*create optimisticj false
*create cynicalj false
*create emotionalj false
*create stoicj false
*create precharming 50
*create prenoble 50
*create preoptimistic 50
*create preemotional 50

*comment relationships
*create kleon 0
*create ksaine 0
*create kilya 0
*create ktahlia 0
*create kfalco 0
*create kyusuha 0
*create kander 0
*create keli 0
*create rleon 0
*create rsaine 0
*create rilya 0
*create rtahlia 0
*create rfalco 0
*create ryusuha 0
*create reli 0
*create rander 0
*create leonrom false
*create ilyarom false
*create falcorom false
*create yusuharom false
*create eliinterest false
*create elirom false
*create anderrom false
*create falcopseudorom false

*comment !!!!!!!!!!!!!!!! SECTION: RELATIONSHIP DYNAMICS !!!!!!!!!!!!!!!!!!!

*comment Romance Conflict Variables
*comment when leonrom/ilyarom variables are triggered while book 2 romances progress, these variables will be inspected. likely once, but perhaps multiple times as different characters' flags arise.
*comment instances triggered: chapter 9 (thulrum redux), eli feels scene
*comment romconflictscene is set to true if mage has already had to consider first book romance vs second book romance
*comment instance(s) triggered: chapter 9 (thulrum redux), eli feels scene
*create romconflictscene false

*comment Leon Miscellaneous Variables
*comment THE FOLLOWING FOUR VARIABLES ARE MUTUALLY EXCLUSIVE, ONLY ONE CAN BE TRUE AT A TIME
*comment leonforgivelove is set to true if mage decides to forgive leon and sitll has feelings for him
*create leonforgivelove false
*comment leonforgivedone is set to true if mage decides to forgive leon but has moved on
*create leonforgivedone false
*comment leonunforgivenlove is set to true if mage decides to not forgive leon, but still has feelings for him
*create leonunforgivenlove false
*comment leondeadtome is set to true if mage decides not to forgive leon and no longer has feelings (like damn bro u fucked up bad)
*create leondeadtome false

*comment Ilya Miscellaneous Variables
*comment THE FOLLOWING THREE VARIABLES ARE MUTUALLY EXCLUSIVE, ONLY ONE CAN BE TRUE AT A TIME
*comment ilyaover is set to true if mage decides that their death naturally separates them from ilya, and things are better that way
*create ilyaover false
*comment ilyawaitsee is set to true if mage decides to see how things are with ilya before coming to a proper conclusion
*create ilyawaitsee false
*comment ilyalove is set to true if mage decides that they won't stop loving ilya
*create ilyalove false

*comment Eli Miscellaneous Variables
*comment elichilly is set to true if mage says they don't want eli with them when they leave arcadia at the start of chapter 9 (thulrum redux)
*create elichilly false
*comment elihired is set to true if offered to hire eli at the start of chapter 9 (thulrum redux)
*create elihired false

*comment Flame Variables, denotes whether the mage has decided to move on from leon/ilya, or still carries a torch for them
*comment instance(s) triggered: chapter 9 (thulrum redux), eli feels scene
*create leonoldflame false
*create leontorch false
*create ilyaoldflame false
*create ilyatorch false

*comment Isander/Isadine Miscellaneous Variables
*comment andername is set to true when the mage decides to give ander/adine their name, whether it be their real name or their alias
*create andername false
*comment anderredqueen is set to true if ander gives the red queen to the mage
*create anderredqueen false

*comment genderflip
*create falco ""
*create yusuha ""
*create elias ""
*create ander ""
*create isander ""
*create geli ""
*create gfalco ""
*create gyusuha ""
*create gander ""
*create ehe ""
*create ehis ""
*create ehim ""
*create etheirs ""
*create ehes ""
*create evar 1
*create yhe ""
*create yhis ""
*create yhim ""
*create ytheirs ""
*create yhes ""
*create yvar 1
*create fhe ""
*create fhis ""
*create fhim ""
*create ftheirs ""
*create fhes ""
*create fvar 1
*create ahe ""
*create ahis ""
*create ahim ""
*create atheirs ""
*create ahes ""
*create avar 1

*comment companion skills
*create lsword 65
*create ltrans 60
*create lstrength 60
*create lendurance 40
*create sdagger 60
*create sblink 50
*create sspeed 70
*create sperception 50
*create itheurgy 75
*create ienchantment 65
*create ialchemy 45
*create ythaum 85
*create yarcana 0
*create yspeed 55
*create fspiritism 80
*create fspear 65
*create fenchantment 60
*create farcana 0
*create ttheurgy 90
*create tarcana 100
*create esword 65
*create earcana 0

*comment miscellaneous
*create silcur 0
*create temp1 ""
*create ultima ""
*create ilyarescue ""
*create injury ""
*create witchnight false
*create proarcadia "anti"
*create forgiveleon ""
*create firstspell ""
*create ultima2 ""
*create saineace false
*create aroace false
*create ilyahouse false
*create ilyasaint false
*create ilyafwb false
*create deacon false
*create acting false
*create gaelalive true
*create razorready true
*create colossusinjury false
*create colossusalive true
*create baronalive true
*create silcurtruth false
*create survivorcount 0
*create spellbladereveal false

*comment plotbranchers
*create garilolives true

*comment chapter6
*create thulrumbranch ""
*create memoryhallghisan false
*create memoryhallmural false

*comment chapter7
*create thulshopvar 1

*comment OLD DEMO VARIABLES
*create reglairespiritgate false
*create campsurvivor ""
*create yotaisaine false
*create ilyaplsforgiveleon false
*create eliawkward false
*create sainetellbess false
*create fkantena false
*create findfalcoflyss false

*comment miscchapter10+
*create agreeteach false
*create falcoepisode false
*comment campsurvivor values: "sheltered", "taken", "jania"
*create letterto ""
*create tahliamindreader false
*comment triggerwarnings
*create arailefull true
*create arcanaercei false

*comment REWRITE
*create fakename ""
*create realname ""
*create alias false
*create usedraegusa false

*comment spellhistory
*comment thaum
*create tcounter 0
*create boomeranggale false
*create moranaswail false
*create flametongue false
*create waterwyrm false
*create thunderstrike false
*create sunflame false
*create stonegraveyard false
*create seagodspiel false
*create galesong false
*create siegeoffrost false
*create skywrath false
*comment alchemy
*create acounter 0
*create everblaze false
*create claycannon false
*create heimantivenom false
*create manarecoverypotion false
*create witchnightspell false
*create poisonkiss false
*create rustelixir false
*create draughtofclarity false
*create draughtofquickrecovery false
*create palmerra false
*create rustmissile false
*create cureall false
*create routelen false
*create zone false
*create unmaker false
*create marionette false
*create widowsstream false
*comment enchantment
*create ecounter 0
*create glyphofbinding false
*create glyphofrunefire false
*create glyphofsubjugation false
*create glyphofimmunity false
*create glyphofinvisibility false
*create glyphofmagesong false
*create glyphofailment false
*create glyphofprotection false
*create glyphofstrength false
*create glyphofdispel false
*create glyphofterror false
*create glyphofslumber false
*create glyphofweakness false
*create glyphofmanaburn false
*create glyphofsealing false
*create glyphofreaping false
*create glyphofconfinement false
*create curseofbonds false
*create banecircle false
*comment spiritism
*create scounter 0
*create visionsofthedamned false
*create fistofthedarklord false
*create rancor false
*create spiritgate false
*create spiritcloak false
*create possession false
*create heartrender false
*create danceofdecay false
*create poltergeist false
*create gatebreaker false
*comment arcana
*comment satiel
*create satiel false
*create reckoninglight false
*create holyaegis false
*create greatintercession false
*comment airas
*create airas false
*create venomdance false
*create arcoferasure false
*create arcofinception false
*comment gweila
*create gweila false
*create shamanselegy false
*create songofalacrity false
*create avatar false
*comment nyx
*create nyx false
*create plaguehand false
*create danceofthedead false
*create soultaker false

*comment coding stuff
*create implicit_control_flow true
*create plural false
*create pronvar 3
*create phantvar 1
*create specialvar 1

*comment yotaivars
*create yupathbool false
*create fpathbool false
*create elipathbool false

*comment achievements general
*achievement charismaleaf visible 15 In the Spotlight
    Pursue the path of charisma.
    Or what passes for it in a backwater town, at least.
    
*achievement learningleaf visible 15 Page-turner
    Pursue the path of learning.
    The lone obsession no one can fault a mage for.

*achievement intrigueleaf visible 15 Shadow Disciple
    Pursue the path of intrigue.
    Let's pretend it sounds cool, shall we?

*achievement leafend visible 10 A Bellgrove Farewell
    Leave your shelter in the peaceful village.
    May fortune smile upon your separate paths.

*achievement elyssianslay visible 10 Elyssian Slayer
    Fell a rampaging forest beast.
    Is mystical beast on the menu tonight?
    
*achievement healilya visible 10 Healer, Healer
    Save a theurge's life.
    Robes on fire?

*achievement rushin visible 10 Fortune Favors the Bold
    When faced with overwhelming odds, choose to face them head-on.
    And she's calling your name.

*achievement retreat visible 10 To Fight Another Day
    When faced with overwhelming odds, beat a strategic retreat.
    Wisdom is not to be mistaken for cowardice.
    
*achievement maxcamp visible 30 All Preserver
    Rescue all of the kidnapped children.
    Against impossible odds, you prevailed.

*achievement injury visible 15 Paid the Price
    Sustain a permanent bodily injury.
    Injury for lives seems like a decent bargain.

*achievement leoncantcook visible 15 No Sugarcoating
    Criticize a companion's plat du jour.
    Unlike his stew, you're pretty sure.
    
*achievement witchnight visible 15 Witches' Brew
    Play a pivotal role in the brewing of witchnight.
    It was a good explosion after all.

*achievement foundfam visible 15 Found Family
    Reassure a companion of their new home's validity.
    All rise against the old birth lottery.

*achievement sainedoyou visible 15 Sleeping Dogs
    Refuse to pry into a companion's past.
    Let them lie when they should, where they should.

*achievement charismacali visible 15 Old Faces, New Places
    Encounter old acquaintances in an unlikely place.
    And they look better than ever.

*achievement learningcali visible 15 Unslakable
    Find ways to further your learning, no matter how menial.
    Obsession doesn't even begin to cover it anymore….
    
*achievement intriguecali visible 15 Switcheroo
    Become the client of your old employer's nemesis.
    Shame that eternal loyalty wasn't in the contract.

*achievement retainer visible 10 Royal Protector
    Become a retainer to Parami royalty.
    Got a nice ring to it, doesn't it?

*achievement maxplague visible 30 Savior of the Damned
    Save as many of the plagued villagers as you possibly can.
    Your best efforts were exerted, even in the worst of times.
    
*achievement nobaron visible 10 Sickle Moon Rising
    Leave without finding the truth behind the moonvein plague.
    Some mysteries are not meant to be solved.

*achievement yesbaron visible 25 Sickle Moon Setting
    Discover the truth behind the moonvein plague.
    Wicked things hide under the shadow of the moon.
    
*achievement brokenflame visible 15 Sparks in the Shadows
    Learn the existence of a secret noble order.
    Time will yet tell whether it grows to a wicked blaze.

*achievement escapesienan visible 10 The Great Egress
    Escape with your life from the trenches of death.
    Make it away from certain death by the skin of your teeth.

*achievement rebel visible 10 Sunshade
    Become an integral part of the Sun Prince's resistance.
    May his light reach all corners of Param.

*achievement attackante visible 10 Enough Is Enough
    Attack a supposed ally who's been a thorn in your side.
    Stubborn suspicion may yet become truth.

*achievement bustgate visible 20 Archmage at the Gate
    Play an instrumental role in the first step of the reconquest.
    And all shall tremble before your might.

*achievement terrorbane visible 20 Terrorbane
    Dispatch the bearer of the terror curse with minimal casualties.
    Fear has no place in your domain.

*achievement attacksister visible 15 No Quarter for the Wicked
    Launch a surprise attack against your nemesis.
    One does what one must to win.

*achievement defeatsister visible 10 Thicker than Blood
    Defeat your greatest adversary.
    Your savior, your tormentor—now lies dead at your feet.

*achievement killpaladins visible 15 The Ends and the Means
    Defeat the paladins en route to the cathedral.
    Sometimes you must kill to save.

*achievement dontkillpaladins visible 15 Bliss and Mercy
    Take no lives en route to the cathedral.
    Become not the monster you seek to defeat.

*achievement antagonist visible 15 Demon of Sienan
    Play the villain, even if you were anything but.
    Forevermore a name spoken only in damnation and fear.

*achievement innocent visible 15 Martyr of Sienan
    Insist on your innocence to the bearer of your fate.
    Tears and blood upon the executioner's blade.
    
*achievement evasive visible 15 Enigma of Sienan
    Dance around the subject of your condemnation.
    A shifting reflection in the mirror of innocence.

*achievement letilya visible 15 Last Glimmer
    Allow a risky rescue attempt to take place.
    It was sweet while it lasted.

*achievement dontletilya visible 15 Silenced Hope
    Dissuade your companions from risking themselves.
    No one else shall bear the weighty load of your fate.

*achievement pleadforleon visible 15 Mercy, Mercy
    Plead the case of your would-be executioner.
    Who but you could mend that bridge?

*achievement end visible 10 Hero's Rest
    Pass quietly to your ultimate fate.
    Pass quietly to your ultimate fate.
    
*comment relationship achievements
*achievement leonrom visible 15 Sun-kissed
    Romance the Sun Prince.
    Warmth on your lips, in your lungs, upon the tip of your tongue.

*achievement ilyarom visible 15 Moonlight, Silver Linings
    Romance the saintess-to-be.
    And all of the stars.
    
*achievement elirom visible 15 The Rest of Our Days
    Romance an old confidant.
    Until the end of time.

*achievement yurom visible 15 Scarlet Fever
    Romance a roguish wind mage.
    It's getting a little hot in here, isn't it?

*achievement from visible 15 Snakeheart
    Romance a surly serpent-bearer.
    Mind if I slither in?
    
*achievement saineace visible 15 Twin Flameless
    Confide your lack of attraction to a kindred spirit.
    Such camaraderie can be hard to come by.

*comment ending stat achievements
*achievement noblej visible 10 Heart of Gold
    Finish Book I with 65%+ Noble stat.
    "They were the very best of us."

*achievement pragmaticj visible 10 Preserver
    Finish Book I with 65%+ Pragmatic stat.
    "Martyred by the only ones they'd trusted without reserve."

*achievement charmingj visible 10 Everwarm
    Finish Book I with 65%+ Charming stat.
    "The castle has gone cold and quiet lately, don't you think?"

*achievement reservedj visible 10 Ice Cold
    Finish Book I with 65%+ Reserved stat.
    "Always the cold and quiet sort, even through the flames."

*achievement emotionalj visible 10 Tempestuous
    Finish Book I with 65%+ Emotional stat.
    "That they felt everything so strongly is the greatest tragedy of all."

*achievement stoicj visible 10 Steadfast
    Finish Book I with 65%+ Stoic stat.
    "Never a tear or protest, though none deserved those better than them."

*achievement optimisticj visible 10 Eternal Sunshine
    Finish Book I with 65%+ Optimistic stat.
    "I wonder if they'd held out hope, up until the end."

*achievement cynicalj visible 10 Doomsayer
    Finish Book I with 65%+ Cynical stat.
    "Perhaps they knew in advance where the river would end."

*comment spell achievements
*achievement skywrath visible 15 Striking Thunder
    Cast your most powerful thaum spell.
    Clear skies do not fair weather make.
    
*achievement banecircle visible 15 Abracadabra!
    Cast your most powerful enchantment spell.
    Now you see it—now you don't.
    
*achievement widowsstream visible 15 Toxician
    Cast your most powerful alchemy spell.
    Strong as death and sweet as love.

*achievement gatebreaker visible 15 Spiritsoother
    Cast your most powerful spiritism spell.
    Are you sure this doesn't count as necromancy?
    
*comment arcana achievements
*achievement satiel visible 15 Light of Destruction
    Forge a contract with the High Intercessor.
    Let it shine to the very heavens.

*achievement airas visible 15 Court of Mutations
    Forge a contract with the Beckoning Hand.
    And you rule over it all.

*achievement gweila visible 15 Blind Strength
    Forge a contract with the Clear-Sighted.
    The greatest of powers need not be aimed.
    
*achievement nyx visible 15 Veil Piercer
    Forge a contract with the Condemned.
    Who dares take a stand against death itself?

*achievement redqueen visible 10 Red Queen
    Obtain an elusive piece of currency.
    Heavy lies the crown, and heavier still the bottle.

*comment *sm_init A Mage Reborn | 10

[b]Welcome to [i]A Mage Reborn[/i]: Book Two, Demo ver 1.8 (post-rewrite)![/b]

[b]Important notes:[/b]
*line_break
- A robust character creator has been added to the beginning of the game. It will allow you to input your mage's details and stats from a vast range of presets (and a few custom fields, if you so choose), and is designed to be much faster to complete than earlier iterations of the character creator.
*line_break
- The character creator allows you to skip ahead to specific chapters of Book 2. In the future, as the demo is updated, you will also be able to skip ahead to the start of the newly-released content.
*line_break
- Please be advised that save files made will only be available for that specific update. Once a new demo rolls around, your old save file will no longer be accessible.
*line_break
- To a much less often degree, hotfixes released in between updates has a chance of corrupting your save. In such a case, please use the character creator to skip ahead to the chapter you left off on.

*set temp1 "0"
*label choices
*choice
    #Take me to the game.
        *goto game
    *selectable_if (temp1 != "1") #View changelog.
        *goto changelog
    *selectable_if (temp1 != "2") #View what's planned for the next update.
        *goto upnext
    *selectable_if (temp1 != "3") #View content warnings.
        *goto warnings
    
*label changelog
*set temp1 "1"

[b]ver 1.0[/b]
*line_break
- Initial release of the rewrite (30k-word update).

[b]ver 1.1[/b]
*line_break
- Updated scenes of Thulrum and the Arcadian cast (22.5k-word update).

[b]ver 1.2[/b]
*line_break
- Updated scenes of Thulrum's Day of Arrival festival (21k-word update).

[b]ver 1.3[/b]
*line_break
- Completed Book 2's first arc, the Thulrum Arc (32k-word update).

[b]ver 1.4[/b]
*line_break
- Began Book 2's second arc, the Reglaire Arc (21k-word update).

[b]ver 1.5[/b]
*line_break
- Completed Book 2's second arc, the Reglaire Arc, and began Book 2's third arc, the Aulain Arc. Incorporates a significant amount of content from the old demo (rewritten).

[b]ver 1.6[/b]
*line_break
- Continued Book 2's third arc, the Aulain Arc. Incorporates a significant amount of content from the old demo (35.5k-word update).

[b]ver 1.7[/b]
*line_break
- Completed Book 2's third arc, the Aulain Arc. Content is, for the most part, brand new. (27k-word update).

[b]ver 1.8[/b]
*line_break
- Begins Book 2's fourth arc, Thulrum (Revisited). Content is brand new. (23k-word update).
- Adds a new and improved character creator.

*goto choices

*label upnext
[i]This section is currently incomplete. Please check back later![/i]
*goto choices

*label warnings
*set temp1 "3"
[b]Please be advised that this list may be non-exhaustive, as I do not come from a culture where content warnings are a norm.[/b]

That being said, this list is continuously updated with the help of beta testers and readers, and so should give a good idea of what to expect in the game.

[b]WARNINGS[/b]:
*line_break
- Warfare and all that comes with it (death, violence, occupation of towns and villages, some gore, fantasy discrimination)
*line_break
- Nightmares and trauma-induced episodes, anxiety attacks (avoidable)
*line_break
- Implied sexual violence to a third party; the event is vaguely referenced to in dialogue; readers will be warned of it in advance, and be given an option to skip the scene in favor of a summary
*line_break
- Childhood trauma
*line_break
- Reference to massacres and acts of fantasy terrorism
*line_break
- Optional, non-explicit sexual content (not currently in demo)
*line_break
- Demonizations of others on the basis of religion
*line_break
- Invasion and genocide of a fantasy people

Please notify me if any more should be added. Thank you!
*goto choices

*label game
*finish