Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Question about Ultimate Quest Scene: Reborn (RMXP)

When using the $game_temp.qupdate(n) = true command to grey out objectives once they've been completed it doesn't grey it out.

if $game_temp.qupdate[switch] == true
self.contents.font.color = disabled_color
self.contents.draw_text(0, 0, 435, 210 + (easy * 35), $qdata.objs[script])
else
self.contents.font.color = normal_color
self.contents.draw_text(0, 0, 435, 210 + (easy * 35), $qdata.objs[script])
end

I've narrowed it down to this code but i can't figure out what's wrong, if i delete the second = sign on the first line, it turns all objectives to grey.

Any advice? Any more information needed?
 
Erasing that = changes it from comparison to assignment, forcing it to be true. Whatever's going wrong, $game_temp.qupdate[switch] isn't getting set to true normally, so you might not be properly setting each objective as complete.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top