echo "bash wbash4.txt 2018 04 21 This debian 9.3 bash script edits a wesnoth campain. It uses normal user."; COMMAND2="wesnoth"; PACKAGE2="wesnoth"; PATH2="usr/share/doc/wesnoth" PACKAGE3="wesnoth-1.12-httt" PATH3="usr/share/games/wesnoth/1.12/data/campaigns/Heir_To_The_Throne/scenarios"; # PATH3="usr/share/games/wesnoth/1.12/locale"; FILE2="24_Battle_for_Wesnoth"; USER2="super"; OUT2="Computer"; mkdir -p "${OUT2}"; echo " ${OUT2}/${PACKAGE2}.htm    Operating system used is debian 9.3. Package is ${PACKAGE2}. User is ${USER2}.

" >> ${OUT2}/${PACKAGE2}.htm USER2="normal"; PACKAGE2="wesnoth"; IN2="usr/share/games/wesnoth/1.12/data/campaigns/Heir_To_The_Throne/scenarios"; OUT2="Computer"; mkdir -p "${OUT2}"; echo " ${OUT2}/${PACKAGE2}.htm    Operating system used is debian 9.3. Package is ${PACKAGE2}.

" >> ${OUT2}/${PACKAGE2}.htm # Remove items that might conflict with new install. # synaptic package manager> mark for complete removal> wesnoth. # rm -r /home/stretch/.local/share/wesnoth # rm -r /home/stretch/.cache/wesnoth # rm -r /home/stretch/.config/wesnoth # rm -r /usr/share/games/wesnoth # install required packages. Root privledge required. # apt-get install --allow-unauthenticated -y wesnoth rpl; echo "define paths."; # preferences=/home/stretch/.config/wesnoth # Data_directory=/usr/share/games/wesnoth/1.12 # User_configuration_directory=/home/stretch/.config/wesnoth # User_data_directory=/home/stretch/.local/share/wesnoth/1.12 # Cache_directory=/home/stretch/.cache/wesnoth P2="/usr/share/games/wesnoth/1.12/data/campaigns/Heir_To_The_Throne/scenarios"; P3="/home/stretch/.local/share/wesnoth/1.12/data/campaigns/Heir_To_The_Throne/scenarios"; P4="/home/stretch/.local/share/wesnoth/1.12/data/campaigns/Heir_To_The_Throne/_main.cfg"; echo "${P2}, ${P3}, ${P4}"; # chmod -R a+rwx ${P3} ${P4} echo "copy origional files."; cp -r /usr/share/games/wesnoth /home/stretch/.local/share mkdir -p /home/stretch/.config/wesnoth echo "define the first scenario."; rpl -q "first_scenario=01_The_Elves_Besieged" "first_scenario=401_The_Elves_Besieged" ${P4} echo "make 3 copies of each scenario, and edit the copies."; FILE2="01_The_Elves_Besieged"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=01_The_Elves_Besieged" "id=401_The_Elves_Besieged" ${P3}/4${FILE2}.cfg; rpl -q "id=01_The_Elves_Besieged" "id=501_The_Elves_Besieged" ${P3}/5${FILE2}.cfg; rpl -q "id=01_The_Elves_Besieged" "id=601_The_Elves_Besieged" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=02_Blackwater_Port" "next_scenario=402_Blackwater_Port" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=02_Blackwater_Port" "next_scenario=502_Blackwater_Port" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=02_Blackwater_Port" "next_scenario=602_Blackwater_Port" ${P3}/6${FILE2}.cfg; FILE2="02_Blackwater_Port"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=02_Blackwater_Port" "id=402_Blackwater_Port" ${P3}/4${FILE2}.cfg; rpl -q "id=02_Blackwater_Port" "id=502_Blackwater_Port" ${P3}/5${FILE2}.cfg; rpl -q "id=02_Blackwater_Port" "id=602_Blackwater_Port" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=03_The_Isle_of_Alduin" "next_scenario=403_The_Isle_of_Alduin" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=03_The_Isle_of_Alduin" "next_scenario=503_The_Isle_of_Alduin" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=03_The_Isle_of_Alduin" "next_scenario=603_The_Isle_of_Alduin" ${P3}/6${FILE2}.cfg; FILE2="03_The_Isle_of_Alduin"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=03_The_Isle_of_Alduin" "id=403_The_Isle_of_Alduin" ${P3}/4${FILE2}.cfg; rpl -q "id=03_The_Isle_of_Alduin" "id=503_The_Isle_of_Alduin" ${P3}/5${FILE2}.cfg; rpl -q "id=03_The_Isle_of_Alduin" "id=603_The_Isle_of_Alduin" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=04_The_Bay_of_Pearls" "next_scenario=404_The_Bay_of_Pearls" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=04_The_Bay_of_Pearls" "next_scenario=504_The_Bay_of_Pearls" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=04_The_Bay_of_Pearls" "next_scenario=604_The_Bay_of_Pearls" ${P3}/6${FILE2}.cfg; FILE2="04_The_Bay_of_Pearls"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=04_The_Bay_of_Pearls" "id=404_The_Bay_of_Pearls" ${P3}/4${FILE2}.cfg; rpl -q "id=04_The_Bay_of_Pearls" "id=504_The_Bay_of_Pearls" ${P3}/5${FILE2}.cfg; rpl -q "id=04_The_Bay_of_Pearls" "id=604_The_Bay_of_Pearls" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=05a_Muff_Malal_Peninsula" "next_scenario=405a_Muff_Malal_Peninsula" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=05a_Muff_Malal_Peninsula" "next_scenario=505a_Muff_Malal_Peninsula" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=05a_Muff_Malal_Peninsula" "next_scenario=605a_Muff_Malal_Peninsula" ${P3}/6${FILE2}.cfg; FILE2="05a_Muff_Malal_Peninsula"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=05a_Muff_Malal_Peninsula" "id=405a_Muff_Malal_Peninsula" ${P3}/4${FILE2}.cfg; rpl -q "id=05a_Muff_Malal_Peninsula" "id=505a_Muff_Malal_Peninsula" ${P3}/5${FILE2}.cfg; rpl -q "id=05a_Muff_Malal_Peninsula" "id=605a_Muff_Malal_Peninsula" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=05b_Isle_of_the_Damned" "next_scenario=405b_Isle_of_the_Damned" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=05b_Isle_of_the_Damned" "next_scenario=505b_Isle_of_the_Damned" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=05b_Isle_of_the_Damned" "next_scenario=605b_Isle_of_the_Damned" ${P3}/6${FILE2}.cfg; FILE2="05b_Isle_of_the_Damned"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=05b_Isle_of_the_Damned" "id=405b_Isle_of_the_Damned" ${P3}/4${FILE2}.cfg; rpl -q "id=05b_Isle_of_the_Damned" "id=505b_Isle_of_the_Damned" ${P3}/5${FILE2}.cfg; rpl -q "id=05b_Isle_of_the_Damned" "id=605b_Isle_of_the_Damned" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=06_The_Siege_of_Elensefar" "next_scenario=406_The_Siege_of_Elensefar" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=06_The_Siege_of_Elensefar" "next_scenario=506_The_Siege_of_Elensefar" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=06_The_Siege_of_Elensefar" "next_scenario=606_The_Siege_of_Elensefar" ${P3}/6${FILE2}.cfg; FILE2="06_The_Siege_of_Elensefar"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=06_The_Siege_of_Elensefar" "id=406_The_Siege_of_Elensefar" ${P3}/4${FILE2}.cfg; rpl -q "id=06_The_Siege_of_Elensefar" "id=506_The_Siege_of_Elensefar" ${P3}/5${FILE2}.cfg; rpl -q "id=06_The_Siege_of_Elensefar" "id=606_The_Siege_of_Elensefar" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=07_Crossroads" "next_scenario=407_Crossroads" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=07_Crossroads" "next_scenario=507_Crossroads" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=07_Crossroads" "next_scenario=607_Crossroads" ${P3}/6${FILE2}.cfg; FILE2="07_Crossroads"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=07_Crossroads" "id=407_Crossroads" ${P3}/4${FILE2}.cfg; rpl -q "id=07_Crossroads" "id=507_Crossroads" ${P3}/5${FILE2}.cfg; rpl -q "id=07_Crossroads" "id=607_Crossroads" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=08_The_Princess_of_Wesnoth" "next_scenario=408_The_Princess_of_Wesnoth" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=08_The_Princess_of_Wesnoth" "next_scenario=508_The_Princess_of_Wesnoth" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=08_The_Princess_of_Wesnoth" "next_scenario=608_The_Princess_of_Wesnoth" ${P3}/6${FILE2}.cfg; FILE2="08_The_Princess_of_Wesnoth"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=08_The_Princess_of_Wesnoth" "id=408_The_Princess_of_Wesnoth" ${P3}/4${FILE2}.cfg; rpl -q "id=08_The_Princess_of_Wesnoth" "id=508_The_Princess_of_Wesnoth" ${P3}/5${FILE2}.cfg; rpl -q "id=08_The_Princess_of_Wesnoth" "id=608_The_Princess_of_Wesnoth" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=09_The_Valley_of_Death" "next_scenario=409_The_Valley_of_Death" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=09_The_Valley_of_Death" "next_scenario=509_The_Valley_of_Death" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=09_The_Valley_of_Death" "next_scenario=609_The_Valley_of_Death" ${P3}/6${FILE2}.cfg; FILE2="09_The_Valley_of_Death"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=09_The_Valley_of_Death" "id=409_The_Valley_of_Death" ${P3}/4${FILE2}.cfg; rpl -q "id=09_The_Valley_of_Death" "id=509_The_Valley_of_Death" ${P3}/5${FILE2}.cfg; rpl -q "id=09_The_Valley_of_Death" "id=609_The_Valley_of_Death" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=10_Gryphon_Mountain" "next_scenario=410_Gryphon_Mountain" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=10_Gryphon_Mountain" "next_scenario=510_Gryphon_Mountain" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=10_Gryphon_Mountain" "next_scenario=610_Gryphon_Mountain" ${P3}/6${FILE2}.cfg; FILE2="10_Gryphon_Mountain"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=10_Gryphon_Mountain" "id=410_Gryphon_Mountain" ${P3}/4${FILE2}.cfg; rpl -q "id=10_Gryphon_Mountain" "id=510_Gryphon_Mountain" ${P3}/5${FILE2}.cfg; rpl -q "id=10_Gryphon_Mountain" "id=610_Gryphon_Mountain" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=11_The_Ford_of_Abez" "next_scenario=411_The_Ford_of_Abez" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=11_The_Ford_of_Abez" "next_scenario=511_The_Ford_of_Abez" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=11_The_Ford_of_Abez" "next_scenario=611_The_Ford_of_Abez" ${P3}/6${FILE2}.cfg; FILE2="11_The_Ford_of_Abez"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=11_The_Ford_of_Abez" "id=411_The_Ford_of_Abez" ${P3}/4${FILE2}.cfg; rpl -q "id=11_The_Ford_of_Abez" "id=511_The_Ford_of_Abez" ${P3}/5${FILE2}.cfg; rpl -q "id=11_The_Ford_of_Abez" "id=611_The_Ford_of_Abez" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=12_Northern_Winter" "next_scenario=412_Northern_Winter" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=12_Northern_Winter" "next_scenario=512_Northern_Winter" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=12_Northern_Winter" "next_scenario=612_Northern_Winter" ${P3}/6${FILE2}.cfg; FILE2="12_Northern_Winter"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=12_Northern_Winter" "id=412_Northern_Winter" ${P3}/4${FILE2}.cfg; rpl -q "id=12_Northern_Winter" "id=512_Northern_Winter" ${P3}/5${FILE2}.cfg; rpl -q "id=12_Northern_Winter" "id=612_Northern_Winter" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=13_The_Dwarven_Doors" "next_scenario=413_The_Dwarven_Doors" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=13_The_Dwarven_Doors" "next_scenario=513_The_Dwarven_Doors" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=13_The_Dwarven_Doors" "next_scenario=613_The_Dwarven_Doors" ${P3}/6${FILE2}.cfg; FILE2="13_The_Dwarven_Doors"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=13_The_Dwarven_Doors" "id=413_The_Dwarven_Doors" ${P3}/4${FILE2}.cfg; rpl -q "id=13_The_Dwarven_Doors" "id=513_The_Dwarven_Doors" ${P3}/5${FILE2}.cfg; rpl -q "id=13_The_Dwarven_Doors" "id=613_The_Dwarven_Doors" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=14_Plunging_Into_the_Darkness" "next_scenario=414_Plunging_Into_the_Darkness" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=14_Plunging_Into_the_Darkness" "next_scenario=514_Plunging_Into_the_Darkness" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=14_Plunging_Into_the_Darkness" "next_scenario=614_Plunging_Into_the_Darkness" ${P3}/6${FILE2}.cfg; FILE2="14_Plunging_Into_the_Darkness"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=14_Plunging_Into_the_Darkness" "id=414_Plunging_Into_the_Darkness" ${P3}/4${FILE2}.cfg; rpl -q "id=14_Plunging_Into_the_Darkness" "id=514_Plunging_Into_the_Darkness" ${P3}/5${FILE2}.cfg; rpl -q "id=14_Plunging_Into_the_Darkness" "id=614_Plunging_Into_the_Darkness" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=15_The_Lost_General" "next_scenario=415_The_Lost_General" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=15_The_Lost_General" "next_scenario=515_The_Lost_General" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=15_The_Lost_General" "next_scenario=615_The_Lost_General" ${P3}/6${FILE2}.cfg; FILE2="15_The_Lost_General"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=15_The_Lost_General" "id=415_The_Lost_General" ${P3}/4${FILE2}.cfg; rpl -q "id=15_The_Lost_General" "id=515_The_Lost_General" ${P3}/5${FILE2}.cfg; rpl -q "id=15_The_Lost_General" "id=615_The_Lost_General" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=16_Hasty_Alliance" "next_scenario=416_Hasty_Alliance" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=16_Hasty_Alliance" "next_scenario=516_Hasty_Alliance" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=16_Hasty_Alliance" "next_scenario=616_Hasty_Alliance" ${P3}/6${FILE2}.cfg; FILE2="16_Hasty_Alliance"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=16_Hasty_Alliance" "id=416_Hasty_Alliance" ${P3}/4${FILE2}.cfg; rpl -q "id=16_Hasty_Alliance" "id=516_Hasty_Alliance" ${P3}/5${FILE2}.cfg; rpl -q "id=16_Hasty_Alliance" "id=616_Hasty_Alliance" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=17_Scepter_of_Fire" "next_scenario=417_Scepter_of_Fire" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=17_Scepter_of_Fire" "next_scenario=517_Scepter_of_Fire" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=17_Scepter_of_Fire" "next_scenario=617_Scepter_of_Fire" ${P3}/6${FILE2}.cfg; FILE2="17_Scepter_of_Fire"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=17_Scepter_of_Fire" "id=417_Scepter_of_Fire" ${P3}/4${FILE2}.cfg; rpl -q "id=17_Scepter_of_Fire" "id=517_Scepter_of_Fire" ${P3}/5${FILE2}.cfg; rpl -q "id=17_Scepter_of_Fire" "id=617_Scepter_of_Fire" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=18_A_Choice_Must_Be_Made" "next_scenario=418_A_Choice_Must_Be_Made" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=18_A_Choice_Must_Be_Made" "next_scenario=518_A_Choice_Must_Be_Made" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=18_A_Choice_Must_Be_Made" "next_scenario=618_A_Choice_Must_Be_Made" ${P3}/6${FILE2}.cfg; FILE2="18_A_Choice_Must_Be_Made"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=18_A_Choice_Must_Be_Made" "id=418_A_Choice_Must_Be_Made" ${P3}/4${FILE2}.cfg; rpl -q "id=18_A_Choice_Must_Be_Made" "id=518_A_Choice_Must_Be_Made" ${P3}/5${FILE2}.cfg; rpl -q "id=18_A_Choice_Must_Be_Made" "id=618_A_Choice_Must_Be_Made" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=19a_Snow_Plains" "next_scenario=419a_Snow_Plains" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=19a_Snow_Plains" "next_scenario=519a_Snow_Plains" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=19a_Snow_Plains" "next_scenario=619a_Snow_Plains" ${P3}/6${FILE2}.cfg; FILE2="19a_Snow_Plains"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=19a_Snow_Plains" "id=419a_Snow_Plains" ${P3}/4${FILE2}.cfg; rpl -q "id=19a_Snow_Plains" "id=519a_Snow_Plains" ${P3}/5${FILE2}.cfg; rpl -q "id=19a_Snow_Plains" "id=619a_Snow_Plains" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=19b_Swamp_Of_Dread" "next_scenario=419b_Swamp_Of_Dread" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=19b_Swamp_Of_Dread" "next_scenario=519b_Swamp_Of_Dread" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=19b_Swamp_Of_Dread" "next_scenario=619b_Swamp_Of_Dread" ${P3}/6${FILE2}.cfg; FILE2="19b_Swamp_Of_Dread"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=19b_Swamp_Of_Dread" "id=419b_Swamp_Of_Dread" ${P3}/4${FILE2}.cfg; rpl -q "id=19b_Swamp_Of_Dread" "id=519b_Swamp_Of_Dread" ${P3}/5${FILE2}.cfg; rpl -q "id=19b_Swamp_Of_Dread" "id=619b_Swamp_Of_Dread" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=19c_Cliffs_of_Thoria" "next_scenario=419c_Cliffs_of_Thoria" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=19c_Cliffs_of_Thoria" "next_scenario=519c_Cliffs_of_Thoria" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=19c_Cliffs_of_Thoria" "next_scenario=619c_Cliffs_of_Thoria" ${P3}/6${FILE2}.cfg; FILE2="19c_Cliffs_of_Thoria"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=19c_Cliffs_of_Thoria" "id=419c_Cliffs_of_Thoria" ${P3}/4${FILE2}.cfg; rpl -q "id=19c_Cliffs_of_Thoria" "id=519c_Cliffs_of_Thoria" ${P3}/5${FILE2}.cfg; rpl -q "id=19c_Cliffs_of_Thoria" "id=619c_Cliffs_of_Thoria" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=20a_North_Elves" "next_scenario=420a_North_Elves" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=20a_North_Elves" "next_scenario=520a_North_Elves" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=20a_North_Elves" "next_scenario=620a_North_Elves" ${P3}/6${FILE2}.cfg; FILE2="20a_North_Elves"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=20a_North_Elves" "id=420a_North_Elves" ${P3}/4${FILE2}.cfg; rpl -q "id=20a_North_Elves" "id=520a_North_Elves" ${P3}/5${FILE2}.cfg; rpl -q "id=20a_North_Elves" "id=620a_North_Elves" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=20b_Underground_Channels" "next_scenario=420b_Underground_Channels" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=20b_Underground_Channels" "next_scenario=520b_Underground_Channels" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=20b_Underground_Channels" "next_scenario=620b_Underground_Channels" ${P3}/6${FILE2}.cfg; FILE2="20b_Underground_Channels"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=20b_Underground_Channels" "id=420b_Underground_Channels" ${P3}/4${FILE2}.cfg; rpl -q "id=20b_Underground_Channels" "id=520b_Underground_Channels" ${P3}/5${FILE2}.cfg; rpl -q "id=20b_Underground_Channels" "id=620b_Underground_Channels" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=21_Elven_Council" "next_scenario=421_Elven_Council" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=21_Elven_Council" "next_scenario=521_Elven_Council" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=21_Elven_Council" "next_scenario=621_Elven_Council" ${P3}/6${FILE2}.cfg; FILE2="21_Elven_Council"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=21_Elven_Council" "id=421_Elven_Council" ${P3}/4${FILE2}.cfg; rpl -q "id=21_Elven_Council" "id=521_Elven_Council" ${P3}/5${FILE2}.cfg; rpl -q "id=21_Elven_Council" "id=621_Elven_Council" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=22_Return_to_Wesnoth" "next_scenario=422_Return_to_Wesnoth" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=22_Return_to_Wesnoth" "next_scenario=522_Return_to_Wesnoth" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=22_Return_to_Wesnoth" "next_scenario=622_Return_to_Wesnoth" ${P3}/6${FILE2}.cfg; FILE2="22_Return_to_Wesnoth"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=22_Return_to_Wesnoth" "id=422_Return_to_Wesnoth" ${P3}/4${FILE2}.cfg; rpl -q "id=22_Return_to_Wesnoth" "id=522_Return_to_Wesnoth" ${P3}/5${FILE2}.cfg; rpl -q "id=22_Return_to_Wesnoth" "id=622_Return_to_Wesnoth" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=23_Test_of_the_Clans" "next_scenario=423_Test_of_the_Clans" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=23_Test_of_the_Clans" "next_scenario=523_Test_of_the_Clans" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=23_Test_of_the_Clans" "next_scenario=623_Test_of_the_Clans" ${P3}/6${FILE2}.cfg; FILE2="23_Test_of_the_Clans"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=23_Test_of_the_Clans" "id=423_Test_of_the_Clans" ${P3}/4${FILE2}.cfg; rpl -q "id=23_Test_of_the_Clans" "id=523_Test_of_the_Clans" ${P3}/5${FILE2}.cfg; rpl -q "id=23_Test_of_the_Clans" "id=623_Test_of_the_Clans" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=24_Battle_for_Wesnoth" "next_scenario=424_Battle_for_Wesnoth" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=24_Battle_for_Wesnoth" "next_scenario=524_Battle_for_Wesnoth" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=24_Battle_for_Wesnoth" "next_scenario=624_Battle_for_Wesnoth" ${P3}/6${FILE2}.cfg; FILE2="24_Battle_for_Wesnoth"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=24_Battle_for_Wesnoth" "id=424_Battle_for_Wesnoth" ${P3}/4${FILE2}.cfg; rpl -q "id=24_Battle_for_Wesnoth" "id=524_Battle_for_Wesnoth" ${P3}/5${FILE2}.cfg; rpl -q "id=24_Battle_for_Wesnoth" "id=624_Battle_for_Wesnoth" ${P3}/6${FILE2}.cfg; rpl -q "next_scenario=25_HttT_Epilogue" "next_scenario=501_The_Elves_Besieged" ${P3}/4${FILE2}.cfg; rpl -q "next_scenario=25_HttT_Epilogue" "next_scenario=601_The_Elves_Besieged" ${P3}/5${FILE2}.cfg; rpl -q "next_scenario=25_HttT_Epilogue" "next_scenario=625_HttT_Epilogue" ${P3}/6${FILE2}.cfg; FILE2="25_HttT_Epilogue"; echo ${FILE2}; cp ${P2}/${FILE2}.cfg ${P3}/4${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/5${FILE2}.cfg; cp ${P2}/${FILE2}.cfg ${P3}/6${FILE2}.cfg; rpl -q "id=25_HttT_Epilogue" "id=425_HttT_Epilogue" ${P3}/4${FILE2}.cfg; rpl -q "id=25_HttT_Epilogue" "id=525_HttT_Epilogue" ${P3}/5${FILE2}.cfg; rpl -q "id=25_HttT_Epilogue" "id=625_HttT_Epilogue" ${P3}/6${FILE2}.cfg; # chmod -R a+rwx ${P3} ${P4} echo "to start the campaign, ${P2}."; # wesnoth --campaign=Heir_To_The_Throne --campaign-difficulty 1 --nosound --data-dir /home/stretch/.local/share/wesnoth/1.12 echo "to start wesnoth, ${P2}."; # wesnoth --nosound --data-dir /home/stretch/.local/share/wesnoth/1.12 echo "end wbash4."; # to remove the limit on turns: # rpl -q "{TURNS_RUN_OUT}" "" /usr/share/games/wesnoth/1.12/data/campaigns/# Heir_To_The_Throne/scenarios/*.cfg