Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////////////////////////
- //// ////
- //// CAN-Goals.txt ////
- //// ////
- //// Called by CAN-CoreScript.txt ////
- //// To use in situ :- ////
- //// call "https://pastebin.com/raw/ddr7k1Ga" ////
- //////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////
- //// ////
- //// Runs once at startup. ////
- //// ////
- //// Uses CanCount and CanDebug ////
- //// ////
- //// Load different Goals based on requirements. ////
- //// ////
- //////////////////////////////////////////////////////////
- if CanDebug > 0 echo "=== Starting CAN-Goals.txt - Cycle {CanCount}. ==="
- if CanCount != 0 return // Only set goals at startup.
- resetgoals // Reset ALL goals including prepend goals!
- echo ">>> Running CAN-Goals.txt <<<"
- config comfort:0
- taxpolicy 50 80
- config warrules:1
- defensepolicy /usetruce:95 /usespeech:3 /junktroop:1000 /usecorselet:1
- config hero:1
- nolevelheroes any
- //// config trade:0
- config buildnpc:0
- config npc:5
- fortification tra:1,ab:1
- troop /idlequeuetime:1 /usereserved:1 p:1,sw:1,wo:1,w:1
- troop /idlequeuetime:2 /usereserved:1 wo:10,w:10,s:10,p:10,sw:10,a:10,c:10,cata:10
- troop t:440,b:550
- troop t:4400,b:5500
- troop t:10k,b:6k
- config trade:1
- tradepolicy /type:gold /min:100m
- tradepolicy /type:food /min:4d /max:500b
- tradepolicy /type:wood /min:1m /max:2m /allowselltomin
- tradepolicy /type:stone /min:1m /max:2m /allowselltomin
- tradepolicy /type:iron /min:2b /max:10b
- research ag:2,lu:2,mas:2,mi:2
- research ms:4,lu:4
- research ar:3,lu:5
- research met:5,ar:6,con:5
- research mt:3,in:3,ir:3,com:3
- research lo:4,ms:5
- research ar:7,ho:4,mt:5
- research in:4,ir:4,com:4
- research lo:5
- research ar:8,ho:5,mt:7
- research ho:6
- research ag:4,mas:4,mi:4
- research in:5,ir:5,com:5
- research ag:6,lu:6,mas:6,mi:6
- research lo:6,ms:6,met:6,con:6
- research in:6,ir:6,com:6
- research med:5,en:5,mac:5
- research mt:9,ms:9,met:9,con:9,en:9,med:9
- research ag:9,lu:9,mas:9,mi:9,lo:9
- echo ">>> Goals set. <<<"
- return
- //////////////////////////////////////////////////////////
- // Do different stuff for different Lords.
- ## if player.playerInfo.userName == "Lord1" goto Lord1Goals
- ## if player.playerInfo.userName == "Lord2" goto Lord2Goals
- // Do different stuff for different Cities.
- ## if city.name == "Base" goto BaseGoals
- ## if city.name == "Dump" goto DumpCityGoals
- ## if city.name == "War" goto WarCityGoals
- // Per city examples. (N.B. Lord1 never reaches this line.)
- ## if (player.playerInfo.userName == "Lord3" && city.timeSlot == 0) goto Lord3City1Goals
- ## if (player.playerInfo.userName == "Lord4" && city.timeSlot == 1) goto Lord4City2Goals
- ## if (player.playerInfo.userName == "Lord4" && city.name == "War") goto Lord4WarCityGoals
- // Do different stuff at different times.
- ## if m_context.serverHours <= 5 config npc:0
- ## if m_context.serverHours <= 5 echo "No farming"
- ## if m_context.serverHours >= 6 config npc:5
- //////////////////////////////////////////////////////////
Add Comment
Please, Sign In to add comment