> megatronx,
>
> Screenshot of blackhornet capx.
>
> It does work.
>
Thanks for that.
blackhornet I can see now that there must be some misunderstanding. Basically tokenat(Item,ItemDat_Stat,"'") is returning the name of a global variable ( for example PlayDat_HP ), that holds a number. And I want to access that number within that call.
tokenat(Item,ItemDat_Stat,"'") -> PlayDat_HP -> varPlayDat_HP -> Number [/code:1lqkcohk]
@Ashley We do not have some kind of forcing string "" in to calling a var of the same name? Something like var("PlayDat_HP")?
NP,
And itemDat_Stat is a variable right? And have you checked that variable is a number not text.
I see you using itemDat_Stat as an index which requires it to be a number.
Edit: I am going to have to play around a bit. Will look at this a little later
Can you put together a small test capx just dummy variables with itemdat_stat and the tokenat culculation. I will try and mess around with it. Or a little more detail so I can build a simple example.
Also regex might be a better fit for complicated searches etc