Changing seasons
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
-
- Posts: 3
- Joined: April 23rd, 2014, 8:53 pm
Changing seasons
This code is vast I was wondering how I could get it to cycle automatically through each season several times without having to copy and paste in notepad and change the turn number. That way It would save up space.
I have no idea how to do macros either so step by step advice would be appreciated!
I have no idea how to do macros either so step by step advice would be appreciated!
Code: Select all
#-----Everything Below Changes Everything To Autumn-----
#-----(7 Items Changed in 1 Turn)
[event]
name=turn 2
#changes grass
[terrain]
[and]
terrain=Gd # here is the filter criterion
[/and]
terrain=Gs # and the new terrain
[/terrain]
[/event]
[event]
name=turn 2
#changes mixed forested hills
[terrain]
[and]
terrain=Hh^Fms # here is the filter criterion
[/and]
terrain=Hhd^Fmf # and the new terrain
[/terrain]
[/event]
[event]
name=turn 2
#changes mixed forest
[terrain]
[and]
terrain=Gs^Fms # here is the filter criterion
[/and]
terrain=Gs^Fmf # and the new terrain
[/terrain]
[/event]
[event]
#Changes deciduous forest
name=turn 2
[terrain]
[and]
terrain=Gs^Fds # here is the filter criterion
[/and]
terrain=Gs^Fdf # and the new terrain
[/terrain]
[/event]
[event]
name=turn 2
#Changes Cobbles
[terrain]
[and]
terrain=Rr # here is the filter criterion
[/and]
terrain=Rp # and the new terrain
[/terrain]
[/event]
[event]
name=turn 2
#Changes Mountains
[terrain]
[and]
terrain=Md # here is the filter criterion
[/and]
terrain=Mm # and the new terrain
[/terrain]
[/event]
[event]
#Changes Sand
name=turn 2
[terrain]
[and]
terrain=Dd # here is the filter criterion
[/and]
terrain=Ds # and the new terrain
[/terrain]
[/event]
#-----Everything Below Changes Everything To Winter
#-----(14 Items Changed in 1 Turns)
[event]
#Changes Human City
name=turn 3
[terrain]
[and]
terrain=^Vhc # here is the filter criterion
[/and]
terrain=^Vhca # and the new terrain
[/terrain]
[/event]
[event]
#Changes Cottage
name=turn 3
[terrain]
[and]
terrain=^Vh # here is the filter criterion
[/and]
terrain=^Vha # and the new terrain
[/terrain]
[/event]
[event]
#Changes Log Cabin
name=turn 3
[terrain]
[and]
terrain=^V1 # here is the filter criterion
[/and]
terrain=^V1a # and the new terrain
[/terrain]
[/event]
[event]
#Changes Elven Village
name=turn 3
[terrain]
[and]
terrain=^Ve # here is the filter criterion
[/and]
terrain=^Vea # and the new terrain
[/terrain]
[/event]
[event]
#Changes Hill stone village
name=turn 3
[terrain]
[and]
terrain=^Vhh # here is the filter criterion
[/and]
terrain=^Vhha # and the new terrain
[/terrain]
[/event]
[event]
#Changes Medium Deep Water
name=turn 3
[terrain]
[and]
terrain=Wo # here is the filter criterion
[/and]
terrain=Ai # and the new terrain
[/terrain]
[/event]
[event]
#Changes Fall Mixed Forest
name=turn 3
[terrain]
[and]
terrain=Gs^Fmf # here is the filter criterion
[/and]
terrain=Aa^Fma # and the new terrain
[/terrain]
[/event]
[event]
#Changes Semi-dry Grass
name=turn 3
[terrain]
[and]
terrain=Gs # here is the filter criterion
[/and]
terrain=Aa # and the new terrain
[/terrain]
[/event]
[event]
#Changes Fall deciduous forest
name=turn 3
[terrain]
[and]
terrain=Gs^Fdf # here is the filter criterion
[/and]
terrain=Aa^Fda # and the new terrain
[/terrain]
[/event]
[event]
#Changes Fall Mixed Forested Hills
name=turn 3
[terrain]
[and]
terrain=Hhd^Fmf # here is the filter criterion
[/and]
terrain=Ha^Fma # and the new terrain
[/terrain]
[/event]
[event]
#Changes Overgrown Cobbles
name=turn 3
[terrain]
[and]
terrain=Rp # here is the filter criterion
[/and]
terrain=Rrc # and the new terrain
[/terrain]
[/event]
[event]
#Changes Mountains
name=turn 3
[terrain]
[and]
terrain=Mm # here is the filter criterion
[/and]
terrain=Ms # and the new terrain
[/terrain]
[/event]
[event]
#Changes Human Castle
name=turn 3
[terrain]
[and]
terrain=Ch # here is the filter criterion
[/and]
terrain=Cha # and the new terrain
[/terrain]
[/event]
[event]
#Changes Human Castle Keep
name=turn 3
[terrain]
[and]
terrain=Kh # here is the filter criterion
[/and]
terrain=Kha # and the new terrain
[/terrain]
[/event]
#-----Everything Below Changes Everything To The Midpoint Of Winter and Spring
#-----(13 Items Changed in 1 Turns)
[event]
#Changes snowy human city
name=turn 4
[terrain]
[and]
terrain=^Vhca # here is the filter criterion
[/and]
terrain=^Vhc # and the new terrain
[/terrain]
[/event]
[event]
#Changes snowy cottage
name=turn 4
[terrain]
[and]
terrain=^Vha # here is the filter criterion
[/and]
terrain=^Vh # and the new terrain
[/terrain]
[/event]
[event]
#Changes Snowy Log Cabin
name=turn 4
[terrain]
[and]
terrain=^V1a # here is the filter criterion
[/and]
terrain=^V1 # and the new terrain
[/terrain]
[/event]
[event]
#Changes snowy elven village
name=turn 4
[terrain]
[and]
terrain=^Vea # here is the filter criterion
[/and]
terrain=^Ve # and the new terrain
[/terrain]
[/event]
[event]
#Changes Snowy hill stone village
name=turn 4
[terrain]
[and]
terrain=^Vhha # here is the filter criterion
[/and]
terrain=^Vhh # and the new terrain
[/terrain]
[/event]
[event]
#Changes Ice
name=turn 4
[terrain]
[and]
terrain=Ai # here is the filter criterion
[/and]
terrain=Wo # and the new terrain
[/terrain]
[/event]
[event]
#Changes Snowy mixed forest
name=turn 4
[terrain]
[and]
terrain=Aa^Fma # here is the filter criterion
[/and]
terrain=Gg^Fmw # and the new terrain
[/terrain]
[/event]
[event]
#Changes Snow
name=turn 4
[terrain]
[and]
terrain=Aa # here is the filter criterion
[/and]
terrain=Gg # and the new terrain
[/terrain]
[/event]
[event]
#Changes Snowy deciduous forest
name=turn 4
[terrain]
[and]
terrain=Aa^Fda # here is the filter criterion
[/and]
terrain=Gg^Fdw # and the new terrain
[/terrain]
[/event]
[event]
#Changes Snowy mixed forested hills
name=turn 4
[terrain]
[and]
terrain=Ha^Fma # here is the filter criterion
[/and]
terrain=Hhd^Fmw # and the new terrain
[/terrain]
[/event]
[event]
#Changes Snowy Mountains
name=turn 4
[terrain]
[and]
terrain=Ms # here is the filter criterion
[/and]
terrain=Mm # and the new terrain
[/terrain]
[/event]
[event]
#Changes Snowy Human Castle
name=turn 4
[terrain]
[and]
terrain=Cha # here is the filter criterion
[/and]
terrain=Ch # and the new terrain
[/terrain]
[/event]
[event]
#Changes Snowy Human Castle Keep
name=turn 4
[terrain]
[and]
terrain=Kha # here is the filter criterion
[/and]
terrain=Kh # and the new terrain
[/terrain]
[/event]
#-----Everything Below Changes Everything To Spring
#-----(3 Items Changed in 1 Turns)
[event]
#Changes Winter Mixed Forest
name=turn 5
[terrain]
[and]
terrain=Gg^Fmw # here is the filter criterion
[/and]
terrain=Gg^Fms # and the new terrain
[/terrain]
[/event]
[event]
#Changes Winter Deciduous Forest
name=turn 5
[terrain]
[and]
terrain=Gg^Fdw # here is the filter criterion
[/and]
terrain=Gg^Fds # and the new terrain
[/terrain]
[/event]
[event]
#Changes Winter mixed forested hills
name=turn 5
[terrain]
[and]
terrain=Hhd^Fmw # here is the filter criterion
[/and]
terrain=Hh^Fms # and the new terrain
[/terrain]
[/event]
#-----Everything Below Changes Everything To Summer
#-----(7 Items Changed in 1 Turns)
[event]
#Changes Beach sands
name=turn 6
[terrain]
[and]
terrain=Ds # here is the filter criterion
[/and]
terrain=Dd # and the new terrain
[/terrain]
[/event]
[event]
#Changes green grass
name=turn 6
[terrain]
[and]
terrain=Gg # here is the filter criterion
[/and]
terrain=Gd # and the new terrain
[/terrain]
[/event]
[event]
#Changes Clean Grey Cobbles
name=turn 6
[terrain]
[and]
terrain=Rrc # here is the filter criterion
[/and]
terrain=Rr # and the new terrain
[/terrain]
[/event]
[event]
#Changes Mountains
name=turn 6
[terrain]
[and]
terrain=Mm # here is the filter criterion
[/and]
terrain=Md # and the new terrain
[/terrain]
[/event]
[event]
#Changes Winter Mixed Forest
name=turn 6
[terrain]
[and]
terrain=Gg^Fms # here is the filter criterion
[/and]
terrain=Gs^Fms # and the new terrain
[/terrain]
[/event]
[event]
#Changes Winter Deciduous Forest
name=turn 6
[terrain]
[and]
terrain=Gg^Fds # here is the filter criterion
[/and]
terrain=Gs^Fds # and the new terrain
[/terrain]
[/event]
[event]
name=turn 6
#changes mixed forested hills
[terrain]
[and]
terrain=hh^Fms # here is the filter criterion
[/and]
terrain=Hh^Fms # and the new terrain
[/terrain]
[/event]
- James_The_Invisible
- Posts: 536
- Joined: October 28th, 2012, 1:58 pm
- Location: Somewhere in the Northlands, fighting dark forces
- Contact:
Re: Changing seasons
Well, if you know on which turns it should happen you can write just something like this:how I could get it to cycle automatically through each season several times
Code: Select all
[event]
name=turn x,turn y,turn z
first_time_only=no
# whatever you want to do
[/event]
My content: For Power series
Ports: Danse Macabre Story of the Wose
Guides: How to translate your UMC
Ports: Danse Macabre Story of the Wose
Guides: How to translate your UMC