home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 February / maximum-cd-2012-02.iso / DiscContents / TheWagerSetup1.2.exe / Assets / Scripts / GhostShip8.lua < prev    next >
Encoding:
Text File  |  2011-11-10  |  1.9 KB  |  43 lines

  1. -- GhostShip Events
  2. Starting = 0;
  3. SeaEvent = 1;
  4.  
  5. iValue = GetIntFlag(3);
  6.  
  7. ShowStoryText("As the captain transfers your entire treasure hoard from your hold to his, he pauses before making his exit.");
  8.  
  9. if (iValue == 0) then
  10.  
  11.   ShowStoryText("\"I see ye be light on crew since my little, ah, business transaction,\" he rasps. \"But I am not completely without mercy, lad, and so I must insist that ye be takin' one of my own crew as yer own. He's not particularly useful, but I believe ye'll get along just fine.\" In poor shape to argue, you accept Skeletal Eric onto your roster, and watch helplessly as the ghost ship sails away with your Pieces.");
  12.  
  13.   AddAlly("{4}");
  14.  
  15.   PlayerCash = 0;
  16.  
  17. end
  18.  
  19. if (iValue >= 1 and iValue <= 2) then
  20.  
  21.   ShowStoryText("\"Ye lost today, lad,\" he rasps. \"But that doesn't mean ye have to like it.\" Tossing you his large, extravagant pirate hat, you watch helplessly as as the ghost ship sails away with your Pieces.");
  22.   
  23.   AddInventory("{12}");
  24.  
  25.   PlayerCash = 0;
  26.  
  27. end
  28.  
  29. if (iValue == 3) then
  30.  
  31.   ShowStoryText("He looks at you with a thoughtful glance. \"I was once a you sailor like yerself, lad, and I am not without a certain... empathy. What say I leave ye half of yer treasure, as a gesture of, er, goodwill on my part? Very well then.\" You consider yourself lucky, in a just-had-half-of-your-treasure-stolen sort of way.");
  32.  
  33.   PlayerCash = math.max(Round(PlayerCash * 0.66), 0);
  34.  
  35. end
  36.  
  37. if (iValue >= 4) then
  38.   
  39.   ShowStoryText("He looks at you with a thoughtful glance. \"Ye fought well today, lad, and I am not without a certain... appreciation for such talents. What say I leave ye most of yer treasure, as a gesture of, er, goodwill on my part? Very well then.\" You consider yourself lucky, in a just-had-a-significant-portion-of-your-treasure-stolen sort of way.");
  40.   
  41.   PlayerCash = math.max(Round(PlayerCash * 0.5), 0);
  42.  
  43. end