tylerking93
Member
Hi everyone,
I’m currently working on a custom “hunter’s bond” feature and trying to grant additional spells per day through a custom ability.
So far, I’ve experimented with the following approach:
perform hero.child[ar......].setfocus
focus.field[cvCastTot].matrixvalue[0,0] -= 4
...
perform state.clearfocus
The issue is that hero.child[] doesn’t seem to recognize identifiers like "ranger" or "cHelpRgr", so I can’t properly target the class.
I also attempted to add secondary spells using this:
perform hero.child[cHelpRgr].setfocus
focus.field[cSecSpName].text = "domain spells"
focus.field[cSecSplReq].value += 1
perform state.clearfocus
However, this doesn’t actually grant access to secondary spells. It feels like I’m missing a step that enables them to appear or become usable. I also tried using the ClsScAllSp tag, but it doesn’t seem to function with custom abilities.
At this point, I’m considering whether implementing this as a domain might be a cleaner solution. The problem is that I’m not sure how to restrict a domain so that only rangers can access it.
If anyone has suggestions or a better approach, I’d really appreciate the guidance.
Thanks in advance!
I’m currently working on a custom “hunter’s bond” feature and trying to grant additional spells per day through a custom ability.
So far, I’ve experimented with the following approach:
perform hero.child[ar......].setfocus
focus.field[cvCastTot].matrixvalue[0,0] -= 4
...
perform state.clearfocus
The issue is that hero.child[] doesn’t seem to recognize identifiers like "ranger" or "cHelpRgr", so I can’t properly target the class.
I also attempted to add secondary spells using this:
perform hero.child[cHelpRgr].setfocus
focus.field[cSecSpName].text = "domain spells"
focus.field[cSecSplReq].value += 1
perform state.clearfocus
However, this doesn’t actually grant access to secondary spells. It feels like I’m missing a step that enables them to appear or become usable. I also tried using the ClsScAllSp tag, but it doesn’t seem to function with custom abilities.
At this point, I’m considering whether implementing this as a domain might be a cleaner solution. The problem is that I’m not sure how to restrict a domain so that only rangers can access it.
If anyone has suggestions or a better approach, I’d really appreciate the guidance.
Thanks in advance!