DreTazzz
Member
Hi to anyone that can possibly help. Ok, I am trying to create a code where if A or B is in the room with C, D, or E, then the health bar goes down. I have it currently as:
if instance_exists((obj_A || B) && (obj_C || obj_D || obj_E) && (RoomA[4])) {
global.rem_hp -= 30;
}
It doesnt seem to work. So, I have a two to three-part question: is that code correct, if not, what should it be; and, should the code go under CREATE, or STEP? Because I want it to be in effect the entire round. Thanks soooooo much to anyone that can help.
if instance_exists((obj_A || B) && (obj_C || obj_D || obj_E) && (RoomA[4])) {
global.rem_hp -= 30;
}
It doesnt seem to work. So, I have a two to three-part question: is that code correct, if not, what should it be; and, should the code go under CREATE, or STEP? Because I want it to be in effect the entire round. Thanks soooooo much to anyone that can help.