Compare the top to the one I'm trying to make work. This works when NOT sending an array to it.
PHP Code:
public function loadDialog(temp.conReturn, temp.speaker, temp.head, temp.msg)
{
// clear all images
clearImages();
// set vars
this.conReturn = temp.conReturn;
// make player still
setani("idle", null);
disabledefmovement();
// move in stuff
tweenInHead(temp.head);
tweenInName(temp.speaker);
tweenInMessage(temp.msg);
tweenInBG();
......
This is the script using to send as single (the true/false is just my way of saying if its an array or not, doesn't seem to be effecting the code whatsoever):
PHP Code:
temp.speaker = "Billy";
temp.head = this.head;
temp.message = "I'm really bored and have no idea what to do...";
// send false for single message or true for multiple
temp.response = findweapon("-System/NPCDialog").loadDialog(false, speaker, head, message);
Sending as array and not working:
PHP Code:
temp.speaker = "Billy";
temp.head = this.head;
temp.msg.add({"I'm really bored and have no idea what to do...","So?", "Go swimming!", "I hate you"});
temp.msg.add({"Whatever dude...", "I can't swim", "We share that feeling now"});
// send false for single message or true for multiple
temp.response = findweapon("-System/NPCDialog").loadDialog(true, speaker, head, msg);
So it's not the tween. I don't think it's the way I'm sending an array or the fact that I am sending an array or not because it worked where I marked in the previous post in comments which chat showed it, then 10 lines down it's lost.
I just don't get this. Tried everything I can think of.