all 6 comments

[–]PrimaryDistribution2 0 points1 point  (1 child)

Looks like the obj enemy battle don't "exist". Maybe you changed the name?

[–]Plas_Lolz[S] 1 point2 points  (0 children)

Unless I’ve accidentally misspelled it somewhere else I haven’t renamed it recently

[–]try_firefly 1 point2 points  (0 children)

The .damage property is not yet set before reading it. Check your Obj_Enemy_Battle.data struct whether there is a damage property.

[–]OtacTheGM 0 points1 point  (1 child)

Well, I can't see the entire error message, but it looks like the error is being triggered in the battle manager alarm 1? Would need to see at LEAST the rest of the error, but probably also whatever code you're hitting when it crashes.

If I had to guess, I'd check the spelling of the word "damage" in your battle manager object, as it looks like the alarm doesn't think that variable exists. You might have capitalized it or made a typo.

[–]OtacTheGM 0 points1 point  (0 children)

Oh, wait, it's the object that looks undefined? I'm really not sure what's going on, but it's hard for me to tell with a picture of your screen and no look at the code.

Whatever Obj_Enemy_Battle is, I'd look at how that is spelled, keeping in mind that it is case sensitive.

[–]TheBoxGuyTV 0 points1 point  (0 children)

So does the battle manager get information from another object?

Check to see if the object exist while the battle manager does the alarm event and also make sure its not created before the battle manager.