Trying to add holy blood in Lex Talionis


this one the event

so, you typed unit.nid.tags. you don’t need it to be unit.nid. just unit.
so it would just be unit.tags

ERROR: event_processor: ‘NoneType’ object has no attribute ‘tags’: Could not evaluate {‘HolyBlood’ in unit.tags} in if;‘HolyBlood’ in unit.tags

ohhh you know what i just noticed why it’s not working. Your event trigger is level_start. it doesn’t take unit as a viable term to use. so if you want to check a certain unit, you either need to change the trigger or do something like

if;'HolyBlood' in game.get_unit('UnitName').tags

is normal gets this error?:
ERROR: event_processor: ‘NoneType’ object has no attribute ‘tags’: Could not evaluate {‘HolyBlood’ in game.get_unit(‘UnitName’).tags} in if;‘HolyBlood’ in game.get_unit(‘UnitName’).tags
change the trigger, but gets this error(I even moved the event to a DEBUG chapter but nothing changes.)

ok so first off, you replace ‘HolyBlood’ and ‘UnitName’ with the names of the holy blood and the name of the unit you’re trying to check. I was personally just using them as placeholders so that you understand the concept of how to use them later.
secondly, just change it back to level_start, but use the game.get_unit thing i suggested earlier. that way it’s easier to see if it works.

Now the most complicated part is missing: the rest (stats, exclusive weapons, exclusive skills)

1 Like

Not sure if this is worth adding but I just gave everyone with Holy Blood a hidden Personal Skill to check for.

1 Like

Tbh, that’s the way I would do it too. And of course, give it that same ‘HolyBlood’ in unit.tags thing as a Condition to check for