How do I reach room objects from global script and conversations?

Started by kinan___rod, Thu 25/06/2015 07:10:05

Previous topic - Next topic

kinan___rod

I used this line in a conversation script but there is a problem recognising the object (undefined token "oCards").
Code: ags

  oCards.Visible = true;

Gurok

In global scripts and conversations, you can only refer to room objects by an index in the global objects array. e.g.

Code: ags
object[0].Visible = true;


This index listed in the room editor as the ID of the object. That was just an example. I don't know what the ID of oCards is. You'll have to use the room editor and look that up yourself.
[img]http://7d4iqnx.gif;rWRLUuw.gi


SMF spam blocked by CleanTalk