Object on [SOLVED]

Started by Blade, Sun 26/12/2004 12:13:37

Previous topic - Next topic

Blade

I'm having problem with turning an object on. It's a map location that turns after a dialog takes place. I've made a global variable, imported it to the rooms script and made a function

// room script file
import int crimsc;
function Objec() {
  if (crimsc == 1) {
  ObjectOn(5);
  }
}

In the character interaction I set the var to 1. Still the object won't turn on.
And I realise my method may look weird to you but since I'm not too good at scripting I had to improvise.
Studies show that 50% of the people do not know they form half of the society.

Radiant

Are you calling the function Objec() ever? A more logical place to put this would either be in the enter_room script, or in repeatedly_execute.

Blade

Thanks, I just made an if statement in enter room and it worked.
Studies show that 50% of the people do not know they form half of the society.

SMF spam blocked by CleanTalk