Help with openborvariants

Smart Kitty

Well-known member
I am having a few issues by trying to detect on update.c when player is on the main menu, what wiki said the old way was deprecated so I used the new system status constant but still not detecting or even printing anything on the log, I don't know what I am doing wrong.

C-like:
void main()
{
 
    if(openborvariant("screen_status")==openborconstant("IN_SCREEN_TITLE")){
      log("menu");
      setlocalvar("dialog_text", "Hello traveler!");
      setlocalvar("visible_chars", 0);
      //timer_set(100);
    }
}

I have also seen like the variant "in_level" still works like before though, but I am struggling with this one
 
Back
Top Bottom