It's more like the syntaxis, it's changed in v18.
For example, i try to adapt why said in step 1:
def pbAnimation(move,user,targets,hitNum=0)
@scene.pbAnimation(move,user,targets,hitNum) if @showAnims
def pbChangeBGSprite
case $fieldeffectsbg
when 0 # Interior Field...