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.

help with a cms

i was wondering how to display text in a window only if a variable were >= 1. example, the text "smile" will only be displayed in a window when variable 0001 is >= 1. sorry if thats not a good explanation of what im looking for. ive been googling and searching forums on several sites for hours now and havent found anything. thanks for the help in advance
 
well, I'm no scripter, but here's my two cents on how to do it...

inside your window code put something like:
Code:
 

if $game.variables[0000] >= 1 

  yourwindow.visible = true

else

  yourwindow.visible = false

end

 

This is assuming that you created a custom window in the "def" part of the script.

Hope this is what you were looking for, that's about all I have on it, but it's somewhere for you to start. If it doesn't work then toy with it while you wait for a pro to tell ya what the real code is. ;)

~uSX
 
k thanks for your help. i was planning on making the window in the "def" part, so this should work. ill try it later and post back if it works, but right now i have to replace the starter celanoid on my car......fun
 

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