(info) Other great resources: Official JS API docs, Scripting Forum

setDroidExperience()

setDroidExperience(droid, experience)

Set the amount of experience a droid has. Experience is set using floating point precision.

droid param = a Droid object

you can use the .experience property of a Droid object to find the current experience of a droid