First, how exactly did you copy that script from Sailor Moon demo?
All the enemy behavior is in the main file ani0020_actual.
So, for staters... literally, at the end of that script (that is attached above) I added the code from the script used by the sailor moon demo, from a boss called "Pino":
void main()
{// Dodges runattack
// Only performed if enemy is in IDLE or WALK
// When he/she dodges, he/she will perform FOLLOW1 animation
void self = getlocalvar("self"); //Get calling entity.
void Anim = getentityproperty(self, "animationID");
if(Anim == openborconstant("ANI_IDLE") || Anim == openborconstant("ANI_WALK")){
void target = findtarget(self);
void EAnim = getentityproperty(target, "animationID");
if(EAnim == openborconstant("ANI_RUNATTACK") || EAnim == openborconstant("ANI_JUMPATTACK") || EAnim == openborconstant("ANI_JUMPATTACK2") || EAnim == openborconstant("ANI_RUNJUMPATTACK")){
changeopenborvariant("lasthitc", 0);
changeentityproperty(self, "velocity", 0, 0);
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
}
Then I went into the script for the enemy Roper.txt and added an evade animation, copying code from the enemy Pino.txt file, and changing it so it pointed at the necessary animations files/pics.
Third, what did the log say after the crash?
The log said, can't load "Roper". So, openbor.exe didn't seem to like that.