I’m working on my prototype for an rpg. When the player clicks on their enemy (currently just a “dummy,” aka, a red box with an x in the center), the current party-member is supposed to pathfind to the enemy, and a variable called “difficulty” is supposed to be randomized, and then, if it is below the party-member’s “attribute” attribute, then the dummy will lose health. It works, but it’s instant, rather than as soon as the party-member has reached their destination.
But when I prompted that this would only happen when the party-member had reached their destination, the dummy stopped losing Health. Difficulty is incapable of being above 100 and one of my party-members has an attribute of 100.
![Screenshot 2025-03-11 205135|690x397]
The 2 left monitors are (top-bottom) the number of turns that have passed, out of the number of party-members currently in the scene, and the number of moments/series of turns, that have passed. The 2 right monitors are the dummy’s health and the number that has been rolled. Since one of the party-members has an attribute of 100, the dummy should be missing 25 hp, but the dummy, as you can see, is not, which is the problem.