share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua
changeset 12378 b752003f04b1
parent 12375 3126214d0e7d
child 12379 eb11e1bc7547
equal deleted inserted replaced
12377:efa13b925cd8 12378:b752003f04b1
    30 m2SpikyDead = 0
    30 m2SpikyDead = 0
    31 
    31 
    32 TurnsLeft = 0
    32 TurnsLeft = 0
    33 stage = 0
    33 stage = 0
    34 
    34 
    35 --cyborgHidden = false
       
    36 --princessHidden = false
       
    37 blowTaken = false
    35 blowTaken = false
    38 fireTaken = false
    36 fireTaken = false
    39 gravityTaken = false
    37 gravityTaken = false
    40 sniperTaken = false
    38 sniperTaken = false
    41 girderTaken = false
    39 girderTaken = false
   101   SetGearMessage(leaks, 0)
    99   SetGearMessage(leaks, 0)
   102   TurnsLeft = 12
   100   TurnsLeft = 12
   103   TurnTimeLeft = TurnTime
   101   TurnTimeLeft = TurnTime
   104   ShowMission(loc("The Journey Back"), loc("Collateral Damage"), loc("Save the princess by collecting the crate in under 12 turns!"), 0, 6000)
   102   ShowMission(loc("The Journey Back"), loc("Collateral Damage"), loc("Save the princess by collecting the crate in under 12 turns!"), 0, 6000)
   105   -----------------------///////////////------------
   103   -----------------------///////////////------------
   106   --AnimSetGearPosition(leaks, 417, 1800)
       
   107 end
   104 end
   108 
   105 
   109 function SkipEndAnimAlone()
   106 function SkipEndAnimAlone()
   110   RestoreHedge(cyborg)
   107   RestoreHedge(cyborg)
   111   RestoreHedge(princess)
   108   RestoreHedge(princess)
   599   end
   596   end
   600 end
   597 end
   601 
   598 
   602 function SetupPlaceAlone()
   599 function SetupPlaceAlone()
   603   ------ AMMO CRATE LIST ------
   600   ------ AMMO CRATE LIST ------
   604   --SpawnAmmoCrate(3122, 994, amShotgun)
       
   605   SpawnAmmoCrate(3124, 952, amBaseballBat)
   601   SpawnAmmoCrate(3124, 952, amBaseballBat)
   606   SpawnAmmoCrate(2508, 1110, amFirePunch)
   602   SpawnAmmoCrate(2508, 1110, amFirePunch)
   607   ------ UTILITY CRATE LIST ------
   603   ------ UTILITY CRATE LIST ------
   608   blowCrate = SpawnUtilityCrate(3675, 1480, amBlowTorch)
   604   blowCrate = SpawnUtilityCrate(3675, 1480, amBlowTorch)
   609   gravityCrate = SpawnUtilityCrate(3448, 1349, amLowGravity)
   605   gravityCrate = SpawnUtilityCrate(3448, 1349, amLowGravity)
   625   SetTimer(AddGear(2167, 1330, gtMine, 0, 0, 0, 0), 3000)
   621   SetTimer(AddGear(2167, 1330, gtMine, 0, 0, 0, 0), 3000)
   626   SetTimer(AddGear(2201, 1321, gtMine, 0, 0, 0, 0), 3000)
   622   SetTimer(AddGear(2201, 1321, gtMine, 0, 0, 0, 0), 3000)
   627   SetTimer(AddGear(2239, 1295, gtMine, 0, 0, 0, 0), 3000)
   623   SetTimer(AddGear(2239, 1295, gtMine, 0, 0, 0, 0), 3000)
   628 
   624 
   629   AnimSetGearPosition(leaks, 3781, 1583)
   625   AnimSetGearPosition(leaks, 3781, 1583)
   630   --AnimSetGearPosition(leaks, 1650, 1583)
       
   631   AddAmmo(cannibals[1], amShotgun, 100)
   626   AddAmmo(cannibals[1], amShotgun, 100)
   632   AddAmmo(leaks, amSwitch, 0)
   627   AddAmmo(leaks, amSwitch, 0)
   633 end
   628 end
   634 
   629 
   635 function SetupPlaceDuo()
   630 function SetupPlaceDuo()
  1046   SetAmmo(amDEagle, 9, 0, 0, 0)
  1041   SetAmmo(amDEagle, 9, 0, 0, 0)
  1047   SetAmmo(amRope, 0, 0, 0, 1)
  1042   SetAmmo(amRope, 0, 0, 0, 1)
  1048   SetAmmo(amSniperRifle, 0, 0, 0, 1)
  1043   SetAmmo(amSniperRifle, 0, 0, 0, 1)
  1049   SetAmmo(amDynamite, 0, 0, 0, 1)
  1044   SetAmmo(amDynamite, 0, 0, 0, 1)
  1050   SetAmmo(amPickHammer, 0, 0, 0, 1)
  1045   SetAmmo(amPickHammer, 0, 0, 0, 1)
  1051   SetAmmo(amTeleport, 9, 0, 0, 1)
       
  1052 end
  1046 end
  1053 
  1047 
  1054 function onNewTurn()
  1048 function onNewTurn()
  1055   if AnimInProgress() then
  1049   if AnimInProgress() then
  1056     TurnTimeLeft = -1
  1050     TurnTimeLeft = -1
  1081 function onPrecise()
  1075 function onPrecise()
  1082   if GameTime > 2500 and AnimInProgress() then
  1076   if GameTime > 2500 and AnimInProgress() then
  1083     SetAnimSkip(true)
  1077     SetAnimSkip(true)
  1084     return
  1078     return
  1085   end
  1079   end
  1086 --  AddAmmo(leaks, amRope, 100)
  1080 end
  1087 --  RemoveEventFunc(CheckPastFlower)
  1081 
  1088 --  DeleteGear(sniperCrate)
       
  1089 end
       
  1090