- Joined
- Oct 25, 2015
- Messages
- 47
- Reaction score
- 9
- First Language
- Polish
- Primarily Uses
- RMMV
Hii, I've been working on some small code that changes some element if enemy has the "boss collapse" trait. I was doing great until I got stuck at reading "code", which is the id of trait specified in enemy.
So, I attached my code and some prints from my console. You could say that my goal is to make:
where:
The problem is, using:
gives me an error specified in the title. And it's very weird, since my console prints test.code as 63.
I'm out of ideas...
So, I attached my code and some prints from my console. You could say that my goal is to make:
Code:
test = code;
Code:
code = 63;
The problem is, using:
Code:
test = $dataEnemies[eId].traits[3].code;
I'm out of ideas...