View Single Post
  #6  
Old 12-12-2012, 04:04 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
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.conReturntemp.speakertemp.headtemp.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(falsespeakerheadmessage); 
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(truespeakerheadmsg); 

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.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote