Alright I'm trying to show the actors level if the actor doesn't have a state applied. If there is a state applied it will show the state name instead. What is happening is that an error shows up saying "undefined method state? Etc. Etc." But it is clearly defined below. Any ideas? Here is a snippet of the code, I have no internet any more do it's the best I could do on my phone.
self.contents.draw_text(x, y, 64 + w3, actor.level, 2) if @actor.state?(-1) #no state applieddef state?(state_id) return @states.include?(state_id)endSo it is defined. I'm also unsure of what to put for no state, like -1 or nil. One other note I used the same type of state script to disable the skill menu like so
return false if @actor.state?(4) No issues. That's a silenced state where no magic can be used. Any help would be appreciated.
I apologize if this is in the wrong section but I figured it is a request of sorts.
self.contents.draw_text(x, y, 64 + w3, actor.level, 2) if @actor.state?(-1) #no state applieddef state?(state_id) return @states.include?(state_id)endSo it is defined. I'm also unsure of what to put for no state, like -1 or nil. One other note I used the same type of state script to disable the skill menu like so
return false if @actor.state?(4) No issues. That's a silenced state where no magic can be used. Any help would be appreciated.
I apologize if this is in the wrong section but I figured it is a request of sorts.