While the query "GetTextEventParamUUID " only runs if a parameter exists, it seems to try and parse the TextEvent name as the parameter.
The other GetTextEventParam queries work fine.
Test code:
IF
TextEventSet("LLNWIZ_AddWand")
AND
GetTextEventParamUUID(1, _Target)
AND
GetUUID(_Target, _Str)
THEN
LLNWIZ_DebugLog("LLNWIZ_AddWand [UUID]: ", _Str);
Command used:
oe LLNWIZ_AddWand S_GLO_CharacterCreationDummy_001_da072fe7-fdd5-42ae-9139-8bd4b9fca406
Result:
StoryUtils::RetrieveGuid : TemplateNameGuid 'LLNWIZ_AddWand' too short!
Category: Code
Count: 1
Timestamp: 04-03-2018 22:56:48:598
Function: esv::StoryUtils::RetrieveGuid
Location: EoCServer\Server\StoryUtilities.cpp (71)
To further illustrate this error, I tested the following rule and command:
IF
TextEventSet(_Event)
AND
GetTextEventParamUUID(1, _Target)
AND
GetUUID(_Target, _Str)
THEN
LLNWIZ_DebugLog("Test command [UUID]: ", _Str);
Command:
oe CHARACTERGUID_S_GLO_CharacterCreationDummy_001_da072fe7-fdd5-42ae-9139-8bd4b9fca406 Hi
Using the GUIDSTRING as both the text event name and param works:
Osiris triggered an assert: [LLNWIZ:Debug]Test command [UUID]: da072fe7-fdd5-42ae-9139-8bd4b9fca406