GraceCB

Untitled

Nov 5th, 2021
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.44 KB | None | 0 0
  1. scn FastTravelCallBack
  2.  
  3. ;Script Version 1.30, - 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.  
  23.  
  24. ;Note to self, might change weighting of Vanity & WW encounters.
  25.  
  26. ;Calling ref
  27. ref rCallingRef
  28.  
  29. ;General purpose variables / internal tracking
  30. int EncounterChance
  31. int NumberOfEncounters
  32. int EncounterSelection
  33. int CurrentRadLevel
  34. int CurrentHPLevel
  35. int CurrentLuck
  36. int CurrentSurvivalSkill
  37. int CurrentEndurance
  38. int Random
  39. int RandomSmall
  40. int watercount
  41. int PlayerLevel
  42. int WWEncounters
  43. int VanityEncounters
  44.  
  45. int MyRand
  46.  
  47. ;Names & random vars for game & person playing.
  48. String_Var Person
  49. String_Var Game
  50. int GameChance
  51. int PersonChance
  52.  
  53. ;Aux variables (Encounters.ini)
  54. int bChance
  55. int bDebug
  56. int bEnableAddictionEncounters
  57.  
  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. ; set EncounterSelection to 1
  88.  
  89.  
  90. ;Query AuxVars
  91. set bDebug to Player.AuxiliaryVariableGetFloat "*bDebug"
  92. set bEnableAddictionEncounters to Player.AuxiliaryVariableGetFloat "*bEnableAddictionEncounters"
  93.  
  94. ;Debug info prints to terminal if enabled in .ini
  95. if bDebug == 1
  96.  
  97. print "Encounter State: " + $EncounterSelection + " Selected"
  98. print $NumberofEncounters + " Encounter states Loaded"
  99. print "Chance roll: " + $bChance
  100. print "Random roll 01 (1-100): " + $Random
  101. print "Random roll 02 (1-3): " + $RandomSmall
  102. print "Current HP: " + $CurrentHPLevel
  103. print "Current Survival Skill: " + $CurrentSurvivalSkill
  104. print "Water count: " + $WaterCount
  105.  
  106. endif
  107.  
  108. if EncounterSelection == 1
  109. MessageBoxEx ("Your trip was long and strenuous - you are attacked by a gang of raiders. You barely manage to escape them. [-HP]")
  110. set MyRand to (GetRandomPercent + 1)
  111. set MyRand to MyRand / 2
  112. player.damageav health MyRand
  113. call FastTravelPainSoundRandomiserUDF
  114.  
  115. elseif EncounterSelection == 2
  116.  
  117. 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)]")
  118. player.additem Caps001 Random
  119.  
  120. elseif EncounterSelection == 3
  121.  
  122. MessageBoxEx "During your trip you get lost and incredibly thirsty. [-H2O]"
  123. set MyRand to (GetRandomPercent + 1)
  124. set MyRand to (MyRand + 75)
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131. player.damageav Dehydration MyRand
  132.  
  133.  
  134. elseif EncounterSelection == 4
  135.  
  136. MessageBoxEx ("You find a raided caravan - luckily, it seems they missed a few things. [+Healing items]")
  137. set MyRand to ((GetRandomPercent + 1) / 25)
  138. player.additem LootChemsHealing100 MyRand
  139.  
  140. elseif EncounterSelection == 5
  141.  
  142. MessageBoxEx ("You find a raided caravan, but it's been picked dry. You throw up from the putrid smell surrounding the dead Brahmin. [-FOD]")
  143. Playsound NPCIdleVomit
  144. set MyRand to ((GetRandomPercent + 1) * 2)
  145. player.DamageActorValue Hunger MyRand
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153. elseif EncounterSelection == 6
  154.  
  155. MessageBoxEx ("The wind turns, and your geiger counter begins ticking frantically. [+150 Rads]")
  156.  
  157. playsound UIPipBoyRadiationB
  158.  
  159. set MyRand to ((GetRandomPercent + 1) * 1.25)
  160.  
  161.  
  162.  
  163. player.damageav RadiationRads MyRand
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173. elseif EncounterSelection == 7
  174.  
  175. ;Randomize some of the encounter
  176.  
  177. set PersonChance to 1 + GetRandomPercent * 4/100
  178. set GameChance to 1 + GetRandomPercent * 4/100
  179.  
  180. if PersonChance == 1
  181. let Person := "wastelander"
  182. elseif PersonChance == 2
  183. let Person := "prospector"
  184. else if Personchance == 3
  185. let Person := "adventurer"
  186. else
  187. let Person := "merchant"
  188. endif
  189.  
  190.  
  191. if GameChance == 1
  192. let Game := "caravan"
  193. elseif GameChance == 2
  194. let Game := "dice Roll"
  195. else if GameChance == 3
  196. let Game := "cap Flip"
  197. else
  198. let Game:= "cards"
  199. endif
  200.  
  201. MessageBoxExAlt FastTravelWager ("^Wager Offer^You meet a passing " + $Person + ",%rthey offer you a wager on a game of " + $Game + ":|Accept|Decline")
  202.  
  203. elseif EncounterSelection == 8
  204.  
  205. MessageBoxExAlt FastTravelLootTheBox ("^Buried Footlocker^You spot a footlocker, partally sunken into the%rwastes. |Investigate|Move on")
  206.  
  207. elseif ( EncounterSelection == 9 && bEnableAddictionEncounters == 1 )
  208.  
  209. set CurrentEndurance to Player.GetAv Endurance
  210.  
  211.  
  212.  
  213.  
  214.  
  215. if (CurrentSurvivalSkill <= 70 || CurrentEndurance <= 7) || (player.hasperk NVDLC03TraitLogansLoophole == 0)
  216.  
  217. 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]")
  218. player.CastImmediateOnSelf WithdrawalAlcohol
  219. Playsound UIHealthChemsAddicted
  220.  
  221. else
  222.  
  223. MessageBoxEx "The harsh wastes take their toll on even the most steadfast of travelers, except you. You find strength where others cannot."
  224.  
  225. endif
  226.  
  227. elseif ( EncounterSelection == 10 && bEnableAddictionEncounters == 1 )
  228.  
  229.  
  230.  
  231.  
  232.  
  233. if (CurrentSurvivalSkill <= 70 || CurrentEndurance <= 7) || (player.hasperk NVDLC03TraitLogansLoophole == 0)
  234.  
  235. MessageBoxEx ("Anything to make the long, hot day pass faster. You've become reliant on Jet to get through the day. [-Jet Addiction]")
  236. player.CastImmediateOnSelf WithdrawalJet
  237. Playsound UIHealthChemsAddicted
  238.  
  239. else
  240. 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.")
  241. endif
  242.  
  243. elseif EncounterSelection == 11
  244.  
  245. MessageBoxEx ("You come across some raiders that are drinking and shouting - they don't notice your approach. You dispatch them easily. [+50 XP]")
  246. RewardXP 50
  247.  
  248. elseif EncounterSelection == 12
  249.  
  250. set PlayerLevel to Player.Getlevel
  251.  
  252. if PlayerLevel <15
  253.  
  254. MessageBoxEx ("You come across a Deathclaw and are forced to run from it. You recieve a nasty gash before managing to make your escape. [-HP] [+XP]")
  255. set MyRand to ((GetRandomPercent + 1) * 1.25)
  256. player.damageav health MyRand
  257. RewardXP 50
  258.  
  259. playsound NPCDeathclawIdleClawScrape
  260.  
  261. elseif PlayerLevel >= 20 && PlayerLevel < 25
  262.  
  263. MessageBoxEx ("You come across a Deathclaw - a long an intense fight ensues. You come out badly bruised, but alive. [-HP] [+150 XP]")
  264. set MyRand to (GetRandomPercent + 1)
  265. player.damageav health MyRand
  266. RewardXP 150
  267. playsound NPCDeathclawIdleClawScrape
  268.  
  269. elseif PlayerLevel > 24
  270.  
  271. MessageBoxEx ("During your journey, you come across a Deathclaw - it's no match for an experienced Wastelander like you. You defeat it and take it's hand as a trophy. [+300 XP] [+Deathclaw Hand]")
  272. RewardXP 300
  273. player.additem DeathClawHand 1
  274. playsound NPCDeathclawDeath
  275.  
  276. endif
  277.  
  278. elseif EncounterSelection == 13
  279.  
  280. MessageBoxExAlt FastTravelRaiderGang ("^Raider Gang Ahead^You spot a large group of raiders in the distance.%rThey're drinking and yelling, and haven't spotted you.|Fight|Sneak past")
  281.  
  282. elseif EncounterSelection == 14
  283.  
  284. MessageBoxExAlt FastTravelDeadWastelander ("^Dead Wastelander^A dead wastelander lies before you.%rThey seem to have been carrying some medical supplies.%rBury them, or take their belongings?:|Bury them|Desecrate their body|Loot them")
  285.  
  286. elseif EncounterSelection == 15
  287.  
  288. MessageBoxEx ("Though your journey is safe, the desolate wasteland takes a toll, and you become particularly fatigued. [-Fatigue]")
  289. set MyRand to ((GetRandomPercent + 1) + 75)
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299. player.damageav Sleepdeprevation MyRand
  300.  
  301.  
  302. elseif EncounterSelection == 16
  303.  
  304. MessageBoxExAlt FastTravelCaravanInTrouble ("^Distressed Caravan^In the distance, you spot a caravan besieged by raiders. %r They seem to be in considerable%rdistress:|Help the caravan|Ignore them")
  305.  
  306. elseif EncounterSelection == 17
  307.  
  308. 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 shut%rwith a flimsy looking rope.%rUpon closer inspection, the trunk is clearly trapped.|Attempt to disarm the trap|Leave the trunk alone")
  309.  
  310. elseif EncounterSelection == 18
  311.  
  312. MessageBoxExAlt FastTravelStrangeMan ("^Encounter With A Stranger^An elderly wastelander offers you an open drink:|Accept the drink|Reject the drink")
  313.  
  314. elseif EncounterSelection == 19
  315.  
  316. if playerref.IsHardcore == 1 ; if hardcore is activated
  317. MessageBoxEx ("The weather is nice, and your journey is peaceful. You feel refreshed [+150 Sleep Deprivation].")
  318. set MyRand to (GetRandomPercent + 1)
  319.  
  320. player.restoreav SleepDeprevation MyRand
  321. else
  322. MessageBoxEx ("The weather is nice, and your journey is peaceful. You come across a clean water pipe, and fill up a spare bottle. [+1 Purified Water]")
  323. player.additem waterpurified 1
  324. endif
  325.  
  326. elseif EncounterSelection == 20
  327.  
  328. if Player.HasPerk WildWasteland
  329. 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 in party hats grazing by a muddy pond. Dissapointing.")
  330. playSound UIWildWasteland
  331. else
  332. MessageBoxEx ("Nothing of note happens on your journey - what a relief.")
  333. endif
  334.  
  335. elseif EncounterSelection == 21
  336.  
  337. MessageBoxEx ("An extreme heat wave forces you to take a risky shortcut. You slip in the process and injure both of your legs [+Injured Legs]")
  338. call FastTravelPainSoundRandomiserUDF
  339. set MyRand to (GetRandomPercent + 1)
  340. player.damageav leftmobilitycondition MyRand
  341.  
  342. set MyRand to (GetRandomPercent + 1)
  343. player.damageav rightmobilitycondition MyRand
  344.  
  345. elseif EncounterSelection == 22
  346.  
  347. MessageBoxExAlt FastTravelRaiderShakedown ("^Raider Leader^You run into a Raider gang, their leader%rdemands 200 caps.%rHe threatens to break your legs if you don't comply.%rHe seems tough:|Pay them|Attack them|Trick them")
  348.  
  349. elseif EncounterSelection == 23
  350.  
  351. if CurrentSurvivalSkill >= 70
  352. MessageBoxEx ("You get turned around on your travels, but your excellent sense of direction allows you to quickly reorient yourself with little lost time.")
  353. else
  354. MessageBoxEx ("You get turned around on your travels, wasting a lot of time, making you tired and thirsty. [-H2O] [-Sleep Deprivation]")
  355. set MyRand to (GetRandomPercent + 1)
  356. player.restoreav Dehydration MyRand
  357.  
  358. set MyRand to (GetRandomPercent + 1)
  359. player.restoreav SleepDeprevation MyRand
  360. endif
  361.  
  362. elseif EncounterSelection == 24
  363.  
  364. MessageBoxEx ("A friendly Caravaneer offers you a ride to your destination, you have time to rest and plan your next move. [+Health restored]")
  365. player.resethealth
  366.  
  367. elseif EncounterSelection == 25
  368.  
  369. 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")
  370.  
  371.  
  372. elseif EncounterSelection == 26
  373.  
  374. MessageBoxExAlt FastTravelBighornerEncounter ("^Bighorner Herd^A wandering herd of Bighorners crosses your path.%rThey seem uninterested in you. |Attack|Leave them alone")
  375.  
  376. elseif EncounterSelection == 27
  377.  
  378. MessageBoxExAlt FastTravelUnsuspectingWastelander ("^Unsuspecting Wastelander^There's a wastelander traveling in%rfront of you. They appear to be alone, and armed only with a%rpolice baton: |Rob|Attack|Pickpocket|Leave them alone")
  379.  
  380. elseif EncounterSelection == 28
  381.  
  382. if Player.HasPerk WildWasteland == 1
  383. 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.")
  384. set MyRand to (GetRandomPercent + 1)
  385. player.restoreav Health (MyRand /2)
  386. playSound UIWildWasteland
  387. else
  388. 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.")
  389. endif
  390.  
  391. elseif EncounterSelection == 29
  392.  
  393. 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")
  394.  
  395. ;Some general vanity encounters
  396. elseif EncounterSelection >= 30 && EncounterSelection <= 35
  397.  
  398. ;This line will need to be changed if more vanity encounters are added.
  399. set VanityEncounters to Rand 1, 10
  400.  
  401. if VanityEncounters == 1
  402.  
  403. 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?")
  404.  
  405. elseif VanityEncounters == 2 && GetPlayerTeammateCount > 0
  406.  
  407. MessageBoxEx ("You and your companion share stories during the trip. The time passes quickly.")
  408.  
  409. elseif VanityEncounters == 2 && GetPlayerTeammateCount < 1
  410.  
  411. MessageBoxEx ("With no traveling companion to keep you company, you hum to yourself to pass the time.")
  412.  
  413. elseif VanityEncounters == 3
  414.  
  415. MessageBoxEx ("You pass by a few unrecognizable bodies. The smell is unbearable.")
  416.  
  417. elseif VanityEncounters == 4
  418.  
  419. MessageBoxEx ("You find a deceased Deathclaw, it's hands and horns missing. A dozen laser burns crisscross it's chest and face.")
  420.  
  421. elseif VanityEncounters == 5
  422.  
  423. MessageBoxEx ("Your travels are tiring, and your bones are weary. If only you had a working car...")
  424.  
  425. elseif VanityEncounters == 6
  426.  
  427. MessageBoxEx ("You find yourself wondering about how other nations fared after the bombs dropped.")
  428.  
  429. elseif VanityEncounters == 7
  430.  
  431. MessageBoxEx ("You spot a trail of blood but it quickly dissapears into the sand. You feel as though something may be watching you.")
  432.  
  433. elseif VanityEncounters == 8
  434.  
  435. MessageBoxEx ("You find yourself itching, did something bite you? Maybe it's just the heat?")
  436.  
  437. elseif VanityEncounters == 9
  438.  
  439. MessageBoxEx ("You recall reading about small creatures called cats in a pre-war book. They seem sweet.")
  440.  
  441. elseif VanityEncounters == 10
  442.  
  443. MessageBoxEx ("You find the long-dried skeleton of a vault dweller, evident by the scrap of jumpsuit next to the skull.")
  444.  
  445. endif
  446.  
  447. ;Some general WW encounters (Mostly vanity although some have effects)
  448. ;This line will need to be changed if more vanity encounters are added.
  449. elseif EncounterSelection > 35
  450.  
  451. if Player.HasPerk WildWasteland == 1
  452.  
  453. playSound UIWildWasteland
  454. set WWEncounters to Rand 1, 10
  455.  
  456. if WWEncounters == 1
  457.  
  458. 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]")
  459. set MyRand to ((GetRandomPercent + 1) / 2)
  460.  
  461.  
  462.  
  463. player.DamageActorValue Health MyRand
  464.  
  465. playsound NPCBrahminAttack
  466. playsound NPCBrahminIdleMoo
  467. playsound NPCBrahminInjured
  468. playsound NPCBrahminFootL
  469. playsound NPCBrahminFootR
  470.  
  471.  
  472.  
  473. elseif WWEncounters == 2
  474.  
  475. 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.")
  476. player.additem SpareParts 1
  477.  
  478. elseif WWEncounters == 3
  479.  
  480. 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...")
  481.  
  482. elseif WWEncounters == 4
  483.  
  484. 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.")
  485.  
  486. ;Only used here so only update luck when needed
  487. set Currentluck to Player.GetAV Luck
  488.  
  489. if Currentluck > 6
  490. MessageBoxEx ("You're lucky enough to find an intact bottle of Nuka-Cola!")
  491. player.addItem Nukacola 1
  492. elseif Currentluck > 7
  493. MessageBoxEx ("You're lucky enough to find two intact bottles of Nuka-Cola!")
  494. player.addItem Nukacola 2
  495. elseif Currentluck > 8
  496. MessageBoxEx ("You're lucky enough to find an intact bottle of Nuka-Cola Quartz!")
  497. player.addItem NVNukaColAQuartz 1
  498. elseif Currentluck > 9
  499. MessageBoxEx ("You're lucky enough to find an intact bottle of Nuka-Cola Victory!")
  500. player.addItem NVNukaColAVictory 1
  501. endif
  502.  
  503. elseif WWEncounters == 5
  504.  
  505. MessageBoxEx ("You feel some ammo sliding out of your pocket. A thief! You turn around quickly, but nobody is there.")
  506.  
  507. elseif WWEncounters == 6
  508.  
  509. 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.")
  510.  
  511. elseif WWEncounters == 7
  512.  
  513. MessageBoxEx ("In a crater, you see massive mounds of blubber and huge bones. Something very large died here.")
  514.  
  515. elseif WWEncounters == 8
  516. set MyRand to GetRandomPercent + 1
  517. if MyRand < 10
  518. MessageBoxEx ("An imposing wastelander with vivid green eyes and T-51b Power Armor passes you. Her minigun is aimed near you, but not directly at you. She passes without incident.")
  519. playsound FOLArmorHeavyWalk
  520. elseif MyRand < 20
  521. MessageBoxEx ("You pass a wastelander wearing Riot Armor, with a kind smile, orange eyes like the desert sun, and a pristine Grenade Launcher in her hands. She winks slyly as you pass.")
  522. playsound FOLArmorMediumWalk
  523. elseif MyRand < 101
  524. MessageBoxEx ("In the hazy distance, you see someone crouched over a dead body. As you get closer, a gust of wind buffets you, making you blink. When you open your eyes, only the body remains.")
  525. playsound AMBDesertWindI02
  526. playsound AMBDesertWindI01
  527. endif
  528.  
  529.  
  530.  
  531. elseif WWEncounters == 9
  532.  
  533. MessageBoxEx ("In the distance, you spot a hunter leading along a golden gecko with a leash and a collar. The gecko seems complacent.")
  534.  
  535. elseif WWEncounters == 10
  536.  
  537. MessageBoxEx ("You come across a group of cannibals. They seem desperate.")
  538.  
  539. else
  540.  
  541. ;Exception for player not having WW so that something happens
  542. 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.")
  543.  
  544. endif
  545. endif
  546. else
  547.  
  548. ;Generally this block will never be entered. Here for debugging purposes.
  549. 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"
  550. ;I.e in the event where another mod / script modifies the variable controlling selection.
  551. 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"
  552.  
  553. endif
  554.  
  555. else
  556.  
  557. ;do nothing
  558. ;print "Nothing happened"
  559.  
  560. endif
  561.  
  562. ;Send help
  563.  
  564. end
Advertisement
Add Comment
Please, Sign In to add comment