If I understood with this system when a wild pokemon appears it wouldn't attack the trainer.
Only the trainer's pokemon right ?
info
Grupo: Campones
Registrado: 08/12/09
Posts: 76
Reputação: +27
Char no Tibia: Zoralurk

If I understood with this system when a wild pokemon appears it wouldn't attack the trainer.
Only the trainer's pokemon right ?
Yes.
The attacked pokemon (wild) will only change target after it loses some life, because you used the function onStatsChange.
Try making it with onAttack / onCombat, and it will change once you click to attack it.
info
Grupo: Banidos
Registrado: 20/11/10
Posts: 35
Reputação: +6
Char no Tibia: Peei
When monsters appears then go attack to player but with this system you have no errors.
Go to creaturescripts/scripts/ create a lua file called attackpokemon.lua and put this:
Creaturescripts.xml
Now go to login.lua and put:
Bye bye