//---- Evony Hookups ----//
//---- Trebuchet Leveling Double Hero Script - by EHU ----//
//---- Last Edited: 12/26/2014 ----//
//---- This is a Trebuchet Leveling, aka "trebbing",
//---- script for two heroes. The Insta-Treb hero
//---- levels another hero by first clearing all
//---- fortfications, then having 1 trap queued by
//---- the other hero, then queuing 10999 trebs with
//---- the insta-treb hero, and then by switching
//---- back to the other hero to wait for queued
//---- fortifications to build giving the other hero
//---- all the XP. Then, it demos the fortifications
//---- and starts the process all over again!! You
//---- will need to have a blank goal or trebbing-based
//---- goal saved in one of your city's goal slots to
//---- use as the TrebbingGoalNum..
//---- Main User-Defined Variables - Change These!! ----//
TrebHero="BigPol" //-- Insta-Treb Hero name --//
TrainHero="LilAttack" //-- Hero name to train and give XP to --//
MinFood="1000000000" //-- Mininum Food to stop at --//
MinStone="1000000000" //-- Mininum Stone to stop at --//
RegularGoalNum="0" //-- Save Slot # of Regular Goals --//
TrebbingGoalNum="9" //-- Save Slot # of Treb Goals - NO FORTIFICATIONS --//
TrapBuildTime="10" //-- Time it takes TrainHero to make 1 trap --//
//---- Nothing to edit below here!!! ----//
//------Start of actual Sript------
//------ Start of actual Sript ------
//------ Start of actual Sript ------
//------ Start of actual Sript ------
//------ Start of actual Sript ------
//------ Do Not Touch!! ----//
echo "Running Trebuchet Leveling Double Hero Script.."
//---- Initial Stone and Food Check..
label ResCheck
ifgoto (m_city.cityManager.resource.food.amount < MinFood) NoFood
ifgoto (m_city.cityManager.resource.stone.amount < MinStone) NoStone
echo "More than {MinStone} stone and {MinFood} food, let's start! ;)"
//---- Main Setup and variables..
label Start
execute "loadgoals {TrebbingGoalNum}"
recallall
execute "waithero {TrebHero}"
execute "waithero {TrainHero}"
//---- Delete non-treb forts..
Label DeleteForts
Traps = city.fortification.trap
Abs = city.fortification.abatis
ArchTower = city.fortification.arrowTower
Logs = city.fortification.rollingLogs
Trebs = city.fortification.rockfall
if (city.fortification.trap >= 1) execute "walldefense tra {Traps} demo"
if (city.fortification.abatis >= 1) execute "walldefense ab {Abs} demo"
if (city.fortification.arrowTower >= 1) execute "walldefense at {ArchTower} demo"
if (city.fortification.rollingLogs >= 1) execute "walldefense r {Logs} demo"
if (city.fortification.rockfall >= 1) execute "walldefense tre {Trebs} demo"
//---- Check Res again and continue actual Treb building and process of script..
label Continue
ifgoto (m_city.cityManager.resource.food.amount < MinFood) NoFood
ifgoto (m_city.cityManager.resource.stone.amount < MinStone) NoStone
//---- Build 1 Trap..
execute "setmayorbyname {TrainHero}"
execute "walldefense tra 1"
//---- Build 10999 Trebs..
label MainLoop
execute "setmayorbyname {TrebHero}"
execute "walldefense tre 10999"
execute "setmayorbyname {TrainHero}"
label Sleep
execute "sleep {TrapBuildTime-2}"
label Sleep2
sleep 2
//----- Demo 10999 Trebs and 1 Trap
label CheckTrebs
if (city.fortification.rockfall == 10999) execute "walldefense tre 10999 demo"
if (city.fortification.trap >= 1) execute "walldefense tra {city.fortification.trap} demo"
if (city.fortification.rockfall == 0) goto Continue
if (city.fortification.rockfall < 10999) goto DeleteForts
goto Sleep2
//---- Low Food..
label NoFood
execute "loadgoals {RegularGoalNum}"
label NoFoodEcho
echo "Less than {MinFood} food.. Script Stopped :("
sleep 30
loop NoFoodEcho 60
goto EOS
//---- Low Stone..
label NoStone
execute "loadgoals {RegularGoalNum}"
label NoStoneEcho
echo "Less than {MinStone} stone.. Script Stopped :("
sleep 30
loop NoStoneEcho 60
goto EOS
//---- End of Script..
label EOS
echo "Less than {MinStone} stone or {MinFood} food.. Script Stopped :("
//
//---- www.EvonyHookups.info ----//