
1.003 MATH L[1]=2
1.004 MATH mem = 8
1.005 MATH s[3] = "Sword of Truth +3Str +2Int +4Cha +6Sta"
1.006 IF L[1] < 3 && mem < 10
1.007 DISP [S3]
1.008 ENDIF
Is there a more elegant way of handling IF conditions when there is more than one criteria than just nesting two IF conditions?
Example: I want an IF statement to run if L[1] is < 3 AND IF mem < 10
Right now I script it as follows:
1.001 MATH s[3] = "Sword of Truth +3Str +2Int +4Cha +6Sta"
2.001 IF L[1] < 3
2.002 IF mem < 10
2.003 SUMMON [S3]
2.004 ENDIF
2.004 ENDIF
Is there a better way of doing this?
1.003 MATH L[1]=2
1.004 MATH mem = 8
1.005 MATH s[3] = "Sword of Truth +3Str +2Int +4Cha +6Sta"
1.006 IF L[1] < 3 && mem < 10
1.007 DISP [S3]
1.008 ENDIF
Thanks! I figured there had to be a way. Though only displaying the epic Sword of Truth is a lot less interesting than summoning it from the ether. Met/Cal can summon things from the ether, right?
Thanks! I figured there had to be a way. Though only displaying the epic Sword of Truth is a lot less interesting than summoning it from the ether. Met/Cal can summon things from the ether, right?
Please sign in to leave a comment.
3 comments