Orginizind death macros
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.
Orginizind death macros
I am trying to set macros for the deaths of my heros. I have a macros file here
{@campaigns/Love_To_Death/utils/macros.cfg}
This is where i defined some macros. These ones
The macros are suppose to add the death event for both characters. I referenced the file from the campaign file and then tried in each scenario, but nothing, event don't raise.
What am I doing wrong. What is the standard way of saving code repetition for deaths of main characters?
Thank you
{@campaigns/Love_To_Death/utils/macros.cfg}
This is where i defined some macros. These ones
Code: Select all
#define ON_KAROS_DEATH
[event]
name=death
[filter]
description=Karos
[/filter]
[message]
speaker=Aleva
message= _ "My loyal servant, I can not continue without you. Rest in peace."
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
#enddef
#define ON_ALEVA_DEATH
[event]
name=death
[filter]
description=Aleva
[/filter]
[message]
speaker=Karos
message= _ "Nooooooo!! do not die, my dearest Aleva!!!!"
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
#enddef
What am I doing wrong. What is the standard way of saving code repetition for deaths of main characters?
Thank you
That's ridiculous, dragons have no windows...
Re: Orginizind death macros
Have a look at the WML for Heir to the Throne. That doesn't actually use macros for deaths. Instead, there is a line in every scenario (except the first) referencing a deaths file (file location in {curly brackets} like those). The deaths WML themselves can be found in the /utils/deaths.cfg file.
Re: Orginizind death macros
For whoever reads this thread, if you find yourself in a similar situation and what to know how to solve it, is simple.
The correct name of the death event is die.
So, the correct form is
Of course I must credit zookeeper for his help, pointing out what was actually wrong.
The correct name of the death event is die.
So, the correct form is
Code: Select all
[event]
name=die
[/event]
That's ridiculous, dragons have no windows...