EDIT: This is my thread for wml questions. The actual question is most likely on the last page of this thread.

I tried to modify the regenerates ability to produce an ability that works a bit like photosynthesis.This means, that it should work like the normal regenerates ability at day, only heal 4 HP at day and do nothing at night.But sadly it doesn't work. Does anybody of you know where the error is?Please excuse me if i'm overlooking some obvious error, that's my first try at a custom ability.here's the code:

i suppose you cannot have the "value" and "poison" key in the filter tag, try using 2 [regenerate] tags with different values and fillters.

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.

you still have the "value" and "poison" inside the filter tag....plus regenerate tags always have to be inside [abilities] tags

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.

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.

OK, so now we need to fill in [filter] with a StandardUnitFilter. If you look at the documentation for a SUF, you might notice that "value=" is not listed, nor is "poison=". So putting those keys in a SUF does absolutely nothing, just like you observed not happening. What we can fill a SUF with includes "[filter_location]":

Edit: OK, I see. The "liminal" support within SLFs was lost during the "great reversion" of 2011. Not sure if that's a big deal, since it never was more than an alias for "neutral" in this context anyway. I've updated the wiki.

hmmmm, this is weird. the unit now regenerates 8 hitpoints during day and twilight, and regenerates 4 hitpoints at night? about the liminal: sry, i didn't know this. My mistake.Edit: Ah, i know why, it's because i tested this on a unit with illuminates. Thanks to everybody who helped me.

When testing my own campaign, the game tries to load it, but gets stuck, and then crashes without a bug message.I suppose it has something to do with this scenario, because it was the last i was working on. I tried a bit, but it has nothing to do with the custom schedule i'm using.I just can't see what's wrong with it.

[story] [part] story= _ "The elves were happy do have drawn back the attackers. But the victory wasn't cheap, and many good elves died that day. " background=story/landscape-battlefield.jpg [/part] [part] story=_"But the worse was yet to come. When the night fell upon the outpost... " background=story/landscape-battlefield-night.jpg [/part] [part] story=_"...lead by the smell of fresh corpses and blood, a new threat arose. " background=story/Darkmage.png [/part] [/story] {BIGMAP_RESCUE}

[message] speaker=narrator message= _ "WOOOSH" icon="halo/teleport-1.png" [/message] [message] speaker=Naia message= _ "Whoops, seems like i missed his camp." [/message] [message] speaker=Fiannon message= _ "Hey, where are you coming from?" [/message] [message] speaker=Naia message= _ "We'll i tried to teleport us directly into Liraks camp to confront him directly, but it seems like i still haven't fully understand the teleportationspell. We'll have to fight through their units to kill them." [/message] [message] speaker=Fiannon message= _ "You know him?" [/message] [message] speaker=Naia message= _ "Yes, he was one of the best students of our academy. Until he turned to the dark arts. I was send to purge this dark stain of our academy." [/message] [message] speaker=mage message= _ "What a shame, he could have become a great mage." [/message] [message] speaker=Naia message= _ "Anyway, he needs to be killed. Need a helping hand?" [/message] [message] speaker=Fiannon message= _ "Sure. Your magic will be very helpfull." [/message]

I'm getting a nested quoted string error, when opening a savefile of my campaign. Apparently it's in line 5 of this file. Perhaps it's obvious, but i can't see an error, as i was just pklaying around with the strong trait, doubling his effect.