Drawing on only specific rooms

Hey guys, trying hide the draw script I have for the players health bar for the opening rooms. is there a way to script this in the draw? As in; draw these tiles except during these rooms?

thanks

Hello there! I don't know if you've already solved this problem, but if you haven't, this should work! If you don't want to do any code outside of the draw, you can say:

if event.room!="roomname" then
    if event.room!="roomname2" then
        if event.room!="roomname3" then
             //insert draw stuff here
        end
    end
end

and so on, for each of the starting rooms. Now, if you're OK with using some code outside of the draw function, you can create a variable that, in the enter function for each room, set it to 1, and then set it to 0 on the rooms you want it to be drawn in. Then, check whether or not the variable is equal to 0 and place the draw stuff in there.

//rooms without health bar
drawVariable = 1
//rooms with health bar
drawVariable = 0

I hope this helps!

thank you for the response. for the in draw event, does the health bar code need to be entered for each event room or can the rooms be stacked up like pictured with one event code at the end?

thanks