This is my code
When I debug it, npcId returns 0 - good.
line returns 1 - good.
name returns.. <none>. I've tried parsing line as an int/number, but it always parses as <none>. Better, even, when I just write {_name} to line 1(or anything, a number) it actually works. Anyone know why this is? Or how to fix it? Using the bensku skript fork and I guess the latest "umbaska"? If that's still a thing? The latest before it became WildSkript.
Code:
set {_npc} to npc from entity loop-entity
set {_npcId} to id of npc {_npc}
set {_line} to ({_npcId} + 1)
set {_name} to line {_line} in file "/plugins/chi/npcName.txt"
When I debug it, npcId returns 0 - good.
line returns 1 - good.
name returns.. <none>. I've tried parsing line as an int/number, but it always parses as <none>. Better, even, when I just write {_name} to line 1(or anything, a number) it actually works. Anyone know why this is? Or how to fix it? Using the bensku skript fork and I guess the latest "umbaska"? If that's still a thing? The latest before it became WildSkript.