map=multi1 x=218 y=42 item respawn no respawn // Utility vars: new var func=0 new var retval=0 new var retfunc=0 new var param1=0 new var param2=0 new var truth=0 new var temp=0 new var taco=0 // Buildings. If this campaign is extended to multiple maps, be careful how these are used! new var kai=[random/-2/2] new var gass=[random/-2/2] new var auto=[random/-2/2] new var petshop=[random/-2/2] new var hardware=[random/-2/2] new var fort1=[random/-2/2] // (Maybe a smaller map would have been a better starting point...) new var factory=[random/-2/2] new var outpost=[random/-2/2] new var sams=[random/-2/2] new var lillies=[random/-2/2] new var gens=[random/-2/2] new var chrch=[random/-2/2] new var fort2=[random/-2/2] // Auxiliary vars for hitboxes, special attacks, equipment, custom characters, etc: new var x1=0 new var y1=0 new var x2=0 new var y2=0 new var hitX=0 new var hitY=0 new var px=0 new var py=0 new var dx=0 new var dy=0 new var bossx=0 new var bossy=0 new var boss=0 new var bosshp=0 new var veh=0 new var vehhp=0 new var vehx=0 new var vehy=0 new var bases=0 new var enemybase=0 new var mission=0 +-1+block var event func=1 remove zombie 0,0,500,500 guard if mission=0 then map=multi1 if mission=1 then map=multi2 if mission=2 then map=sub2 if mission=3 then map=multi3 if mission=4 then map=sub3 if mission=5 then map=multi4 if mission=6 then map=multi5 if mission=7 then map=lastman0 if mission=8 then map=warehouseC1 if mission=9 then map=crash1 level=11 set player reputation=1000 set player xp=0 remove zombie 0,0,500,500 any remove zombie 0,0,500,500 ally stop timer set timer m=0 s=0 start timer set var func=2 end event clear menu menu item 1=Multi1 menu item 2=multi2 menu item 3=sub2 menu item 4=multi3 menu item 5=sub3 menu item 6=multi4 menu item 7=multi5 menu item 8=LMS subdivision menu item 9=Stripmall menu item 10=Forest menu item 0=Select the map to play on. Control of buildings or command posts will be distributed randomly. open menu +-1+block menu event=1 set var mission=0 set var func=1 close menu end event +-1+block menu event=2 set var mission=1 set var func=1 close menu end event +-1+block menu event=3 set var mission=2 set var func=1 close menu end event +-1+block menu event=4 set var mission=3 set var func=1 close menu end event +-1+block menu event=5 set var mission=4 set var func=1 close menu end event +-1+block menu event=6 set var mission=5 set var func=1 close menu end event +-1+block menu event=7 set var mission=6 set var func=1 close menu end event +-1+block menu event=8 set var mission=7 set var func=1 close menu end event +-1+block menu event=9 set var mission=8 set var func=1 close menu end event +-1+block menu event=10 set var mission=9 set var func=1 close menu end event +-1+block double var event func=2 and mission=0 jump to 218, 42 add ally spot 210,34,220,45 name=Alice gun=MP5 add ally spot 210,34,220,45 name=Bob gun=AR15 add ally spot 210,34,220,45 name=Carrol gun=Benelli add ally spot 210,34,220,45 name=David gun=Glock 17 add spot 215,40,215,40 guard=1 add random Raider=35 add border raider=10 if kai<-1 then add zone2 Raider=4 Kai Mart if gass<-1 then add zone2 Raider=4 Gas Station if auto<-1 then add zone2 Raider=4 Auto Mart if petshop<-1 then add zone2 Raider=4 Cort's Pet Store if hardware<-1 then add zone2 Raider=4 Hardware Store if chrch<-1 then add zone2 Raider=4 Church if factory<-1 then add zone2 Raider=4 Factory if sams<-1 then add zone2 Raider=-4 Sam's house if gens<-1 then add zone2 Raider=4 Jenifer's house if lillies<-1 then add zone2 raider=4 Lilly's house if kai>1 then add ally spot 76,92,172,157 name=Emily gun=M16 if kai>1 then add ally spot 76,92,172,157 name=Fred gun=Winchester if kai>1 then add ally spot 76,92,172,157 name=Ginevra gun=M40 if gass>1 then add ally spot 15,44,46,72 name=Harvey gun=Browning Citori if gass>1 then add ally spot 15,44,46,72 name=Isabel gun=Glock 19 if auto>1 then add ally spot 38,82,65,115 name=Jeremy gun=MP5 if auto>1 then add ally spot 38,82,65,115 name=Kat gun=M40 if auto>1 then add ally spot 38,82,65,115 name=Luis gun=M20 if petshop>1 then add ally spot 136,207,169,234 name=Marie gun=AA12 if petshop>1 then add ally spot 136,207,169,234 name=Nathan gun=M-1928 if hardware>1 then add ally spot 172,202,228,234 name=Olivia gun=Marlin if hardware>1 then add ally spot 172,202,228,234 name=Peter gun=Remington if fort1<-1 then add zone2 raider=4 Fort if fort2<-1 then add zone2 Raider=4 Fort if fort1>1 then add ally spot 207,155,233,185 name=Queen gun=M240 if fort1>1 then add ally spot 207,155,233,185 name=Rodrigo gun=Uzi if fort2>1 then add ally spot 387,93,407,120 name=Suzan gun=Glock 17 if fort2>1 then add ally spot 387,93,407,120 name=Terry gun=AK47 if chrch>1 then add ally spot 350,101,366,146 name=Ursula gun=M4A1 if chrch>1 then add ally spot 350,101,366,146 name=Victor gun=UMP45 if chrch>1 then add ally spot 350,101,366,146 name=Wendy gun=AA12 if factory>0 then add ally spot 316,23,374,69 name=Xantipe gun=ACR if factory>1 then add ally spot 316,23,374,69 name=Yuriko gun=Vector if factory>1 then add ally spot 316,23,374,69 name=Zack gun=Glock 19 if sams>1 then add ally spot 325,198,351,217 name=Aaron gun=Winchester if lillies>1 then add ally spot 358,203,376,230 name=Barbara gun=Glock 17 if gens>1 then add ally spot 389,201,413,226 name=Charley gun=M40 if gens>1 then set ally ammo Charley=100 if sams>1 then set ally ammo Aaron=100 if lillies>1 then set ally ammo Barbara=100 set ally ammo Alice=1000 set ally ammo Bob=1000 set ally ammo Carrol=1000 set ally ammo David=1000 set ally obey Alice=yes set ally aggression Alice=full set ally obey Bob=yes set ally aggression Bob=full set ally aggression Carrol=full set ally obey carrol=yes set ally aggression David=full set ally obey David=yes add items 50 1 1,1,[map.width],[map.height] * add items 15 100 0,0,[map.width],[map.height] Gas give item -1 axe give item 1 Glock 19 give item 50 9mm ammo lure 35,50 100 lure 40,112 75 lure 140,150 100 lure 120,220 60 lure 222,222 60 lure 350,222 80 lure 365,120 80 lure 350,50 80 lure 292,192 80 change tile 40,224 13 change tile 41,224 13 change tile 42,224 13 change tile 43,224 13 change tile 44,224 13 change tile 40,225 13 change tile 40,226 13 change tile 40,227 13 change tile 40,228 13 change tile 41,228 13 change tile 42,228 13 change tile 43,228 13 change tile 44,227 13 change tile 44,225 13 change tile 44,226 13 change tile 44,228 13 change tile 45,225 14 change tile 46,225 14 change tile 47,225 14 change tile 45,226 14 change tile 46,226 14 change tile 47,226 14 change tile 45,227 14 change tile 46,227 14 change tile 47,227 14 set var vehx=46 set var vehy=226 rename zone id=211 To pilot the helicopter, press enter. set var westx=40 set var eastx=44 set var northy=224 set var southy=229 set music=music\defender.mp3 add amb 2,25 copter set var func=0 end event clear store store item Glock 19,1,50,25,1 store item Browning Citori,1,50,25,1 store item Benelli,1,75,38,1 store item Winchester,1,50,25,1 store item Marlin,1,75,38,1 store item MP5,1,50,25,1 store item Uzi,1,60,30,1 store item AR15,1,50,25,1 store item Flamethrower,1,75,38,1 store item M79,1,100,50,1 store item Grenade,1,5,2,1 store item M40,1,50,25,1 store item M60,1,60,30,1 store item Guard,1,150,0,0 store item Master,1,150,0,0 give item 1 Field kit store item Med kit,1,40,20,1 store item 9mm ammo,20,24,12,1 store item Shotgun shells,12,24,12,1 store item .30 calibur,20,24,12,1 store item 5.56mm ammo,20,30,15,1 store item 7.62mm ammo,20,80,40,1 store item Gas,60,60,30,1 store item .45 ACP ammo,20,24,12,1 store item Arrows,2,2,1,1 store item Doctor's coat,1,50,25,1 store item Leather Jacket,1,75,38,1 store item Composite Armor,1,100,50,1 store item Swat Vest,1,100,50,1 store item Plate Armor,1,125,64,1 store item Apronic vest,1,150,75,1 store item Camo Jacket,1,50,25,1 store item Tuxedo t-shirt,1,50,25,1 store item Hard Hat,1,40,20,1 store item Paintball mask,1,50,25,1 store item Military helmet,1,75,38,1 store item Riot face guard,1,100,50,1 store item Apronic helmet,1,150,75,1 store item Work Jeans,1,50,25,1 store item Boots,1,50,25,1 store item Work boots,1,60,30,1 store item Steel toed boots,1,80,40,1 store item Apronic boots,1,150,75,1 +-1+block while mission=0 and time event m=0 s=5 if [player.hp]<=20 then jump to 215,40 if [player.hp]<=20 then heal player=100 set var px=[player.x] set var py=[player.y] set var truth=0 zombie count 76,92,172,157 taco=raider zombie count 76,92,172,157 temp=ally if px>76 then add truth by 1 if py>92 then add truth by 1 if px<172 then add truth by 1 if py<157 then add truth by 1 if truth>3 then add temp by 1 set var truth=kai if taco>0 then subtract kai by 1 if temp>0 then add kai by 1 if kai<=-2 then set var kai=-2 if kai>=2 then set var kai=2 if truth>0 then if kai=0 then radio=Kai Mart is being overrun! if truth=-1 then if kai=-2 then radio=The enemy has captured the Kai Mart! if truth=-1 then if kai=-2 then add random raider=4 if truth=1 then if kai=2 then radio=We've captured the Kai Mart! if truth=1 then if kai=2 then add ally spot 76,92,172,157 name=Emily gun=M16 if truth=1 then if kai=2 then add ally spot 76,92,172,157 name=Fred gun=Winchester if truth=1 then if kai=2 then add ally spot 76,92,172,157 name=Ginevra gun=M40 if truth=1 then if kai=2 then set ally obey Emily=yes if kai=2 then set ally aggression Emily=full if kai=2 then set ally ammo Emily=1000 if kai=2 then set ally obey Fred=yes if kai=2 then set ally aggression Fred=full if kai=2 then set ally ammo Fred=1000 if kai=2 then set ally obey Ginevra=yes if kai=2 then set ally aggression Ginevra=full if kai=2 then set ally ammo Ginevra=1000 if truth=1 then if kai=2 then hunt [ally.Ginevra.x],[ally.Fred.y] 150 if truth=1 then if kai=2 then add player reputation=250 if truth=1 then if kai=2 then level up if truth=1 then if kai=2 then add items 15 1 96,96,150,150 * zombie count 38,82,65,115 temp=Raider zombie count 38,82,65,115 taco=ally set var truth=0 if px>38 then add truth by 1 if py>82 then add truth by 1 if px<65 then add truth by 1 if py<115 then add truth by 1 if truth>3 then add taco by 1 set var truth=gass if temp>0 then add gass by -1 if taco>0 then add gass by 1 if gass<-2 then set var gass=-2 if gass>2 then set var gass=2 if truth>0 then if gass=0 then radio=We're losing control of the gas station! if truth=-1 then if gass=-2 then radio=The enemy has captured the Gas Station. if truth=-1 then if gass=-2 then add random Raider=1 if truth=1 then if gass=2 then radio=We've captured the gas station! if truth=1 then if gass=2 then add ally spot 15,44,46,72 name=Harvey gun=Browning Citori if truth=1 then if gass=2 then add ally spot 15,44,46,72 name=Isabel gun=Glock 19 if truth=1 then if gass=2 then set ally obey Harvey=yes if truth=1 then if gass=2 then set ally obey Isabel=yes if truth=1 then if gass=2 then set ally ammo Harvey=1000 if truth=1 then if gass=2 then set ally ammo Isabel=1000 if truth=1 then if gass=2 then hunt [ally.Isabel.x],[ally.Harvey.y] 75 zombie count 38,82,65,115 temp=Raider zombie count 38,82,65,115 taco=ally set var truth=0 if px>38 then add truth by 1 if py>82 then add truth by 1 if px<65 then add truth by 1 if py<115 then add truth by 1 if truth>3 then add taco by 1 set var truth=auto if temp>0 then add auto by -1 if taco>0 then add auto by 1 if auto>2 then set var auto=2 if auto<-2 then set var auto=-2 if auto=0 then if truth=1 then radio=The Auto Mart is under attack! if truth=-1 then if auto=-2 then radio=The enemy has captured the Auto Mart! if truth=-1 then if auto=-2 then add random Raider=1 if truth=1 then if auto=2 then radio=We've taken the Auto Mart! if truth=1 then if auto=2 then add ally spot 38,82,65,115 name=Jeremy gun=MP5 if truth=1 then if auto=2 then add ally spot 38,82,65,115 name=Kat gun=M40 if truth=1 then if auto=2 then add ally spot 38,82,65,115 name=Luis gun=M20 if truth=1 then if auto=2 then set ally obey Kat=yes if truth=1 then if auto=2 then set ally obey Jeremy=yes if truth=1 then if auto=2 then set ally obey Luis=yes if truth=1 then if auto=2 then set ally ammo Kat=1000 if truth=1 then if auto=2 then set ally ammo Jeremy=1000 if truth=1 then if auto=2 then set ally ammo Luis=1000 if truth=1 then if auto=2 then hunt px,py 75 zombie count 316,23,374,69 temp=Raider zombie count 316,23,374,69 taco=ally set var truth=0 if px>316 then add truth by 1 if py>23 then add truth by 1 if px<374 then add truth by 1 if py<69 then add truth by 1 if truth=4 then add taco by 1 set var truth=factory if temp>0 then add factory by -1 if taco>0 then add factory by 1 if factory>2 then set var factory=2 if factory<-2 then set var factory=-2 if truth=1 then if factory=0 then radio=The factory needs reenforcements! if truth=-1 then if factory=-2 then radio=The enemy has captured the factory! if truth=-1 then if factory=-2 then add random Raider=2 if truth=-1 then if factory=-2 then add items 15 1 316,23,374,69 * if truth=-1 then if factory=-2 then put sound 370,55 ambience\alarm1.wav if truth=-1 then if factory=-2 then put sound 315,25 ambience\alarm2.wav if truth=-1 then if factory=-2 then set var dx=aix if truth=-1 then if factory=-2 then set var dy=aiy if truth=-1 then if factory=-2 then add dx by 10 if truth=-1 then if factory=-2 then add dy by 10 if truth=-1 then if factory=-2 then put sound [random/aix/dx],[random/aiy/dy] weapons/RPG7/Fire.wav if truth=-1 then if factory=-2 then hurt zombie 0 50 aix,aiy,dx,dy ally if truth=0 then if factory=-1 then put sound 345,45 ambience\alarm1.wav if truth=1 then if factory=0 then put sound [random/320/360],[random/30/60] ambience/alarm1.wav if truth=1 then if factory=2 then radio=We've captured the factory! if truth=1 then if factory=2 then add items 15 1 50,10,[map.width],[map.height] Grenade if truth=1 then if factory=2 then add items 15 1 316,20,370,69 * if truth=1 then if factory=2 then add ally spot 316,23,374,69 name=Xantipe gun=ACR if truth=1 then if factory=2 then add ally spot 316,23,374,69 name=Yuriko gun=Vector if truth=1 then if factory=2 then add ally spot 316,23,374,69 name=Zack gun=Glock 19 if truth=1 then if factory=2 then set ally obey Zack=yes if truth=1 then if factory=2 then set ally obey Yuriko=yes if truth=1 then if factory=2 then set ally aggression Yuriko=full if truth=1 then if factory=2 then set ally obey Xantipe=yes if truth=1 then if factory=2 then set ally aggression Xantipe=some if truth=1 then if factory=2 then set ally aggression Zack=full if truth=1 then if factory=2 then set ally ammo Zack=1000 if truth=1 then if factory=2 then set ally ammo Yuriko=1000 if truth=1 then if factory=2 then set ally ammo Xantipe=1000 zombie count 136,207,169,234 temp=Raider zombie count 136,207,169,234 taco=ally set var truth=0 if px>136 then add truth by 1 if py>207 then add truth by 1 if px<169 then add truth by 1 if py<234 then add truth by 1 if truth>3 then add taco by 1 set var truth=petshop if temp>0 then add petshop by -1 if taco>0 then add petshop by 1 if petshop<-2 then set var petshop=-2 if petshop>2 then set var petshop=2 if petshop=0 then if truth=1 then add zone2 Canine=5 Cort's Pet Store if truth=-1 then if petshop=-2 then radio=The enemy has captured the petshop... if truth=-1 then if petshop=-2 then add random Canine=10 if truth=-1 then if petshop=-2 then add random dire=5 if truth=-1 then if petshop=-2 then add random Raider=1 if truth=-2 then if petshop=-1 then hunt px,py 100 if truth=1 then if petshop=2 then radio=We have captured the petshop! if truth=1 then if petshop=2 then add ally spot 136,207,169,234 name=Marie gun=AA12 if truth=1 then if petshop=2 then add ally spot 136,207,169,234 name=Nathan gun=M-1928 if truth=1 then if petshop=2 then set ally obey Marie=yes if truth=1 then if petshop=2 then set ally ammo Marie=1000 if truth=1 then if petshop=2 then set ally obey Nathan=yes if truth=1 then if petshop=2 then set ally ammo Nathan=1000 if truth=1 then if petshop=2 then set ally voice Nathan=35 if truth=1 then if petshop=2 then ally sound Nathan=mission3.wav if truth=1 then if petshop=2 then hunt 140,220 140 set var truth=0 zombie count 172,202,228,234 temp=Raider zombie count 172,202,228,234 taco=ally if px>172 then add truth by 1 if py>202 then add truth by 1 if px<228 then add truth by 1 if py<234 then add truth by 1 if truth>3 then add taco by 1 set var truth=hardware if temp>0 then add hardware by -1 if taco>0 then add hardware by 1 if hardware>2 then set var hardware=2 if hardware<-2 then set var hardware=-2 if hardware=0 then if truth=1 then radio=The Hardware Store is under attack! if hardware=-2 then if truth=-1 then radio=The enemy has taken the Hardware Store! if hardware=-2 then if truth=-1 then add random Raider=1 if hardware=2 then if truth=1 then radio=We've captured the Hardware Store! if truth=1 then if hardware=2 then add item 1 172,202,228,234 Metal shoulder pads if truth=1 then if hardware=2 then add item 1 172,202,228,234 Chainsaw if truth=1 then if hardware=2 then add ally spot 172,202,228,234 name=Olivia gun=Marlin if truth=1 then if hardware=2 then add ally spot 172,202,228,234 name=Peter gun=Remington if truth=1 then if hardware=2 then set ally obey Olivia=yes if truth=1 then if hardware=2 then set ally obey Peter=yes if truth=1 then if hardware=2 then set ally ammo Olivia=1000 if truth=1 then if hardware=2 then set ally ammo Peter=1000 if truth=1 then if hardware=2 then add items 2 1 4,4,[map.width],[map.height] Balls of steel set var truth=0 zombie count 350,101,366,146 temp=Raider zombie count 350,101,366,146 taco=ally if px>350 then add truth by 1 if py>101 then add truth by 1 if px<366 then add truth by 1 if py<146 then add truth by 1 if truth>3 then add taco by 1 set var truth=chrch if temp>0 then add chrch by -1 if taco>0 then add chrch by 1 if chrch<-2 then set var chrch=-2 if chrch>2 then set var chrch=2 if chrch=0 then if truth=1 then radio=The church is under attack! if truth=-1 then if chrch=-2 then radio=The enemy has captured the church! if truth=-1 then if chrch=-2 then add random Reaper=15 if truth=1 then if chrch=2 then radio=We have the church! if truth=1 then if chrch=2 then play sound ambience/church.wav if truth=-1 then if chrch=-2 then play sound ambience\church.wav if truth=1 then if chrch=2 then add ally spot 350,101,366,146 name=Ursula gun=M4A1 if truth=1 then if chrch=2 then add ally spot 350,101,366,146 name=Victor gun=UMP45 if truth=1 then if chrch=2 then add ally spot 350,101,366,146 name=Wendy gun=AA12 if truth=1 then if chrch=2 then set ally obey Wendy=yes if truth=1 then if chrch=2 then set ally aggression Wendy=full if truth=1 then if chrch=2 then set ally ammo Wendy=1000 if truth=1 then if chrch=2 then set ally obey Ursula=yes if truth=1 then if chrch=2 then set ally aggression Ursula=full if truth=1 then if chrch=2 then set ally ammo Ursula=1000 if truth=1 then if chrch=2 then set ally obey Victor=yes if truth=1 then if chrch=2 then set ally aggression Victor=full if truth=1 then if chrch=2 then set ally ammo Victor=1000 if truth=1 then if chrch=2 then heal player=100 if truth=1 then if chrch=2 then add items 20 5 7,7,210,420 Med kit set var truth=0 zombie count 392,198,417,232 temp=Raider zombie count 392,198,417,232 taco=ally if px>=392 then add truth by 1 if py>198 then add truth by 1 if px<417 then add truth by 1 if py<232 then add truth by 1 if truth>3 then add taco by 1 set var truth=gens if temp>0 then add gens by -1 if taco>0 then add gens by 1 if gens<-2 then set var gens=-2 if gens>2 then set var gens=2 if gens=-2 then if truth=-1 then radio=The enemy has captured Jenifer's house! if truth=1 then if gens=2 then radio=We've captured Jenifer's house! if truth=-1 then if gens=-2 then add random Raider=1 if truth=1 then if gens=2 then add ally spot 389,201,413,226 name=Charley gun=M40 if truth=1 then if gens=2 then set ally ammo Charley=100 if truth=1 then if gens=2 then set ally aggression Charley=full set var truth=0 zombie count 358,198,377,233 temp=raider zombie count 358,198,377,233 taco=ally if px>358 then add truth by 1 if py>=198 then add truth by 1 if px<=377 then add truth by 1 if py<233 then add truth by 1 if truth>3 then add taco by 1 set var truth=lillies if temp>0 then add lillies by -1 if taco>0 then add lillies by 1 if lillies<-2 then set var lillies=-2 if lillies>2 then set var lillies=2 if truth=-1 then if lillies=-2 then radio=The enemy has captured Lilly's house! if truth=-1 then if lillies=-2 then add random Raider=1 if truth=1 then if lillies=2 then radio=We have captured Lilly's house! if truth=1 then if lillies=2 then add ally spot 358,203,376,230 name=Barbara gun=Glock 17 if truth=1 then if lillies=2 then set ally ammo Barbara=1000 if lillies=2 then if truth=1 then set ally aggression Barbara=full if lillies=2 then set ally obey Barbara=yes set var truth=0 zombie count 325,197,351,217 temp=raider zombie count 325,197,351,217 taco=ally if px>325 then add truth by 1 if py>197 then add truth by 1 if px<351 then add truth by 1 if py<217 then add truth by 1 if truth>3 then add taco by 1 set var truth=sams if temp>0 then add sams by -1 if taco>0 then add sams by 1 if sams>2 then set var sams=2 if sams<-2 then set var sams=-2 if truth=1 then if sams=2 then radio=We have Sam's house! if truth=-1 then if sams=-2 then add random Raider=1 if truth=1 then if sams=2 then add ally spot 325,198,351,217 name=Aaron gun=Winchester if truth=1 then if sams=2 then set ally obey Aaron=yes if truth=1 then if sams=2 then set ally ammo Aaron=1000 if truth=1 then if sams=2 then set ally aggression Aaron=full if truth=1 then if sams=2 then set ally speed Aaron=40 if truth=1 then if sams=2 then set ally speed Alice=40 if truth=1 then if sams=2 then set ally speed Bob=40 if truth=1 then if sams=2 then set ally speed Carrol=40 if truth=1 then if sams=2 then set ally speed David=40 set var bases=0 set var enemybase=0 if kai>1 then add bases by 1 if kai<0 then add enemybase by 1 if gass>1 then add bases by 1 if gass<-1 then add enemybase by 1 if auto>1 then add bases by 1 if auto<-1 then add enemybase by 1 if factory>1 then add bases by 1 if factory<-1 then add enemybase by 1 if chrch>1 then add bases by 1 if chrch<-1 then add enemybase by 1 if sams>1 then add bases by 1 if sams<-1 then add enemybase by 1 if lillies>1 then add bases by 1 if lillies<-1 then add enemybase by 1 if gens>1 then add bases by 1 if gens<-1 then add enemybase by 1 if fort1>1 then add bases by 1 if fort1<-1 then add enemybase by 1 if fort2>1 then add bases by 1 if fort2<-1 then add enemybase by 1 if petshop>1 then add bases by 1 if petshop<-1 then add enemybase by 1 if hardware>1 then add bases by 1 if hardware<-1 then add enemybase by 1 zombie count 0,0,[map.width],[map.height] temp=Raider if temp<[random/1/3] then Victory=The enemy has been defeated! Good work! if veh=1 then play sound Ambience\copter.wav if temp=[random/5/40] then if veh=0 then set var truth=-4 if truth=-4 then set var boss=[random/1/9] if truth=-4 then if boss=1 then ally sound Alice=voices\8\warning1.wav if truth=-4 then if boss=2 then ally sound Bob=voices\41\warning2.wav if truth=-4 then if temp=3 then ally sound Carrol=voices\10\warning3.wav if truth=-4 then if boss=4 then ally sound Alice=voices\8\warning2.wav if truth=-4 then if boss=5 then ally sound Bob=voices\41\warning3.wav if truth=-4 then if temp=6 then ally sound Carrol=voices\10\warning2.wav if truth=-4 then if boss=7 then ally sound Alice=voices\8\warning3.wav if truth=-4 then if boss=8 then ally sound Bob=voices\41\warning1.wav if truth=-4 then if temp=9 then ally sound Carrol=voices\10\warning1.wav if truth=-4 then set var hitX=[player.x] if truth=-4 then set var hitY=[player.y] set var dx=hitX set var dy=hitY add dx by 10 add dy by 10 add hitX by -10 add hitY by -10 if truth=-4 then put sound [random/hitX/dx],[random/hitY/dy] Ambience\copter.wav if truth>-4 then if veh=-1 then add hitX by [random/-5/10] if truth>-4 then if veh=-1 then add hitY by [random/-5/10] if truth>-4 then if veh=-1 then add dx by [random/-10/5] if truth>-4 then if veh=-1 then add dy by [random/-10/5] zombie count hitX,hitY,dx,dy taco=ally if veh=-1 then put sound hitX,hitY weapons/vulcan/fireM.wav set var truth=0 if px>hitX then add truth by 1 if pxhitY then add truth by 1 if py4 then play sound zombies/Tyrant/vulcan1.wav if truth>4 then hurt player=[random/10/80] if veh=-1 then hurt zombie 5 80 hitX,hitY,dx,dy ally if taco>0 then if veh=-1 then put sound [random/hitX/dx],[random/hitY/dy] zombies/normal/vulcan1.wav if taco>1 then if veh=-1 then put sound [random/hitX/dx],[random/hitY/dy] voices/8/hurt1.wav if taco>2 then if veh=-1 then put sound [random/hitX/dx],[random/hitY/dy] voices/41/hurt2.wav if taco>3 then if veh=-1 then put sound [random/hitX/dx],[random/hitY/dy] voices/10/hurt3.wav if veh=-1 then put sound hitX,hitY sounds/weapons/vulcan/tailM.wav if veh=-1 then put sound dx,dy sounds/weapons/vulcan/wall.wav if truth>-4 then if veh=-1 then set var veh=0 if truth=-4 then set var veh=-1 item count temp=Guard if temp>0 then give item -1 Guard if temp>0 then set var func=6 item count temp=Master if temp=1 then give item 1 Master if temp=3 then give item -1 Master if temp>2 then radio=Aprone is already here. if temp=1 then set var func=7 add aix by 10 if aix>410 then add aiy by 10 if aix>410 then set var aix=2 if aiy>270 then set var aiy=2 set var temp=0 if [ally.Alice.hp]<50 then set var temp=[random/1/3] if temp=1 then ally sound Alice=voices/8/medic1.wav if temp=2 then ally sound Alice=voices/8/medic2.wav if temp=3 then ally sound Alice=voices/8/medic3.wav set var temp=0 if [ally.Bob.hp]<50 then set var temp=[random/1/3] if temp=1 then ally soundBob=voices/41/medic1.wav if temp=2 then ally soundBob=voices/41/medic2.wav if temp=3 then ally soundBob=voices/41/medic3.wav set var temp=0 if [ally.Carrol.hp]<50 then set var temp=[random/1/3] if temp=1 then ally soundCarrol=voices/10/medic1.wav if temp=2 then ally soundCarrol=voices/10/medic2.wav if temp=3 then ally soundCarrol=voices/10/medic3.wav set var temp=0 if [ally.David.hp]<50 then set var temp=[random/1/3] if temp=1 then ally soundDavid=voices/23/medic1.wav if temp=2 then ally soundDavid=voices/23/medic2.wav if temp=3 then ally soundDavid=voices/23/medic3.wav if func=0 then set var func=4 set timer m=0 s=0 end event +-1+block while veh<=0 and shiftq event mission>=0 zombie count 1,1,[map.width],[map.height] taco=Raider zombie count 1,1,[map.width],[map.height] temp=ally zombie count 1,1,[map.width],[map.height] truth=guard add temp by truth add truth by 1 radio=We have [bases] buildings, and the enemy has [enemybase]. We have [temp] troops, and the enemy has [taco]. end event // Spawning or respawning allies: +-1+block ally death event Alice add ally spot 210,34,220,45 name=Alice gun=MP5 set ally ammo Alice=1000 set ally obey Alice=yes set ally aggression Alice=full set ally voice Alice=8 ally sound Alice=voice/8/battlecry1.wav end event // Weapon name constants: new var winchester="Winchester" new var marlin="Marlin" new var remington="Remington" new var citori="Browning Citori" +-1+block kill event=raider add player xp=1 if [player.lastshot]=winchester then add player reputation=1 if [player.lastshot]=marlin then add player reputation=1 if [player.lastshot]=remington then add player reputation=2 if enemybase>2 then add random Raider=1 set var temp=[random/1/7] if kai=-2 then if temp=1 then add zone2 Raider=1 Kai Mart if auto=-1 then if temp=2 then add zone2 Raider=1 Auto Mart if gass=-2 then if temp=3 then add zone2 Raider=1 Gas Station if petshop=-2 then if temp=4 then add zone2 Raider=1 Cort's Pet Store if hardware=-2 then if temp=5 then add zone2 raider=1 Hardware Store if chrch=-2 then if temp=7 then add zone2 Raider=1 Church if fort1=-2 then if temp=6 then add zone2 Raider=1 Fort if fort2=-2 then if temp=1 then add zone2 Raider=1 Fort if gens=-2 then if temp=2 then add zone2 Raider=1 Jenifer's house if sams=-2 then if temp=3 then add zone2 Raider=1 Sam's house if lillies=-2 then if temp=4 then add zone2 Raider=1 Lilly's house if factory=-2 then if temp=5 then add zone2 Raider=1 Factory if kai=-2 then if temp=6 then add zone2 Raider=1 Kai Mart if temp=7 then if factory=-2 then add zone2 Raider=1 Factory end event chat event=kaimart jump to 100,100 chat event=gass jump to 50,50 chat event=automart jump to 50,100 chat event=Factory jump to 300,30 chat event=Church jump to 300, 120 // Vehicles are difficult, but possible +-1+block location enter event 2,22,6,31 give item 1 Vulcan Minigun give item 500 7.62mm ammo play sound get\Gatling.wav set var veh=1 set var vehx=[player.x] set var vehy=[player.y] set var px=westx set var py=northy set var westx=vehx add westx by -2 set var northy=vehy add northy by -2 set var eastx=vehx add eastx by 2 set var southy=vehy add southy by 2 set var dx=westx add dx by 1 set var dy=northy add dy by 2 set var func=3 radio=Hold shift and press q to fly in the direction you're facing. Press enter to land. end event +-1+block enter event veh=1 set var dx=vehx set var dy=vehy add dx by -3 add dy by -3 set var hitX=dx set var hitY=dy copy map 40,230 45,235 to dx,dy give item -1 Vulcan Minigun play sound items\crate.wav set var hitX=dx set var hitY=dy add hitY by 2 add hitX by 1 move location enter event dx,dy,hitX,hitY 40,224,41,226 add dx by 2 add hitY by -1 add hitX by 2 move location event dx,dy,hitX,hitY 42,224,44,225 add dx by 1 add dy by 2 add hitY by 3 add hitX by 2 move location event dx,dy,hitX,hitY 43,226,45,229 set var dx=vehx set var dy=vehy add dx by -2 add dy by 1 set var hitX=vehx set var hitY=vehy add hitY by 3 move location enter event dx,dy,hitX,hitY 40,227,42,229 set var westx=40 set var northy=224 set var eastx=45 set var southy=229 set var veh=0 end event // West +-1+block while vehx>7 and location event 40,224,41,226 set var dx=vehx set var dy=vehy set var hitX=dx set var hitY=dy add dx by -2 add dy by -2 add hitX by 2 add hitY by 2 copy map 40,230, 44,234 to dx,dy set var dx=vehx set var dy=vehy add dx by -7 add dy by -2 set var hitX=dx set var hitY=dy add hitX by 4 add hitY by 4 copy map dx,dy,hitX,hitY to 40,230 copy map 40,224, 44,228 to dx,dy set var px=westx set var py=northy set var bossx=eastx set var bossy=southy add vehx by -5 add westx by -5 add eastx by -5 jump to vehx,vehy set var func=3 end event +-1+block var event func=3 set var dx=westx add dx by 1 set var dy=northy add dy by 2 set var hitX=px set var hitY=py add hitX by 1 add hitY by 2 move location event px,py,hitX,hitY westx,northy,dx,dy add px by 2 add hitX by 3 add hitY by -1 add dx by 3 add dy by -1 set var temp=westx add temp by 2 move location event px,py,hitX,hitY temp,northy,dx,dy add temp by 1 add dy by 4 set var taco=northy add taco by 2 add px by 1 add py by 2 add hitY by 4 move location event px,py,hitX,hitY temp,taco,dx,dy set var dx=temp add dx by -1 add taco by 1 add temp by -3 add px by -3 add py by 1 set var hitX=px add hitX by 2 move location event px,py,hitX,hitY temp,taco,dx,dy set var func=0 end event // Keeping track of location events for controlling vehicles: new var westx=40 new var eastx=45 new var northy=224 new var southy=229 // Vehicle, east: +-1+block while vehx>7 and location event 43,226,45,229 set var dx=vehx set var dy=vehy set var hitX=dx set var hitY=dy add dx by -2 add dy by -2 add hitX by 2 add hitY by 2 copy map 40,230, 44,234 to dx,dy set var dx=vehx set var dy=vehy add dx by 7 add dy by -2 set var hitX=dx set var hitY=dy add hitX by 4 add hitY by 4 copy map dx,dy,hitX,hitY to 40,230 copy map 40,224, 44,228 to dx,dy set var px=westx set var py=northy add vehx by 5 add westx by 5 add eastx by 5 jump to vehx,vehy set var func=3 end event block chat event=quick! give item 10 Med kit give item 1 AK47 give item 1000 7.62mm ammo give item 1 Apronic helmit give item 1 Apronic vest give item 1 Apronic leggings give item 1 Apronic boots give item 1 Utility belt end event +-1+block chat event=houses set var temp=0 if sams>1 then add temp by 1 if sams<-1 then add temp by 2 if lillies>1 then add temp by 4 if lillies<-1 then add temp by 8 if gens>1 then add temp by 16 if gens<-1 then add temp by 32 if temp=0 then radio=The houses are currently free. if temp=1 then radio=We have Sam's house. if temp=2 then radio=The enemy has Sam's house. if temp=4 then radio=We have Lilly's house. if temp=8 then radio=The enemy has Lilly's house. if temp=9 then radio=We have Sam's house. The enemy has Lilly's house. if temp=5 then radio=We have Sam's house and Lilly's house. if temp=6 then radio=We have Lilly's house. The enemy has Sam's house. if temp=10 then radio=The enemy has Sam's house and Lilly's house. if temp=16 then radio=We have Jenifer's house. if temp=32 then radio=The enemy has Jenifer's house. if temp=17 then radio=We have Sam's house and Jenifer's house. if temp=18 then radio=We have Jenifer's house. The enemy has Sam's house. if temp=20 then radio=We have Lilly's house and Jenifer's house. if temp=21 then radio=We have all the houses. if temp=22 then radio=We have Lilly's house and Jenifer's house. The enemy has Sam's house. if temp=24 then radio=We have Jenifer's house. The enemy has Lilly's house. if temp=25 then radio=We have Sam's house and Jenifer's house. The enemy has Lilly's house. if temp=26 then radio=We have Jenifer's house. The enemy has Sam's house and Lilly's house. if temp=32 then radio=The enemy has Jenifer's house. if temp=33 then radio=We have Sam's house. The enemy has Jenifer's house. if temp=34 then radio=The enemy has Sam's house and Jenifer's house. if temp=36 then radio=We have Lilly's house. The enemy has Jenifer's house. If temp=37 then radio=We have Sam's house and Lilly's house. The enemy has Jenifer's house. If temp=38 then radio=We have Lilly's house. The enemy has Sam's house and Jenifer's house. if temp=40 then radio=The enemy has Lilly's house and Jenifer's house. if temp=41 then radio=We have Sam's house. The enemy has Lilly's house and Jenifer's house. if temp=42 then radio=The enemy has all the houses. end event +-1+block chat event=Gas Station if gass>1 then radio=We are in possession of the gas station. if gass<-1 then radio=The enemy controls the gas station. if gass<>-2 then if gass<>2 then radio=No one is in control of the gas station. end event +-1+block chat event=Auto Mart set var temp=0 if auto>1 then add temp by 1 if auto<-1 then add temp by 2 if temp=0 then radio=The Auto Mart is currently uncontrolled. if temp=1 then radio=We have the Auto Mart. if temp=2 then radio=The enemy has the Auto Mart. end event +-1+block chat event=Kai Mart set var temp=0 if kai<-1 then add temp by 2 if kai>1 then add temp by 1 if temp=0 then radio=No one owns the Kai Mart. if temp=1 then radio=The Kai Mart is ours. if temp=2 then radio=The enemy currently holds the Kai Mart. end event +-1+block chat event=Hardware Store if hardware<>2 and hardware<>-2 then radio=The Hardware Store is open! if hardware=2 then radio=We control the Hardware Store if hardware=-2 then radio=The enemy has the hardware store. end event +-1+block chat event=Church if chrch<>-2 and chrch<>2 then radio=No one controls the Church. if chrch=-2 then radio=The enemy is in the church. if chrch=2 then radio=We have the church. end event +-1+block chat event=Factory if factory<>-2 and factory<>2 then radio=The Factory is uncontrolled. if factory=-2 then radio=The enemy has the factory. if factory=2 then radio=We're in control of the factory. end event +-1+block chat event=forts set var temp=0 if fort1>1 then add temp by 1 if fort1<-1 then add temp by 2 if fort2>1 then add fort2 by 4 if fort2<-1 then add temp by 8 if temp=1 then radio=We have the west fort. if temp=0 then radio=Both forts are abandonned. if temp=2 then radio=The enemy has the west fort. if temp=4 then radio=We have the east fort. if temp=5 then radio=We have both forts. if temp=6 then radio=We have the east fort, and the enemy has the west. if temp=8 then radio=the enemy has the east fort. if temp=9 then radio=We have the west fort, and the enemy has the east. if temp=10 then radio=The enemy has both forts. end event +-1+block ally death event Bob add ally spot=200,30,220,50 name=Bob gun=AR15 set ally obey Bob=yes set ally aggression Bob=full set ally ammo Bob=1000 set ally voice Bob=41 ally sound Bob=voices/41/ready1.wav end event +-1+block ally death event Carrol add ally spot 210,34,220,45 name=Carrol gun=Benelli set ally obey Carrol=yes set ally ammo Carrol=1000 set ally aggression Carrol=full set ally voice Carrol=10 ally sound Carrol=voices/10/taunt2.wav end event +-1+block ally death event David add ally spot 210,34,220,45 name=David gun=Glock 17 set ally obey David=yes set ally ammo David=1000 set ally voice David=23 ally sound David=voices/23/battlecry2.wav end event chat event=heliport jump to 5,25 // for AI things that happen out of range. new var aix=0 new var aiy=0 +-1+block var event func=4 set var bossx=aix set var bossy=aiy add bossx by 10 add bossy by 10 zombie count aix,aiy,bossx,bossy temp=Raider zombie count aix,aiy,bossx,bossy taco=ally if aiy>=60 then if aiy<200 then performance=aiy set var truth=[random/0/10] if taco<1 then add truth by 100 if temp<1 then add truth by 100 subtract truth by temp subtract truth by taco set var taco=[random/1/9] if truth<=0 then if taco=1 then put sound [random/aix/bossx],[random/aiy/bossy] weapons/AR15/BurstM.wav if truth<=0 then if taco=2 then put sound [random/aix/bossx],[random/aiy/bossy] weapons/M240/FireM.wav if truth<=0 then if taco=3 then put sound [random/aix/bossx],[random/aiy/bossy] weapons/AK47/BurstM.wav if truth<=0 then if taco=4 then put sound [random/aix/bossx],[random/aiy/bossy] weapons/flamethrower/fireM.wav if truth<=0 then if taco=4 then put sound [random/aix/bossx],[random/aiy/bossy] zombies/normal/flame1.wav if truth<=0 then if taco=5 then put sound [random/aix/bossx],[random/aiy/bossy] weapons/M1928/burstM.wav if truth<=0 then if taco=6 then put sound [random/aix/bossx],[random/aiy/bossy] weapons/ACR/BurstM.wav if truth<=0 then if taco=7 then put sound [random/aix/bossx],[random/aiy/bossy] weapons/SCARH\BurstM.wav if truth<=0 then if taco=8 then put sound [random/aix/bossx],[random/aiy/bossy] weapons/M2/FireM.wav if truth<=0 then if taco=9 then put sound [random/aix/bossx],[random/aiy/bossy] weapons/Scorpion/fire.wav if truth<=0 then hurt zombie 10 70 aix,aiy,bossx,bossy ally if temp>0 then if truth>0 then hunt [player.x],[player.y] 100 if factory<-1 then put sound [random/aix/bossx],[random/aiy/bossy] weapons/M79/explode.wav if factory<-1 then hurt zombie 10 50 aix,aiy,bossx,bossy Guard if factory<-1 then hurt zombie 10 50 aix,aiy,bossx,bossy ally set var truth=0 if [player.x]>=aix then if [player.x]<=bossx then add truth by 2 if [player.y]>=aiy then if [player.y]<=bossy then add truth by 2 if truth>3 then if [player.hp]<50 then jump to 220,42 if truth>3 then if [player.hp]<50 then heal player=100 if truth>3 then hurt player=[random/1/50] if truth>3 then play sound zombies/Tyrant/explosive1.wav set var truth=0 if petshop<-1 then if bases>enemybase then add truth by 2 if truth>0 then add truth by taco subtract truth by [random/0/4] if taco>0 then if truth>0 then add spot aix,aiy,bossx,bossy Canine=[random/1/5] set var truth=0 if auto<-1 then if gass<-1 then add truth by 2 if truth>0 then put sound [random/aix/bossx],[random/aiy/bossy] ambience/copter.wav if truth>0 then if taco>0 then put sound [random/aix/bossx],[random/aiy/bossy] weapons/Vulcan/Fire.wav if truth>0 then if taco>0 then put sound [random/aix/bossx],[random/aiy/bossy] weapons/Vulcan/Tail.wav if truth>0 then if taco>0 then hurt zombie 0 50 aix,bossx,aiy,bossy ally if [player.x]>aix then if [player.x]aiy then if [player.y]4 then if [player.hp]<50 then jump to 220,42 if truth>4 then if [player.hp]<50 then heal player=100 if truth>4 then play sound zombies/Tyrant/Vulcan1.wav if truth>4 then hurt player=[random/10/50] set var func=0 end event // The helicopter isn't working. Let's try something else +-1+block shiftq event veh=1 item count truth=Gas set var dx=vehx set var dy=vehy set var px=dx set var py=dy add dx by -3 add dy by -3 set var hitX=dx set var hitY=dy add hitX by 5 add hitY by 5 set var truth=0 set var temp=0 set var taco=0 if [player.D]>337 then add truth by 2 if [player.D]<23 then add truth by 2 if truth>1 then set var temp=5 set var truth=0 if [player.D]>=23 then if [player.D]<68 then add truth by 1 if truth=1 then set var temp=4 if truth=1 then set var taco=4 set var truth=0 if [player.D]>=68 then if [player.D]<113 then set var taco=5 if [player.D]>=113 then if [player.D]<158 then set var truth=2 if truth=2 then set var temp=-4 if truth=2 then set var taco=4 set var truth=0 if [player.D]>=158 then if [player.D]<203 then set var temp=-5 if [player.D]>=203 then if [player.D]<248 then set var truth=3 if truth=3 then set var temp=-4 if truth=3 then set var taco=-4 set var truth=0 if [player.D]>=248 then if [player.D]<293 then set var taco=-5 if [player.D]>=293 then if [player.D]<338 then set var truth=4 if truth=4 then set var temp=4 if truth=4 then set var taco=-4 item count truth=Gas if truth=0 then set var temp=0 if truth=0 then set var taco=0 add vehx by temp add vehy by taco add px by -3 add py by -3 add px by temp add py by taco add temp by hitX add taco by hitY if vehx<5 then set var px=3 if vehx<5 then set var temp=8 if vehx<5 then set var vehx=5 if vehy<5 then set var py=3 if vehy<5 then set var taco=8 if vehy<5 then set var vehy=5 if vehx>=[map.width] then subtract px by 3 if vehx>=[map.width] then set var temp=[map.width] if vehx>=[map.width] then set var px=temp if vehx>=[map.width] then add px by -5 if vehx>=[map.width] set var vehx=temp if vehx=temp then add vehx by -3 if taco>=[map.height] then set var taco=[map.height] if taco=[map.height] then set var py=tac if taco=[map.height] add py by -5 if taco=[map.height] then set var vehy=taco if taco=vehy then add vehy by -3 //debug=vehx=[vehx] vehy=[vehy], px[px], py[py], temp[temp], taco[taco], dx[dx], dy[dy], hitX[hitX\, hitY[hitY]. if truth>0 then copy map 40,230 45,235 to dx,dy if truth>0 then copy map px,py temp,taco to 40,230 if truth>0 then copy map 325,52 330,57 to px,py give item -1 Gas if truth=1 then play sound weapons/Vulcan/Empty.wav jump to vehx,vehy end event block chat event=heli give item 1000 Gas jump to 5, 25 heal player=100 end event +-1+block var event func=6 clear menu menu item 0=Where do you want to place the guard? set var truth=0 if kai>1 then add truth by 1 if kai>1 then menu item 20=Kai Mart if gass>1 then add truth by 1 if gass>1 then menu item 22=Gas Station if auto>1 then add truth by 1 if auto>1 then menu item 21=Auto Mart if petshop>1 then add truth by 1 if petshop>1 then menu item 23=Cort's Pet Store if hardware>1 then add truth by 1 if hardware>1 then menu item 24=Hardware Store if chrch>1 then add truth by 1 if chrch>1 then menu item 25=Church if Factory>1 then add truth by 1 if factory>1 then menu item 26=Factory if sams>1 then add truth by 1 if sams>1 then menu item 27=Sam's House if lillies>1 then add truth by 1 if lillies>1 then menu item 28=Lilly's House if gens>1 then add truth by 1 if gens>1 then menu item 29=Genifer's house if truth=0 then clear menu give item -1 Guard if truth=0 then add player reputation=150 if truth=0 then say=You must capture a building before you can place guards. if truth>0 then open menu end event +-1+menu event=20 add spot 130,150,150,155 Guard=1 +-1+menu event=21 add spot 50,111,60,116 Guard=1 +-1+menu event=22 add spot 33,50,3,50 Guard=1 +-1+menu event=23 add spot 142,208,241,208 Guard=1 +-1+menu event=24 add spot 217,217,217,222 Guard=1 +-1+menu event=25 add spot 363,111,363,117, Guard=1 +-1+menu event=26 add spot 371,47,371,47 Guard=1 menu event=27 add spot 340,200,240,200 Guard=1 +-1+menu event=28 add spot 375,212,375,212 Guard=1 +-1+menu event=29 add spot 392,225,304,224 Guard=1 block var event func=7 add ally spot 10,10,420,220 name=Aprone gun=M40 set ally aim Aprone=3 set ally obey Aprone=false set ally mission Aprone=wander set ally speed Aprone=45 set ally aggression Aprone=full set ally ammo Aprone=1000 radio=Aprone has joined the battle! set timer2 m=0 s=0 start timer2 end event +-1+block ally death event Aprone add ally spot 290,190,300,195 name=Aprone gun=M240 set ally obey Aprone=false set ally mission Aprone=wander set ally speed Aprone=45 set ally aggression Aprone=full set ally ammo Aprone=1000 ally sound Aprone=voices/1/mandown1.wav radio=Aprone is holding the Bridge. set timer2 m=0 s=0 start timer2 end event +-1+block time2 event m=0 s=1 set var dx=[ally.Aprone.x] set var dy=[ally.Aprone.y] set var px=[ally.Aprone.x] set var py=[ally.Aprone.y] add dx by -5 add dy by -5 add px by 5 add py by 5 set var truth=0 zombie count dx,dy,px,py taco=ally if taco>1 then add truth by 1 if truth=1 then hurt zombie -40 -20 dx,dy,px,py ally if truth=1 then ally sound Aprone=weapons/fieldkit/apply.wav zombie count dx,dy,px,py temp=any if temp>taco then add truth by 2 subtract temp by taco if temp>0 then if taco=1 then put sound [ally.Aprone.x],[ally.Aprone.y] weapons/Chainsaw/FireM.wav if temp>0 then if taco=1 then hurt zombie 10 300 dx,dy,px,py any zombie count dx,dy,px,py truth=any if temp>0 then if taco=1 then put sound [random/dx/px],[random/dy/py] zombies/normal/chainsaw1.wav subtract truth by taco if truth30 then if [ally.Aprone.y]<66 then add truth by 1 if [ally.Aprone.x]<210 then add truth by 1 if [ally.Aprone.y]>48 then add truth by 1 if truth=3 then set ally go 30,50 Aprone set var truth=0 if [ally.Aprone.x]<33 then if [ally.Aprone.x]>25 then add truth by 1 if [ally.Aprone.y]>45 then if [ally.Aprone.y]<55 then add truth by 1 if truth=2 then set ally go 35,40 Aprone set var truth=0 if [ally.Aprone.x]>=30 then if [ally.Aprone.x]<=36 then add truth by 1 if [ally.Aprone.y]>40 then if [ally.Aprone.y]<=46 then add truth by 1 if truth=2 then set ally go 33,32 Aprone set var truth=0 if [ally.Aprone.y]<34 then if [ally.Aprone.x]<34 then set ally go 14,38 Aprone if [ally.Aprone.x]<=16 then if [ally.Aprone.y]<40 then add truth by 1 if [ally.Aprone.y]>35 then add truth by 1 if truth>1 then set ally go7,54 Aprone set var truth=0 if [ally.Aprone.x]<10 then if [ally.Aprone.y]<60 then add truth by 1 if [ally.Aprone.y]>52 then add truth by 1 if truth=2 then set ally go 17,64 Aprone set var truth=0 if [ally.Aprone.x]>=15 then if [ally.Aprone.x]<20 then add truth by 1 if [ally.Aprone.y]>60 then if [ally.Aprone.y]<70 then add truth by 1 if truth=2 then set ally go 30,68 Aprone set timer2 m=0 s=0 end event +-1+block fire event Field Kit set var px=[player.x] set var py=[player.y] set var dx=px set var dy=py add px by -10 add py by -10 add dx by 10 add dy by 10 hurt zombie -30 -20 px,py,dx,dy ally set var truth=0 if [ally.Alice.x]>px then if [ally.Alice.x]py then add truth by 2 if truth>3 then add truth by [random/0/2] if truth=4 then ally sound Alice=voices/8/ready2.wav if truth=5 then ally sound Alice=voices/8/ready3.wav if truth=6 then ally sound Alice=voices/8/ready1.wav set var truth=0 if [ally.Bob.x]>px then if [ally.Bob.x]py then add truth by 2 if truth>3 then add truth by [random/0/2] if truth=4 then ally sound Bob=voices/41/ready2.wav if truth=5 then ally sound Bob=voices/41/ready3.wav if truth=6 then ally sound Bob=voices/41/ready1.wav set var truth=0 if [ally.Carrol.x]>px then if [ally.Carrol.x]py then add truth by 2 if truth>3 then add truth by [random/0/2] if truth=4 then ally sound Carrol=voices/10/ready2.wav if truth=5 then ally sound Carrol=voices/10/ready3.wav if truth=6 then ally sound Carrol=voices/10/ready1.wav set var truth=0 if [ally.David.x]>px then if [ally.David.x]py then add truth by 2 if truth>3 then add truth by [random/0/2] if truth=4 then ally sound David=voices/23/ready2.wav if truth=5 then ally sound David=voices/23/ready3.wav if truth=6 then ally sound David=voices/23/ready1.wav end event +-1+block chat event=AI set var dx=aix set var dy=aiy add dx by 10 add dy by 10 zombie count aix,aiy,dx,dy temp=Raider zombie count aix,aiy,dx,dy taco=ally say=AI is scanning [aix],[aiy]. There are [temp] raiders, and [taco] allies in this region. end event start timer3 +-1+block time3 event m=0 s=2 add aix by 10 if aix>410 then add aiy by 10 if aix>410 then set var aix=2 if aiy>270 then set var aiy=2 if func=0 then set var func=4 set timer3 m=0 s=0 end event +-1+block ally death event Emily if kai>1 then add ally spot 2,2,[map.width],[map.height] name=Emily gun=M16 if kai>1 then set ally ammo Emily=500 if kai>1 then set ally aggression Emily=full if kai>1 then set ally obey Emily=yes end event +-1+block ally death event Fred if kai>1 then add ally spot 2,2,[map.width],[map.height] name=Fred gun=Winchester if kai>1 then set ally obey Fred=yes if kai>1 then set ally ammo Fred=1000 if kai>1 then set ally aggression Fred=full end event +-1+block ally death event Genevra if kai>1 then add ally spot 2,2,[map.width],[map.height] name=Ginevra gun=M40 if kai>1 then set ally ammo Genevra=300 if kai>1 then set ally aggression Genevra=full if kai>1 then set ally obey Genevra=yes end event +-1+block ally death event Harvey if gass>1 then add ally spot 2,2,[map.width],[map.height] name=Harvey gun=Browning Citori if gass>1 then set ally aggression Harvey=full if gass>1 then set ally ammo Harvey=500 if gass>1 then set ally obey Harvey=yes end event +-1+block ally death event Isabel if gass>1 then add ally spot 2,2,[map.width],[map.height] name=Isabel gun=Glock 19 if gass>1 then set ally ammo Isabel=500 if gass>1 then set ally aggression Isabel=full if gass>1 then set ally obey Isabel=yes end event +-1+block ally death event Jeremy if auto>1 then add ally spot 2,2,[map.width],[map.height] name=Jeremy gun=MP5 if auto>1 then set ally obey Jeremy=yes if auto>1 then set ally aggression Jeremy=full if auto>1 then set ally ammo Jeremy=1000 end event +-1+block ally death event Kat if auto>1 then add ally spot 2,2,[map.width],[map.height] name=Kat gun=M40 if auto>1 then set ally aggression Kat=full if auto>1 then set ally ammo Kat=500 if auto>1 then set ally mission Kat=wander end event +-1+block ally death event Luis if auto>1 then add ally spot 2,2,[map.width],[map.height] name=Luis gun=M20 if auto>1 then set ally ammo Luis=1000 if auto>1 then set ally obey Luis=yes if auto>1 then set ally aggression Luis=full if auto>1 then set ally mission Luis=wander end event +-1+block ally death event Marie if petshop>1 then add ally spot 2,2,[map.width],[map.height] name=Marie gun=AA12 if petshop>1 then set ally ammo Marie=500 if petshop>1 then set ally aggression Marie=full if petshop>1 then set ally obey Marie=yes if petshop>1 then set ally mission Emily=wander end event /* if petshop>1 then add ally spot 136,207,169,234 name=Nathan gun=M-1928 if hardware>1 then add ally spot 172,202,228,234 name=Olivia gun=Marlin if hardware>1 then add ally spot 172,202,228,234 name=Peter gun=Remington if fort1<-1 then add zone2 raider=4 Fort if fort2<-1 then add zone2 Raider=4 Fort if fort1>1 then add ally spot 207,155,233,185 name=Queen gun=M240 if fort1>1 then add ally spot 207,155,233,185 name=Rodrigo gun=Uzi if fort2>1 then add ally spot 387,93,407,120 name=Suzan gun=Glock 17 if fort2>1 then add ally spot 387,93,407,120 name=Terry gun=AK47 if chrch>1 then add ally spot 350,101,366,146 name=Ursula gun=M4A1 if chrch>1 then add ally spot 350,101,366,146 name=Victor gun=UMP45 if chrch>1 then add ally spot 350,101,366,146 name=Wendy gun=AA12 if factory>0 then add ally spot 316,23,374,69 name=Xantipe gun=ACR if factory>1 then add ally spot 316,23,374,69 name=Yuriko gun=Vector if factory>1 then add ally spot 316,23,374,69 name=Zack gun=Glock 19 if sams>1 then add ally spot 325,198,351,217 name=Aaron gun=Winchester if lillies>1 then add ally spot 358,203,376,230 name=Barbara gun=Glock 17 if gens>1 then add ally spot 389,201,413,226 name=Charley gun=M40 if gens>1 then set ally ammo Charley=100 if sams>1 then set ally ammo Aaron=100 if lillies>1 then set ally ammo Barbara=100 */