Advertisement
Snuggledash

voicelines.php

Nov 27th, 2024 (edited)
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.14 KB | Source Code | 0 0
  1. <?php
  2. $voicelines = [
  3.  
  4. [ "name" => "The Well Stacked Pizza Co. guy",
  5.   "framing" => "joshRomek",
  6.   "lines" => [
  7.     "What do you want?",
  8.     "Chewy crust or sweaty crust, your choice sir!",
  9.     "Oh? Uh, what would you like?",
  10.     "What would sir like?",
  11.     "Everything's well stacked, sir.",
  12.     "Choose a blend of cheese and fat, sir."
  13.   ]
  14. ],
  15. [ "name" => "Binco girl",
  16.   "framing" => "joshRomek",
  17.   "lines" => [
  18.     "How exhilarating to have you visit, sir.",
  19.     "Welcome to my humble shop!",
  20.     "Ooh! A customer!",
  21.     "Come in, come in!",
  22.     "Hello!",
  23.     "Hey, hi, welcome!",
  24.     "Hi there!",
  25.     "Welcome, sir, welcome!"
  26.   ]
  27. ],
  28. [ "name" => "Ammu-Nation clerk",
  29.   "framing" => "joshAngery",
  30.   "lines" => [
  31.     "Everything a patriot could want!",
  32.     "Ice your wife or stop a truck, I got what you need.",
  33.     "They all lost their serial numbers.",
  34.     "I don't do big military orders.",
  35.     "You hard yet?"
  36.   ]
  37. ]
  38.  
  39. ];
  40.  
  41. $rng = new \Random\Randomizer();
  42.  
  43. header("Content-Type: text/plain; charset=utf-8");
  44. foreach ($voicelines as $vl) {
  45.     echo "{$vl["name"]}:\n";
  46.     $shuffled = $rng->shuffleArray($vl["lines"]);
  47.     echo "{$vl["framing"]} {$shuffled[0]} {$vl["framing"]}\n\n";
  48. }
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement