Code: Select all
[Bonus="Training"]<br>
[Value="3"]<br>
[work="Base=13; Arcane=3,-4; Divine=2,4; Training=2; Racial=2; infernal=-1,-2"]<br>
[h:result = getstrprop(work,bonus,"None")]
[h,if(result=="None"):result=value;result=listappend(result,value)]
[h:work=setstrprop(work,bonus,result)]
[r:work]
Code: Select all
[defineFunction("Bonus.Add", "AddBonus@Lib:Parse")]
Code: Select all
[bonus.add()]
I've defined a couple of other functions which are working flawlessly And The function exists (would give a function undefined error otherwise)java.lang.NullPointerException error executing expression bonus.add().