Groovy has been approved by the JSR process, which made it a pretty well defined language. The quick description: "Groovy includes features found in Python, Ruby, and Smalltalk, but uses syntax similar to the Java programming language." Some of its syntax will make access to properties in the game very simple. To do something like get the AC bonus for token Yuridin the syntax would be
Code: Select all
Yuridin.ACbonus
Code: Select all
println "${Yuridin.name}'s AC bonus is ${Yuridin.ACbonus}"
Code: Select all
println "${Yuridin.name} attacks with ${Yuridin.currentWeapon} and does ${roll Yuridin.currentWeapon.damage+Yuridin.currentWeapon.damage} points of damage."