I'm trying to give normal (not fire) Gargoyles in Heretic a different color so that they can be told from Fire Gargoyles at a glance. (Just a minimod for personal use). Since I already have several minimods that check things on WorldThingSpawned event, I thought I would put this thing also on this event.
The translation is defined in TRNSLATE.txt as
Code: Select all
TestBlue = "0:255=%[0,0,0]:[0,0,1]"
(Just to start with something and then adjust if needed).
Then I'm trying to apply it on WorldThingSpawned:
Code: Select all
if (event.thing is "HereticImp" && event.thing.Health == 40)
event.thing.translation = "TestBlue";
However the engine gives an error:
Code: Select all
Script error, ":zscript.zsc" line 40:
Numeric type expected
It seems I can't use a name for translation in this way, the engine expects some number. How can I apply it?