Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 12-12-2012, 04:27 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
This worked. Had to just assign it separate and correctly into this.vars

PHP Code:
public function loadDialog(temp.conReturntemp.speakertemp.headtemp.msg)
{
  
// clear all images
  
clearImages();
  
  
// set vars
  
this.conReturn conReturn;
  
this.msgFull temp.msg[0].size();
  
this.msg temp.msg[0][0];
  
  for (
temp.1temp.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.0temp.this.msgFull 1temp.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.
__________________
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:57 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.