GraceCB

Untitled

Nov 5th, 2021
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.03 KB | None | 0 0
  1. scn FastTravelCallBack
  2.  
  3. ;Script Version 1.40, - Lime - 22/10/2021.
  4.  
  5. ;Master script that handles all encounters for "Immersive Fast Travel Encounters" Mod for FNV.
  6. ;This script is attached to a fast travel event handler. Once fast travel occurs this script runs.
  7. ;This script is conditioned so that only relevant functions are called as relevant checks are passed or failed.
  8.  
  9. ;Some general purpose rules for the player. Player will NOT be punished for not possessing an item (i.e water, stimpak etc.)
  10. ;Player WILL be Punished for taking a descision that rolls unfavorably / they do not posses the required skills to pass the check.
  11. ;Player will NOT be killed during fast travel, checks are in place to ensure encounters do not cause Radiation
  12. ;Levels to exceed 1000 or health to drop below 1.
  13.  
  14. ;As of v1.20 this script contains the vast majority of functionality. This allows me to fire the script at a delay (preventing pip boy ui remaining
  15. ;On screen with certain mods). Additionally paired down the debug info to essential and information used multiple times. Improved performance by
  16. ;Only getting certain info if it is only used once instead of grabbing everything on chance check pass. Reconditioned random values to Rand function
  17. ;For the sake of readability. Removed JIP and NVSE version checks as they would returning zero after first travel and would need to be re-initialized
  18. ;to be of any use. Also added checks that allow the player to avoid addiction with a high endurance or survival skill.
  19.  
  20. ;As of v1.30 various sweeping gramamtical checks and bugfixes across all scripts. Added configuration options and revisions to skeleton "Additional support"
  21.  
  22. ;As of v1.40 added the ability to skip encounters with addiction for the sake of character or roleplaying. ( bEnableAddictionEncounters )
  23.  
  24. ;As of v1.50 reconditioned some encounters to prevent conflicts with other mods which may cause dehydration to be incorrectly applied.
  25. ;Additionally removed a rougue print which was added during testing.
  26.  
  27. ;Note to self, might change weighting of Vanity & WW encounters.
  28.  
  29. ;Calling ref
  30. ref rCallingRef
  31.  
  32. ;General purpose variables / internal tracking
  33. int EncounterChance
  34. int NumberOfEncounters
  35. int EncounterSelection
  36. int CurrentRadLevel
  37. int CurrentHPLevel
  38. int CurrentLuck
  39. int CurrentSurvivalSkill
  40. int CurrentEndurance
  41. int Random
  42. int RandomSmall
  43. int watercount
  44. int PlayerLevel
  45. int WWEncounters
  46. int VanityEncounters
  47.  
  48. ;Names & random vars for game & person playing.
  49. String_Var Person
  50. String_Var Game
  51. int GameChance
  52. int PersonChance
  53.  
  54. ;Aux variables (Encounters.ini)
  55. int bChance
  56. int bDebug
  57. int bEnableAddictionEncounters
  58.  
  59. ;Function attached to eventhandler
  60. begin Function {}
  61.  
  62. set rCallingRef to this
  63.  
  64. ;Removes this as a callback until called again.
  65. SetGameMainLoopCallback FastTravelCallBack 0
  66.  
  67. ;Grab user defined chance of something happening from Aux value.
  68. set bChance to Player.AuxiliaryVariableGetFloat "*bChance"
  69.  
  70. ;If the encounter chance passes the percentage check
  71. if rand 1, 100 <= bChance
  72.  
  73. ;Calculate some general purpose information about the player. These values are generally used multiple times in this script.
  74. ;Those used just once have been conditioned per encounter, try to avoid unessecary calls here for the sake of performance.
  75. set Random to rand 1, 100 ;Random general purpose variable between 1 & 100.
  76. set RandomSmall to rand 1, 3
  77. set CurrentHPLevel to Player.GetAv Health
  78. set CurrentSurvivalSkill to Player.getav Survival
  79. set watercount to player.getitemcount WaterPurified
  80.  
  81. ;Change this if more encounter states are added (Set higher than number of states to weight vanity and WW encounters)
  82. set NumberOfEncounters to 40
  83.  
  84. ;Generates a number between 1 and the total number of possible outcomes. Used to determine *what* will happen.
  85.  
  86. set EncounterSelection to rand 1, NumberofEncounters
  87.  
  88. ;Query AuxVars
  89. set bDebug to Player.AuxiliaryVariableGetFloat "*bDebug"
  90. set bEnableAddictionEncounters to Player.AuxiliaryVariableGetFloat "*bEnableAddictionEncounters"
  91.  
  92. ;Debug info prints to terminal if enabled in .ini
  93. if bDebug == 1
  94.  
  95. print "Encounter State: " + $EncounterSelection + " Selected"
  96. print $NumberofEncounters + " Encounter states Loaded"
  97. print "Chance roll: " + $bChance
  98. print "Random roll 01 (1-100): " + $Random
  99. print "Random roll 02 (1-3): " + $RandomSmall
  100. print "Current HP: " + $CurrentHPLevel
  101. print "Current Survival Skill: " + $CurrentSurvivalSkill
  102. print "Water count: " + $WaterCount
  103.  
  104. endif
  105.  
  106. if EncounterSelection == 1
  107. MessageBoxEx ("Your trip was long and strenuous - you were attacked by a gang of raiders. You barely manage to escape them. [ " + $RandomSmall + " Stimpak(s)]")
  108. ;I don't quite understand the string formatting here, so I can't verify that it follows the format of [+/-Stimpak] with no spaces between
  109. player.removeitem Stimpak RandomSmall
  110. playsound NPCHumanUsingStimpak
  111.  
  112. elseif EncounterSelection == 2
  113.  
  114. MessageBoxEx ("Warm sands, calm winds, and not a raider in sight - unusual for the wasteland. During a calm moment, you spot some caps in the sand. [+" + $Random + " cap(s)]")
  115. player.additem Caps001 Random
  116.  
  117. elseif EncounterSelection == 3
  118.  
  119. MessageBoxEx "During your trip you get lost and incredibly thirsty. [-2 Purified Water]"
  120.  
  121. if watercount >= 2
  122. player.removeitem WaterPurified 2
  123. playsound NPCHumanDrinkingBottleGulp
  124.  
  125. elseif watercount < 2 && playerref.IsHardcore == 1
  126. ;Damage dehydration if in Hardcore mode.
  127. MessageBoxEx "You didn't have enough water. [-150 H2O]"
  128. player.damageav Dehydration 150
  129. endif
  130.  
  131. elseif EncounterSelection == 4
  132.  
  133. MessageBoxEx "You find a raided caravan - luckily, it seems they missed a stimpak. [+Stimpak]"
  134. player.additem Stimpak 1
  135.  
  136. elseif EncounterSelection == 5
  137.  
  138. MessageBoxEx "You find a raided caravan, but it's been picked dry. You get ill from the flies surrounding the dead Brahmin. [-75 HP]"
  139. ;I'd just say you threw up and lose food needs
  140.  
  141. call FastTravelPainSoundRandomiserUDF
  142.  
  143. if CurrentHPLevel > 75
  144. player.DamageActorValue Health 75
  145. else
  146. player.DamageActorValue Health (CurrentHPLevel - 1)
  147. endif
  148.  
  149. elseif EncounterSelection == 6
  150.  
  151. MessageBoxEx "The wind turns, and your geiger counter begins ticking frantically. [+150 Rads]"
  152. ;this is the one of the few instances where a penalty uses a + in it's brackets, due to the way that radiation works
  153. playsound UIPipBoyRadiationB
  154.  
  155. ;Set here as only used in one encounter
  156. set CurrentRadLevel to Player.GetAv RadiationRads
  157.  
  158. if CurrentRadLevel < 850
  159. player.damageav RadiationRads 150
  160.  
  161. elseif CurrentRadLevel == 999 ;this check prevents the player rad level from bouncing between 999 and 998 at the max range of radiation
  162.  
  163. ;Don't do anything (Hold rad level at 999)
  164.  
  165. else
  166. player.damageav RadiationRads ((1000 - CurrentRadLevel) -1)
  167. endif
  168.  
  169. elseif EncounterSelection == 7
  170.  
  171. ;Randomize some of the encounter
  172.  
  173. set PersonChance to 1 + GetRandomPercent * 4/100
  174. set GameChance to 1 + GetRandomPercent * 4/100
  175.  
  176. if PersonChance == 1
  177. let Person := "wastelander"
  178. elseif PersonChance == 2
  179. let Person := "prospector"
  180. else if Personchance == 3
  181. let Person := "adventurer"
  182. else
  183. let Person := "merchant"
  184. endif
  185. ;took off the capitals on these cause they're non-proper nouns in the middle of a sentence
  186.  
  187. if GameChance == 1
  188. let Game := "caravan"
  189. elseif GameChance == 2
  190. let Game := "dice Roll"
  191. else if GameChance == 3
  192. let Game := "cap Flip"
  193. else
  194. let Game:= "cards"
  195. endif
  196.  
  197. MessageBoxExAlt FastTravelWager ("^Wager Offer^You meet a passing " + $Person + ",%rthey offer you a wager on a game of " + $Game + ":|Accept|Decline")
  198.  
  199. elseif EncounterSelection == 8
  200.  
  201. MessageBoxExAlt FastTravelLootTheBox "^Buried Footlocker^You spot a footlocker, partally sunken into the%rwastes. |Investigate|Move on"
  202.  
  203. elseif ( EncounterSelection == 9 && bEnableAddictionEncounters == 1 )
  204.  
  205. set CurrentEndurance to Player.GetAv Endurance
  206.  
  207. if Player.HasPerk NVDLC03TraitLogansLoophole
  208.  
  209. MessageBoxEx "Anything to make the long, hot day pass faster. [Perk] Logans loophole allows you to avoid a nasty Alchol addiction."
  210.  
  211. elseif (CurrentSurvivalSkill <= 70 || CurrentEndurance <= 7)
  212.  
  213. MessageBoxEx "The harsh wastes take their toll on even the most steadfast of travelers. You find yourself relying on alcohol to take the edge off. [+Alcohol Addiction]"
  214. player.CastImmediateOnSelf WithdrawalAlcohol
  215. Playsound UIHealthChemsAddicted
  216.  
  217. else
  218.  
  219. MessageBoxEx "The harsh wastes take their toll on even the most steadfast of travelers, except you. You find strength where others cannot."
  220.  
  221. endif
  222.  
  223. elseif ( EncounterSelection == 10 && bEnableAddictionEncounters == 1 )
  224.  
  225. if Player.HasPerk NVDLC03TraitLogansLoophole
  226.  
  227. MessageBoxEx "Anything to make the long, hot day pass faster. [Perk] Logans loophole allows you to avoid a nasty Jet addiction."
  228.  
  229. elseif (CurrentSurvivalSkill <= 70 || CurrentEndurance <= 7 )
  230.  
  231. MessageBoxEx "Anything to make the long, hot day pass faster. You've become reliant on Jet to get through the day. [-Jet Addiction]"
  232. player.CastImmediateOnSelf WithdrawalJet
  233. Playsound UIHealthChemsAddicted
  234.  
  235. else
  236. MessageBoxEx "Anything to make the long, hot day pass faster. But where others may have faltered, you come out the other side stronger than ever."
  237. endif
  238.  
  239. elseif EncounterSelection == 11
  240.  
  241. MessageBoxEx "You come across some raiders that are drinking and shouting - they don't notice your approach. You dispatch them easily. [+50 XP]"
  242. RewardXP 50
  243.  
  244. elseif EncounterSelection == 12
  245.  
  246. set PlayerLevel to Player.Getlevel
  247.  
  248. if PlayerLevel <15
  249.  
  250. MessageBoxEx ("You come across a Deathclaw and are forced to run, you pop a couple of Stimpaks and lose some caps during your escape. [-2 Stimpaks] " + "[-" + $Random + " Caps ]")
  251. player.removeitem Stimpak 2
  252. player.removeitem Caps001 Random
  253. RewardXP 150
  254.  
  255. playsound NPCDeathclawIdleClawScrape
  256.  
  257. elseif PlayerLevel >= 20 && PlayerLevel < 25
  258.  
  259. MessageBoxEx "You come across a Deathclaw - a long an intense fight ensues. You come out badly bruised, but alive. [+150 XP] [-1 Stimpak]"
  260. player.removeitem Stimpak 1
  261. RewardXP 150
  262. playsound NPCDeathclawIdleClawScrape
  263.  
  264. elseif PlayerLevel > 24
  265.  
  266. MessageBoxEx "During your journey, you come across a Deathclaw - it's no match for an experienced wastelander like you. You take it's hand as a trophy. [+150 XP] [+1 Deathclaw Hand]"
  267. RewardXP 150
  268. player.additem DeathClawHand 1
  269. playsound NPCDeathclawDeath
  270.  
  271. endif
  272.  
  273. elseif EncounterSelection == 13
  274.  
  275. MessageBoxExAlt FastTravelRaiderGang "^Raider Gang Ahead^You spot a large group of raiders in the distance.%rThey're drinking and yelling,%rand haven't spotted you.|Fight|Sneak past"
  276.  
  277. elseif EncounterSelection == 14
  278.  
  279. MessageBoxExAlt FastTravelDeadWastelander "^Dead Wastelander^A dead wastelander lies before you. They seem to%rhave been carrying some medical supplies:|Bury them|Desecrate their body|Loot them"
  280.  
  281. elseif EncounterSelection == 15
  282.  
  283. MessageBoxEx "Though your journey is safe, the dry wasteland takes a toll, and you consume extra water during this trip. [-2 Purified Water]"
  284. player.removeitem WaterPurified 2
  285. playsound NPCHumanDrinkingBottleGulp
  286.  
  287. if watercount >= 2
  288. player.removeitem WaterPurified 2
  289. playsound NPCHumanDrinkingBottleGulp
  290.  
  291. elseif watercount < 2 && playerref.IsHardcore == 1
  292. ;Damage dehydration if in Hardcore mode.
  293. MessageBoxEx "You didn't have enough water [- 150 H2O]"
  294. player.damageav Dehydration 150
  295. endif
  296.  
  297. elseif EncounterSelection == 16
  298.  
  299. MessageBoxExAlt FastTravelCaravanInTrouble "^Distressed Caravan^In the distance, you spot a caravan surrounded by%rraiders. They seem to be in considerable distress:|Help the caravan|Ignore them"
  300.  
  301. elseif EncounterSelection == 17
  302.  
  303. MessageBoxExAlt FastTravelBoobyTrapped "^Suspicious Trunk^You come across one of the wasteland's many%rabandoned, inoperable cars. This one seems%rdifferent though - it's trunk appears to be tied%rshut with a flimsy looking rope. Upon closer%rinspection, the trunk is clearly trapped.|Attempt to disarm the trap|Leave the trunk alone"
  304.  
  305. elseif EncounterSelection == 18
  306.  
  307. MessageBoxExAlt FastTravelStrangeMan "^Encounter With A Stranger^An elderly wastelander offers you an open drink:|Accept the drink|Reject the drink"
  308.  
  309. elseif EncounterSelection == 19
  310.  
  311. if playerref.IsHardcore == 1 ; if hardcore is activated
  312. MessageBoxEx "The weather is nice, and your journey is peaceful. You feel refreshed [-150 Sleep Deprivation]."
  313. player.restoreav SleepDeprevation 150
  314. else
  315. MessageBoxEx "The weather is nice, and your journey is peaceful. You come across a clean water pipe, and you fill up a spare bottle. [+1 Purified Water]"
  316. player.additem waterpurified 1
  317. endif
  318.  
  319. elseif EncounterSelection == 20
  320.  
  321. if Player.HasPerk WildWasteland
  322. MessageBoxEx "The heat is starting to get to you - in the distance, you see a dance party in the middle of the wasteland, complete with multi-colored stand lights and blaring Sinatra. You excitedly approach to find out it's just a group of Brahmin grazing by a muddy pond. Dissapointing."
  323. playSound UIWildWasteland
  324. else
  325. MessageBoxEx "Nothing of note happens on your journey - what a relief."
  326. endif
  327.  
  328. elseif EncounterSelection == 21
  329.  
  330. MessageBoxEx "An extreme heat wave forces you to take a risky shortcut. You slip in the process, and injure both of your legs. [+Crippled Legs]"
  331. call FastTravelPainSoundRandomiserUDF
  332. player.damageav leftmobilitycondition 100
  333. player.damageav rightmobilitycondition 100
  334.  
  335. elseif EncounterSelection == 22
  336.  
  337. MessageBoxExAlt FastTravelRaiderShakedown "^Raider Leader^You run into a Raider gang, their leader%rdemands 200 caps. He threatens to break your legs%rif you don't comply. He seems tough:|Pay them|Attack them|Trick them"
  338.  
  339. elseif EncounterSelection == 23
  340.  
  341. if CurrentSurvivalSkill >= 70
  342. MessageBoxEx "You get turned around on your travels, but your excellent sense of direction allows you to quickly reorient yourself, with very little lost time."
  343. else
  344. MessageBoxEx "You get turned around on your travels, wasting a lot of time and making you thirsty. [-1 Purified Water]"
  345. player.removeitem WaterPurified 1
  346. playsound NPCHumanDrinkingBottleGulp
  347. endif
  348.  
  349. elseif EncounterSelection == 24
  350.  
  351. MessageBoxEx "A friendly Caravaneer offers you a ride to your destination, you have time to rest and plan your next move. [+Health Restored]"
  352. player.resethealth
  353.  
  354. elseif EncounterSelection == 25
  355.  
  356. MessageBoxExAlt FastTravelCazadoreSting "^Cazadore Sting^An encounter with some cazadors leaves%ryou in great pain as one of the insects%rstings you with it's tail.%rHow will you deal with the sting?|Find a doctor|Tough it out|Attempt to treat the sting yourself"
  357.  
  358.  
  359. elseif EncounterSelection == 26
  360.  
  361. MessageBoxExAlt FastTravelBighornerEncounter "^Bighorner Herd^A wandering herd of Bighorners crosses your path.%rThey seem uninterested in you. |Attack|Leave them alone"
  362.  
  363. elseif EncounterSelection == 27
  364.  
  365. MessageBoxExAlt FastTravelUnsuspectingWastelander "^Unsuspecting Wastelander^There's a wastelander traveling infront of you.%rThey appear to be alone, and armed only with a%rpolice baton:|Rob|Attack|Pickpocket|Leave them alone"
  366.  
  367. elseif EncounterSelection == 28
  368.  
  369. if Player.HasPerk WildWasteland == 1
  370. MessageBoxEx "You accept some cave mushrooms from a bearded gentleman wearing sexy sleepwear. You wake up in the desert feeling strangely refreshed. You have no idea what just happened, but you feel fantastic."
  371. playSound UIWildWasteland
  372. else
  373. MessageBoxEx "You take a moment to stare out across the wastes - the horizon is calm. Just you, the sand, the heat, and a faint breeze."
  374. endif
  375.  
  376. elseif EncounterSelection == 29
  377.  
  378. MessageBoxExAlt FastTravelGhoulPack "^Ghoul Pack^A roaming pack of feral ghouls blocks your path.%rYou can choose to take an alternate route,%rbut it would likely add hours to your journey.:|Attack|Sneak by|Take the alternate path"
  379.  
  380. ;Some general vanity encounters
  381. elseif EncounterSelection >= 30 && EncounterSelection <= 35
  382.  
  383. ;This line will need to be changed if more vanity encounters are added.
  384. set VanityEncounters to Rand 1, 10
  385.  
  386. if VanityEncounters == 1
  387.  
  388. MessageBoxEx "Your geiger counter begins ticking very rapidly as you pass a rusty car wreck, but it abruptly stops once you take two steps to the north of the rusted hulk. Nothing looks suspicious about the vehicle. Is your geiger counter working properly?"
  389.  
  390. elseif VanityEncounters == 2 && GetPlayerTeammateCount > 0
  391.  
  392. MessageBoxEx "You and your companion share stories during the trip. The time passes quickly."
  393.  
  394. elseif VanityEncounters == 2 && GetPlayerTeammateCount < 1
  395.  
  396. MessageBoxEx "With no travelling companion to keep you company, you hum to yourself to pass the time."
  397.  
  398. elseif VanityEncounters == 3
  399.  
  400. MessageBoxEx "You pass by a few unrecognizable bodies. The smell is unbearable."
  401.  
  402. elseif VanityEncounters == 4
  403.  
  404. MessageBoxEx "You find a deceased Deathclaw, it's hands and horns missing. A dozen laser burns crisscross it's chest and face."
  405.  
  406. elseif VanityEncounters == 5
  407.  
  408. MessageBoxEx "Your travels are tiring, and your bones are weary. If only you had a working car..."
  409.  
  410. elseif VanityEncounters == 6
  411.  
  412. MessageBoxEx "You find yourself wondering about how other states and countries fared after the bombs dropped."
  413.  
  414. elseif VanityEncounters == 7
  415.  
  416. MessageBoxEx "You spot a trail of blood but it quickly dissapears into the sand. It's probably not worth following further anyway."
  417.  
  418. elseif VanityEncounters == 8
  419.  
  420. MessageBoxEx "You find yourself itching. Did something bite you? Maybe it's just the heat..."
  421.  
  422. elseif VanityEncounters == 9
  423.  
  424. MessageBoxEx "You recall reading about small creatures called cats in a pre-war magazine. You wish you could pet one."
  425.  
  426. elseif VanityEncounters == 10
  427.  
  428. MessageBoxEx "You find the long dried skeleton of a vault dweller, evident by the scrap of jumpsuit next to the skull."
  429.  
  430. endif
  431.  
  432. ;Some general WW encounters (Mostly vanity although some have effects)
  433. ;This line will need to be changed if more vanity encounters are added.
  434. elseif EncounterSelection > 35
  435.  
  436. if Player.HasPerk WildWasteland == 1
  437.  
  438. playSound UIWildWasteland
  439. set WWEncounters to Rand 1, 10
  440.  
  441. if WWEncounters == 1
  442.  
  443. MessageBoxEx "A crowd of angry Brahmin rushes at you, mooing with fervor and hate in their eyes. They trample you viciously before leaving. [-15 HP]"
  444.  
  445. if CurrentHPLevel > 15
  446. player.DamageActorValue Health 15
  447. else
  448. player.DamageActorValue Health (CurrentHPLevel - 1)
  449. endif
  450. playsound NPCBrahminAttack
  451. playsound NPCBrahminIdleMoo
  452. playsound NPCBrahminInjured
  453. playsound NPCBrahminFootL
  454. playsound NPCBrahminFootR
  455. call FastTravelPainSoundRandomiserUDF
  456.  
  457.  
  458. elseif WWEncounters == 2
  459.  
  460. MessageBoxEx "You come across a giant footprint, filled in with rainwater. There's no others in the area. A crushed stealth boy sits in the puddle."
  461.  
  462. elseif WWEncounters == 3
  463.  
  464. MessageBoxEx "A small glowing dot hovers above you in the sky. Suddenly, it begins flying to the east, then abruptly changes it's direction at a perfect right angle and shoots directly up into the sky, beyond your view. You don't feel like you're completely alone..."
  465.  
  466. elseif WWEncounters == 4
  467.  
  468. MessageBoxEx "You come across a crashed Nuka-Cola delivery truck. The driver's skeleton has been crushed inside the cabin, and most of the Nuka-Cola bottles have popped open or shattered."
  469.  
  470. ;Only used here so only update luck when needed
  471. set Currentluck to Player.GetAV Luck
  472.  
  473. if Currentluck > 6
  474. MessageBoxEx "You're lucky enough to find an intact bottle of Nuka-Cola!"
  475. player.addItem Nukacola 1
  476. endif
  477.  
  478. elseif WWEncounters == 5
  479.  
  480. MessageBoxEx "You feel some ammo sliding out of your pocket. A thief! You turn around quickly, but nobody is there."
  481.  
  482. elseif WWEncounters == 6
  483.  
  484. MessageBoxEx "You come across a man drinking what appears to be car coolant. Your geiger counter ticks when he gets nearby. You leave the man to his beverage."
  485.  
  486. elseif WWEncounters == 7
  487.  
  488. MessageBoxEx "In a crater, you see massive mounds of blubber and huge bones. Something very large died here."
  489.  
  490. elseif WWEncounters == 8
  491.  
  492. MessageBoxEx "In a crater, you see massive mounds of blubber and huge bones. Something very large died here."
  493.  
  494. elseif WWEncounters == 9
  495.  
  496. MessageBoxEx "In the distance, you spot a hunter leading along a golden gecko with a leash and a collar. The gecko seems complacent."
  497.  
  498. elseif WWEncounters == 10
  499.  
  500. MessageBoxEx "You come across a group of cannibals. They seem desperate."
  501.  
  502. else
  503.  
  504. ;Exception for player not having WW so that something happens
  505. MessageBoxEx "Your spine tingles as you walk past the decaying remains of a Brahmin. Organs and bones half-covered in viscera lay strewn around. Something terrible happened here."
  506.  
  507. endif
  508. endif
  509. else
  510.  
  511. ;Generally this block will never be entered. Here for debugging purposes.
  512. MessageBoxEx "FAST TRAVEL ENCOUNTERS: Error002, something should have happened here but an exception occured and the handler has attempted to launch a non-existant encounter. check for conflicts, mod updates or attempt to reinstall. This message will only diplay once per game-session"
  513. ;I.e in the event where another mod / script modifies the variable controlling selection.
  514. Print "Error, something should have happened here but an exception occured and the handler has attempted to launch a non-existant encounter. check for conflicts"
  515.  
  516. endif
  517.  
  518. else
  519.  
  520. ;do nothing
  521. ;print "Nothing happened"
  522.  
  523. endif
  524.  
  525. ;Send help
  526.  
  527. end
Advertisement
Add Comment
Please, Sign In to add comment