I have a problem regarding the
CharacterCount-Query. I want to create a skill for a bard class. The player should receive a small amount of money depending on the amount of characters in range. For this I created a game script. First I wanted to print out the amount of characters in a specific range. I tried the query
CharacterCount, but it always returns zero. Other Queries, like
GetPlayerCount or
CharacterGetHostileCount work without problems. Does anyone know, how I can fix this problem?
INIT
EVENTS
EVENT FT_Bard_PerformanceCast
VARS
CHARACTER:_Character
INT:_CharacterCount
FIXEDSTRING:_Message
ON
OnSkillCast(_Character, "Shout_FT_Bard_Performance")
ACTIONS
Set(_CharacterCount, -1)
IF "c1"
CharacterCount(_CharacterCount, _Character, 100.0)
THEN
ENDIF
Cast(_Message, _CharacterCount)
DisplayText(_Character, _Message, 1.0)