This worked. Had to just assign it separate and correctly into this.vars
PHP Code:
public function loadDialog(temp.conReturn, temp.speaker, temp.head, temp.msg)
{
// clear all images
clearImages();
// set vars
this.conReturn = conReturn;
this.msgFull = temp.msg[0].size();
this.msg = temp.msg[0][0];
for (temp.i = 1; temp.i < temp.msg[0].size(); i++)
{
this.options.add(temp.msg[0][i]);
}
//player.chat = this.options;
// make player still
setani("idle", null);
disabledefmovement();
// move in stuff
tweenInHead(temp.head);
tweenInName(temp.speaker);
if (this.conReturn)
{
//player.chat = this.options;
tweenInMessage(this.msg);
for (temp.j = 0; temp.j < this.msgFull - 1; temp.j++)
{
tweenInChoices(this.options[j]);
}
this.messageWaiting = true;
}else
{
tweenInMessage(temp.msg);
}
tweenInBG();
// set to show it's shown up and wait for interaction
this.shown = true;
}
That's still bs imo. Local vars should be able to work as far as I can see. All well. If someone notices something to teach me or something I did wrong please note so I can switch it back to local vars.