Various questions and answers thread
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.
- Implementor37
- Posts: 121
- Joined: February 22nd, 2015, 12:41 am
- Location: The Internet
Re: Various questions and answers thread
Is it possible to use a SUF to find all units of a given trait? I want to write an ability which only affect opponents who are not undead, and are not fearless. Would this: work, or is there an easier way to access an opponent's traits?
Code: Select all
[filter_opponent]
[not]
race=undead
[/not]
[not]
[modifications]
[trait]
id=fearless
[/trait]
[/modifications]
[/not]
[/filter_opponent]
Author of End of the Legion, available now on the 1.12 and 1.13 servers!
Supporter of the addition of the Aragwaithi into mainline.
Supporter of the addition of the Aragwaithi into mainline.
Re: Various questions and answers thread
So anyone can help with scenario 27?
I've put up a save file for the scenario in question:
http://forums.wesnoth.org/viewtopic.php ... 80#p583080
I've put up a save file for the scenario in question:
http://forums.wesnoth.org/viewtopic.php ... 80#p583080
Light travels much faster than sound, that's why some people seem bright until you hear them speak.
>>> MY LITTLE LAB! <<<
>>> MY LITTLE LAB! <<<
- Implementor37
- Posts: 121
- Joined: February 22nd, 2015, 12:41 am
- Location: The Internet
Re: Various questions and answers thread
Does this mean that this code will no longer work:1.13.0 Release Announcement wrote:Reworked fearless/healthy traits WML
Instead of checking whether the [trait] id equals fearless or healthy, these are now [effect] options set by the trait. This means that UMC add-ons that use their own fearless/healthy traits must add the required [effect] tags to them.
Code: Select all
#define WEAPON_SPECIAL_DEATHLY_TERROR
[berserk]
[filter_opponent]
[not]
race=undead
[/not]
[not]
[modifications]
[trait]
id=fearless
[/trait]
[/modifications]
[/not]
[/filter_opponent]
id=deathly_terror
name = _ "deathly terror"
name_inactive = _ "deathly terror"
description=_"When attacking, the deathly terror incited by this attack prevents the defender from breaking off combat for 50 rounds. Undead and fearless units are immune."
description_inactive=_"When attacking, the deathly terror incited by this attack prevents the defender from breaking off combat for 50 rounds. Undead and fearless units are immune."
value=50
cumulative=yes
active_on=offense
[/berserk]
[/specials]
defense_weight=0
[+specials]
#enddef
Code: Select all
[trait]
id=fearless
[/trait]
Code: Select all
[effect]
id=fearless
[/effect]
Author of End of the Legion, available now on the 1.12 and 1.13 servers!
Supporter of the addition of the Aragwaithi into mainline.
Supporter of the addition of the Aragwaithi into mainline.
Re: Various questions and answers thread
the mainline fearless trait has still the id fearless so if the filter worked in 1.12 it will also work in 1.13.
On of the differences is that it is now for example possible to have fearless [effect]s in [advancement]s and [object]s
On of the differences is that it is now for example possible to have fearless [effect]s in [advancement]s and [object]s
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
Recall does not work
This recall tag just does nothing:
The macro exists, the location is passable for the unit. I also tried this one, with no effect:
Code: Select all
[recall]
{CHARACTER_STATS_GRIFF}
x=5
y=29
[/recall]
Code: Select all
[recall]
id=Griff
x=5
y=29
[/recall]
Ignorance is bliss, but knowledge is power.
- beetlenaut
- Developer
- Posts: 2827
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: Various questions and answers thread
This tag looks fine. You probably have it in the wrong place, or you have it in an event that is not running. If you post the code of the whole scenario, we should be able to tell you specifically what is wrong.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: Various questions and answers thread
Here it is (it isn't complete yet):
The tag also doesn't work if I place it at the beginning of the first event like an [unit] tag.
Code: Select all
[scenario]
id=06_Escape
name=_"The chance they all hoped for..."
map_data="{~add-ons/Revenge/maps/Elven_territory.map}"
snapshot=no
turns=30
{STORY}
victory_when_enemies_defeated=no
##|| Flow Of Time ||##
{MORNING}
{AFTERNOON}
{DUSK}
{FIRST_WATCH}
{SECOND_WATCH}
{DAWN}
[side]
##:: Side Info
side=1
controller=human
team_name=1
user_team_name= _ "Good Guys"
##:: Leader Info
{CHARACTER_STATS_MAERA}
[recall]
{CHARACTER_STATS_GRIFF}
x=5
y=29
[/recall]
##:: Recruit List
recruit=
shroud=no
fog=no
##:: Gold and Income
{GOLD 0 0 0}
{INCOME 0 0 0}
[/side]
##|| Enemy
[side]
##:: Side Info
side=2
controller=ai
team_name=2
user_team_name= _ "Outlaws"
##:: Leader Info
type=Assassin
id=Outlaw_Leader_6
name=_"The Warden"
gender=male
canrecruit=yes
unrenamable=true
##:: Recruit List
recruit=Thug,Ruffian,Footpad,Thief
##:: Gold and Income
{GOLD 200 225 250}
{INCOME 2 3 4}
[/side]
[side]
##:: Side Info
side=3
controller=human
team_name=1
user_team_name= _ "Elves"
##:: Leader Info
id=ElfHero
type=Elvish Ranger
unrenameable=true
canrecruit=yes
gender=female
name=_"Protector of the Forest"
##:: Recruit List
recruit=Elvish Archer,Elvish Scout,Elvish Fighter,Elvish Shaman
##:: Gold and Income
{GOLD 215 175 155}
{INCOME 4 2 1}
[/side]
[side]
##:: Side Info
side=4
controller=ai
team_name=1
user_team_name= _ "Elves"
##:: Leader Info
type=Elvish Avenger
id=ElfLord
name=_"Prime Protector"
canrecruit=yes
gender=male
##:: Recruit List
recruit=Elvish Archer,Elvish Scout,Elvish Fighter,Elvish Shaman,Elvish Ranger
##:: Gold and Income
{GOLD 325 300 275}
{INCOME 3 2 1}
[/side]
[side]
##:: Side Info
side=5
controller=ai
team_name=1
user_team_name= _ "Elves"
##:: Leader Info
type=Elder Wose
id=WoseChieftain
name=_"Protector of the Forest"
canrecruit=yes
gender=male
##:: Recruit List
recruit=Wose,Sapling
##:: Gold and Income
{GOLD 325 300 275}
{INCOME 3 2 1}
[/side]
[side]
##:: Side Info
side=6
controller=ai
team_name=3
user_team_name= _ "Invaders"
##:: Leader Info
type=General
id=KingdomLeader1
name=_"General Canell"
canrecruit=yes
gender=male
##:: Recruit List
recruit=Spearman,Bowman,Horseman,Peasant,Heavy Infantryman
##:: Gold and Income
{GOLD 275 300 325}
{INCOME 1 2 3}
[/side]
[side]
##:: Side Info
side=7
controller=ai
team_name=4
user_team_name= _ "Monsters"
##:: Leader Info
no_leader=yes
##:: Recruit List
recruit=
##:: Gold and Income
{GOLD 0 0 0}
{INCOME 0 0 0}
[/side]
##|| Events ||##
##|| Starting Stuff
[event]
name=start
[unit]
type=Footpad
side=2
x=12
y=24
upkeep=free
id=scout1
name=_"Outlaw Scout"
[/unit]
[unit]
type=Highwayman
side=2
x=3
y=28
[/unit]
[unit]
type=Highwayman
side=2
x=1
y=30
[/unit]
[unit]
type=Highwayman
side=2
x=3
y=31
[/unit]
[unit]
type=Highwayman
side=2
x=2
y=29
id=NastyGuy
{IS_HERO}
name=_"Outlaw Guard"
[/unit]
[message]
speaker=Outlaw_Leader_6
message=_"We should use the time the scouts need for their mission for rest. But always be aware of the unknown horrors which may lurk in the forest."
[/message]
[message]
speaker=scout1
message=_"I couldn't see any dangerou..."
[/message]
[harm_unit]
[filter]
id=scout1
[/filter]
amount=40
kill=yes
animate=yes
experience=no
[/harm_unit]
[message]
speaker=Outlaw_Leader_6
message=_"What?! He's dead! There's an arrow in his back. Looks elven... GET UP! WE'RE ATTACKED BY ELVES!"
[/message]
[message]
speaker=ElfLord
message=_"Stay away from our forest, tree-killing humans!"
[/message]
[message]
speaker=ElfHero
message=_"Trespassers get killed. You are trespassers."
[/message]
[message]
speaker=Outlaw_Leader_6
message=_"Forget it! We have some very powerful fighters!"
[/message]
[message]
speaker=WoseChieftain
message=_"The best fighter is useless when the forest itself is attacking you!"
[/message]
[message]
speaker=ElfHero
message=_"Wait a moment... who's that over there?"
[/message]
[scroll_to]
x=42
y=2
[/scroll_to]
[delay]
time=400
[/delay]
[message]
speaker=ElfLord
message=_"Even more humans... do you think they are allied?"
[/message]
[message]
speaker=KingdomLeader1
message=_"We are here to clean up this forest from everything that lurks within..."
[/message]
[message]
speaker=ElfHero
message=_"Oh, I think we are doing pretty well with that task."
[/message]
[message]
speaker=KingdomLeader1
message=_"...including elves. The forest shall be save to pass for defenseless travelers."
[/message]
[message]
speaker=ElfLord
message=_"It is our realm, with our laws. You have to respect that."
[/message]
[message]
speaker=KingdomLeader1
message=_"I understand you. But my king's commands are more important to me. Master Donacc?"
[/message]
[unit]
type=White Mage
side=6
name=_"Master Donacc"
gender=male
x=44
y=7
id=Donacc
{IS_HERO}
[/unit]
[message]
speaker=Donacc
message=_"I'm here."
[/message]
[message]
speaker=KingdomLeader1
message=_"Cast your spell to reveal the creatures hiding in the forest!"
[/message]
[message]
speaker=Donacc
message=_"I've just started."
[/message]
{QUAKE (magic-holy-1.ogg)}
[unit]
type=Cuttle Fish
x=13
y=18
side=7
[/unit]
[unit]
type=Cuttle Fish
x=26
y=8
side=7
[/unit]
[unit]
type=Troll
x=19
y=16
side=7
[/unit]
[unit]
type=Troll
x=28
y=33
side=7
[/unit]
[unit]
type=Giant Spider
x=19
y=22
side=7
[/unit]
[unit]
type=Blood Bat
x=30
y=13
side=7
[/unit]
[unit]
type=Vampire Bat
x=26
y=11
side=7
[/unit]
[unit]
type=Tentacle of the Deep
x=7
y=19
side=7
[/unit]
[unit]
type=Tentacle of the Deep
x=8
y=18
side=7
[/unit]
[unit]
type=Giant Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Giant Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Giant Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Giant Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Giant Scorpion
x=26
y=23
side=7
[/unit]
[unit]
type=Giant Scorpion
x=26
y=23
side=7
[/unit]
[unit]
type=Giant Scorpion
x=26
y=23
side=7
[/unit]
[unit]
type=Giant Scorpion
x=26
y=23
side=7
[/unit]
[unit]
type=Giant Rat
x=17
y=27
side=7
[/unit]
[unit]
type=Giant Rat
x=19
y=26
side=7
[/unit]
[unit]
type=Giant Rat
x=18
y=26
side=7
[/unit]
[unit]
type=Giant Rat
x=16
y=28
side=7
[/unit]
[unit]
type=Water Serpent
x=22
y=2
side=7
[/unit]
[unit]
type=Water Serpent
x=13
y=2
side=7
[/unit]
[unit]
type=Water Serpent
x=27
y=1
side=7
[/unit]
[message]
speaker=ElfLord
message=_"Fool, what have you done?! They're too much to defeat them all at once!"
[/message]
[unit]
type=Elvish Ranger
side=3
x=11
y=24
{IS_LOYAL}
[/unit]
[unit]
type=Elvish Ranger
side=3
x=12
y=26
{IS_LOYAL}
[/unit]
[unit]
type=Elvish Ranger
side=4
x=7
y=26
{IS_LOYAL}
[/unit]
[unit]
type=Elvish Ranger
side=4
x=9
y=29
{IS_LOYAL}
[/unit]
[message]
speaker=Maera2
message=_"That's our chance to escape!"
[/message]
[move_unit]
id=Maera2
to_x=6
to_y=26
[/move_unit]
[move_unit]
id=Griff
to_x=5
to_y=28
[/move_unit]
[move_unit]
id=NastyGuy
to_x=4
to_y=28
[/move_unit]
[message]
speaker=NastyGuy
message=_"You stay here!"
[/message]
[modify_unit]
[filter]
id=Griff
[/filter]
[status]
petrified=yes
[/status]
[/modify_unit]
[unit_overlay]
id=Griff
image=items/cage.png
[/unit_overlay]
[message]
speaker=Maera2
message=_"I'll come back an rescue you! I promise!"
[/message]
[recall]
side=1
x=6
y=28
[/recall]
[recall]
side=1
x=6
y=28
[/recall]
[recall]
side=1
x=6
y=28
[/recall]
[objectives]
side=1
summary=_"Objectives:"
[objective]
description= _ "Reach the upper edge of the map with Maera"
condition=win
[/objective]
[objective]
description= _ "Death of Maera"
condition=lose
[/objective]
[gold_carryover]
bonus=no
carryover_percentage=100
[/gold_carryover]
[/objectives]
[objectives]
side=3
summary=_"Objectives:"
[objective]
description= _ "Kill all the trespassers"
condition=win
[/objective]
[objective]
description= _ "Death of every single elf"
condition=lose
[/objective]
[note]
description= _ "Don't forget the two Rangers under your command. They're standing near the path."
[/note]
[/objectives]
[/event]
[event]
name=die
[filter]
id=Maera2
[/filter]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=time over
[message]
speaker=Maera2
message=_"I...just...can't run any...more. It's...over."
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[/scenario]
Ignorance is bliss, but knowledge is power.
Re: Various questions and answers thread
Like already mentioned, you have to put the
Then it should work as intended.
[recall]
tag inside an [event]
, like prestart
, or start
.Then it should work as intended.
DirectActionsWML#Direct_actionsWiki wrote:Direct actions
Direct actions are actions that have a direct effect on gameplay. They can be used inside of events.
The following tags are actions:
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR
Re: Various questions and answers thread
As I said, the tag also doesn't work if I place it in the first event like an [unit] tag. (as first action tag after the name (name=start))
Ignorance is bliss, but knowledge is power.
Re: Various questions and answers thread
If it doesn't work, do you still have that unit in your recall list? Are you able to manually recall it?
Re: Various questions and answers thread
When I use an action to recall all units this one is recalled, too.
Ignorance is bliss, but knowledge is power.
Re: Various questions and answers thread
How does your code look like, when you put the
Please post your code again, just with the
[recall]
tag in the right place?Please post your code again, just with the
[recall]
tag inside an [event]
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR
Re: Various questions and answers thread
maybe use inspect command in debug mode to check if the unit Griff really fits your filter?
Last edited by Xara on June 14th, 2015, 10:50 pm, edited 1 time in total.
Re: Various questions and answers thread
Removing the "side" argument makes no difference.
Code: Select all
[scenario]
id=06_Escape
name=_"The chance they all hoped for..."
map_data="{~add-ons/Maeras_Journey/maps/Elven_territory.map}"
snapshot=no
turns=20
{STORY}
victory_when_enemies_defeated=no
##|| Flow Of Time ||##
{MORNING}
{AFTERNOON}
{DUSK}
{FIRST_WATCH}
{SECOND_WATCH}
{DAWN}
##|| Determine Side Conditions ||##
##|| Player Side
[side]
##:: Side Info
side=1
controller=human
team_name=1
user_team_name= _ "Good Guys"
##:: Leader Info
{CHARACTER_STATS_MAERA}
##:: Recruit List
recruit=
shroud=no
fog=no
##:: Gold and Income
{GOLD 0 0 0}
{INCOME 0 0 0}
[/side]
##|| Enemy
[side]
##:: Side Info
side=2
controller=ai
team_name=2
user_team_name= _ "Outlaws"
##:: Leader Info
type=Assassin
id=Outlaw_Leader_6
name=_"The Warden"
gender=male
canrecruit=yes
unrenamable=true
##:: Recruit List
recruit=Thug,Ruffian,Footpad,Thief,Poacher
##:: Gold and Income
{GOLD 200 225 250}
{INCOME 2 3 4}
[/side]
[side]
##:: Side Info
side=3
controller=human
team_name=1
user_team_name= _ "Elves"
##:: Leader Info
id=ElfHero
type=Elvish Ranger
unrenameable=true
canrecruit=yes
gender=female
name=_"Protector of the Forest"
##:: Recruit List
recruit=Elvish Archer,Elvish Scout,Elvish Fighter,Elvish Shaman
##:: Gold and Income
{GOLD 215 175 155}
{INCOME 4 2 1}
[/side]
[side]
##:: Side Info
side=4
controller=ai
team_name=1
user_team_name= _ "Elves"
##:: Leader Info
type=Elvish Avenger
id=ElfLord
name=_"Prime Protector"
canrecruit=yes
gender=male
##:: Recruit List
recruit=Elvish Archer,Elvish Scout,Elvish Fighter,Elvish Shaman,Elvish Ranger
##:: Gold and Income
{GOLD 325 300 275}
{INCOME 3 2 1}
[/side]
[side]
##:: Side Info
side=5
controller=ai
team_name=1
user_team_name= _ "Elves"
##:: Leader Info
type=Elder Wose
id=WoseChieftain
name=_"Protector of the Forest"
canrecruit=yes
gender=male
##:: Recruit List
recruit=Wose,Sapling
##:: Gold and Income
{GOLD 325 300 275}
{INCOME 3 2 1}
[/side]
[side]
##:: Side Info
side=6
controller=ai
team_name=3
user_team_name= _ "Invaders"
##:: Leader Info
type=General
id=KingdomLeader1
name=_"General Canell"
canrecruit=yes
gender=male
##:: Recruit List
recruit=Spearman,Bowman,Horseman,Peasant,Heavy Infantryman
##:: Gold and Income
{GOLD 275 300 325}
{INCOME 1 2 3}
[/side]
[side]
##:: Side Info
side=7
controller=ai
team_name=4
user_team_name= _ "Monsters"
##:: Leader Info
no_leader=yes
##:: Recruit List
recruit=
##:: Gold and Income
{GOLD 0 0 0}
{INCOME 0 0 0}
[/side]
##|| Events ||##
##|| Starting Stuff
[event]
name=start
[recall]
{CHARACTER_STATS_GRIFF}
side=1
x=5
y=29
[/recall]
[unit]
type=Footpad
side=2
x=12
y=24
upkeep=free
id=scout1
name=_"Outlaw Scout"
[/unit]
[unit]
type=Highwayman
side=2
x=3
y=28
[/unit]
[unit]
type=Highwayman
side=2
x=1
y=30
[/unit]
[unit]
type=Highwayman
side=2
x=3
y=31
[/unit]
[unit]
type=Highwayman
side=2
x=2
y=29
id=NastyGuy
{IS_HERO}
name=_"Outlaw Guard"
[/unit]
[message]
speaker=Outlaw_Leader_6
message=_"We should use the time the scouts need for their mission for rest. But always be aware of the unknown horrors which may lurk in the forest."
[/message]
[message]
speaker=scout1
message=_"I couldn't see any dangerou..."
[/message]
[harm_unit]
[filter]
id=scout1
[/filter]
amount=40
kill=yes
animate=yes
experience=no
[/harm_unit]
[message]
speaker=Outlaw_Leader_6
message=_"What?! He's dead! There's an arrow in his back. Looks elven... GET UP! WE'RE ATTACKED BY ELVES!"
[/message]
[message]
speaker=ElfLord
message=_"Stay away from our forest, tree-killing humans!"
[/message]
[message]
speaker=ElfHero
message=_"Trespassers get killed. You are trespassers."
[/message]
[message]
speaker=Outlaw_Leader_6
message=_"Forget it! We have some very powerful fighters!"
[/message]
[message]
speaker=WoseChieftain
message=_"The best fighter is useless when the forest itself is attacking you!"
[/message]
[message]
speaker=ElfHero
message=_"Wait a moment... who's that over there?"
[/message]
[scroll_to]
x=42
y=2
[/scroll_to]
[delay]
time=400
[/delay]
[message]
speaker=ElfLord
message=_"Even more humans... do you think they are allied?"
[/message]
[message]
speaker=KingdomLeader1
message=_"We are here to clean up this forest from everything that lurks within..."
[/message]
[message]
speaker=ElfHero
message=_"Oh, I think we are doing pretty well with that task."
[/message]
[message]
speaker=KingdomLeader1
message=_"...including elves. The forest shall be save to pass for defenseless travelers."
[/message]
[message]
speaker=ElfLord
message=_"It is our realm, with our laws. You have to respect that."
[/message]
[message]
speaker=KingdomLeader1
message=_"I understand you. But my king's commands are more important to me. Master Donacc?"
[/message]
[unit]
type=White Mage
side=6
name=_"Master Donacc"
gender=male
x=44
y=7
id=Donacc
{IS_HERO}
[/unit]
[message]
speaker=Donacc
message=_"I'm here."
[/message]
[message]
speaker=KingdomLeader1
message=_"Cast your spell to reveal the creatures hiding in the forest!"
[/message]
[message]
speaker=Donacc
message=_"I've just started."
[/message]
{QUAKE (magic-holy-1.ogg)}
[unit]
type=Cuttle Fish
x=13
y=18
side=7
[/unit]
[unit]
type=Cuttle Fish
x=26
y=8
side=7
[/unit]
[unit]
type=Troll
x=19
y=16
side=7
[/unit]
[unit]
type=Troll
x=28
y=33
side=7
[/unit]
[unit]
type=Giant Spider
x=19
y=22
side=7
[/unit]
[unit]
type=Blood Bat
x=30
y=13
side=7
[/unit]
[unit]
type=Vampire Bat
x=26
y=11
side=7
[/unit]
[unit]
type=Tentacle of the Deep
x=7
y=19
side=7
[/unit]
[unit]
type=Tentacle of the Deep
x=8
y=18
side=7
[/unit]
[unit]
type=Giant Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Giant Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Giant Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Giant Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Mudcrawler
x=14
y=21
side=7
[/unit]
[unit]
type=Giant Scorpion
x=26
y=23
side=7
[/unit]
[unit]
type=Giant Scorpion
x=26
y=23
side=7
[/unit]
[unit]
type=Giant Scorpion
x=26
y=23
side=7
[/unit]
[unit]
type=Giant Scorpion
x=26
y=23
side=7
[/unit]
[unit]
type=Giant Rat
x=17
y=27
side=7
[/unit]
[unit]
type=Giant Rat
x=19
y=26
side=7
[/unit]
[unit]
type=Giant Rat
x=18
y=26
side=7
[/unit]
[unit]
type=Giant Rat
x=16
y=28
side=7
[/unit]
[unit]
type=Water Serpent
x=22
y=2
side=7
[/unit]
[unit]
type=Water Serpent
x=13
y=2
side=7
[/unit]
[unit]
type=Water Serpent
x=27
y=1
side=7
[/unit]
[message]
speaker=ElfLord
message=_"Fool, what have you done?! They're too much to defeat them all at once!"
[/message]
[unit]
type=Elvish Ranger
side=3
x=11
y=24
{IS_LOYAL}
[/unit]
[unit]
type=Elvish Ranger
side=3
x=12
y=26
{IS_LOYAL}
[/unit]
[unit]
type=Elvish Ranger
side=4
x=7
y=26
{IS_LOYAL}
[/unit]
[unit]
type=Elvish Ranger
side=4
x=9
y=29
{IS_LOYAL}
[/unit]
[message]
speaker=Maera2
message=_"That's our chance to escape!"
[/message]
[move_unit]
id=Maera2
to_x=6
to_y=26
[/move_unit]
[move_unit]
id=Griff
to_x=5
to_y=28
[/move_unit]
[move_unit]
id=NastyGuy
to_x=4
to_y=28
[/move_unit]
[message]
speaker=NastyGuy
message=_"You stay here!"
[/message]
[modify_unit]
[filter]
id=Griff
[/filter]
[status]
petrified=yes
[/status]
[/modify_unit]
[unit_overlay]
id=Griff
image=items/cage.png
[/unit_overlay]
[message]
speaker=Maera2
message=_"I'll come back an rescue you! I promise!"
[/message]
[recall]
side=1
x=6
y=28
[/recall]
[recall]
side=1
x=6
y=28
[/recall]
[recall]
side=1
x=6
y=28
[/recall]
[objectives]
side=1
summary=_"Objectives:"
[objective]
description= _ "Reach the upper edge of the map with Maera"
condition=win
[/objective]
[objective]
description= _ "Death of Maera"
condition=lose
[/objective]
[gold_carryover]
bonus=no
carryover_percentage=100
[/gold_carryover]
[/objectives]
[objectives]
side=3
summary=_"Objectives:"
[objective]
description= _ "Kill all the trespassers"
condition=win
[/objective]
[objective]
description= _ "Death of all your elves"
condition=lose
[/objective]
[note]
description= _ "Don't forget the two Rangers under your command. They're standing near the path."
[/note]
[/objectives]
[/event]
[event]
name=die
[filter]
id=Maera2
[/filter]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=die
[filter]
id=Donacc
[/filter]
[message]
speaker=KingdomLeader1
message=_"Looks like the dangers of the forest can't be defeated without defeating the forest. Burn it down!"
[/message]
[message]
speaker=ElfLord
message=_"Silly humans..."
[/message]
[message]
speaker=narrator
image=attacks/torch.png
message=_"From now, every forest hex a kingdom's unit stays on will be transformed into flat."
[/message]
[event]
name=moveto
first_time_only=no
[filter]
side=6
[filter_location]
terrain=Gs^Fds
[/filter_location]
[/filter]
[terrain]
x=$x1
y=$y1
terrain=Rb
[/terrain]
[/event]
[event]
name=moveto
first_time_only=no
[filter]
side=6
[filter_location]
terrain=Gg^Fet
[/filter_location]
[/filter]
[terrain]
x=$x1
y=$y1
terrain=Gd^Fetd
[/terrain]
[/event]
[/event]
[event]
name=last breath
[filter]
id=WoseChieftain
[/filter]
[message]
speaker=WoseChieftain
message=_"You won't have killed me without paying for it! The rest of my energy will make the forest even more powerful!"
[/message]
{QUAKE (wose-attack.ogg)}
[terrain]
x=10,11,9,9,10,10,10,1,3,2,3,40,34,35,36,37,36,37,40,40,41,42,43,42,28,29,30,31,32,30
y=27,27,27,25,24,25,26,29,31,28,30,5,13,12,13,12,13,14,13,12,13,12,12,10,18,18,17,17,16,14
terrain=Gs^Fds
[/terrain]
[terrain]
x=32,33
y=14,14
terrain=Qxe
[/terrain]
[kill]
x=32
y=14
animate=yes
fire_event=yes
[/kill]
[kill]
x=33
y=14
animate=yes
fire_event=yes
[/kill]
[/event]
[event]
name=time over
[message]
speaker=Maera2
message=_"I...just...can't run any...more. It's...over."
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=moveto
[filter]
id=Maera
x=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44
y=1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
[/filter]
[message]
speaker=narrator
image=attacks/torch.png
message=_"Tiredly, but alive Maera got out of sight of any of the conflict parties. She never found out who won the battle."
[/message]
[endlevel]
result=victory
carryover_percentage=0
bonus=no
next_scenario=null
[/endlevel]
[/event]
[event]
name=side 3 turn
first_time_only=no
[if]
[have_unit]
side=3
[/have_unit]
[then]
[/then]
[else]
[message]
speaker=ElfLord
message=_"Too few of us are left to defeat all these enemies! We are lost!"
[/message]
[endlevel]
result=defeat
[/endlevel]
[/else]
[/if]
[/event]
[/scenario]
Ignorance is bliss, but knowledge is power.
Re: Various questions and answers thread
Why do you use a MACRO inside the
Use just
Are you sure Griff is on your recall list?
[recall]
tag?Use just
id=Griff
Are you sure Griff is on your recall list?
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR