Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-01-2006, 02:15 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
playerlook = true;

Hi all

okay, i'm messing with the P.E. (Particle Engine) and I came across a action I cant seem to figure out. I looked it up in the wiki and It shed some light but I cant get it to work. It's the 'playerlooks' action and could someone explain it to me thoroughly when the boolean is true or false? Please?

Thanks,
Mr. Omega
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 07-01-2006, 02:33 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Quote:
Originally Posted by Angel_Light
Hi all

okay, i'm messing with the P.E. (Particle Engine) and I came across a action I cant seem to figure out. I looked it up in the wiki and It shed some light but I cant get it to work. It's the 'playerlooks' action and could someone explain it to me thoroughly when the boolean is true or false? Please?

Thanks,
Mr. Omega
The property 'playerlooks' is for TShowImg_Gani .

When you have a player in a gani, you can set the properties of the TShowimg_Gani to the player looks, or... You can manually set it by having findimg( ganiIndex ).actor.headimg = "head0.png";

The property 'playerlooks' just makes all the properties that of player. ( the current player ) become those of the gani as well.

PHP Code:
...
if ( 
playerlooks )
  {
  
this.actor.headimg player.headimg;
  ...
  for ( 
030++ )
    
this.actor.attr] = player.attr];
  }
... 
Pretty much.
Reply With Quote
  #3  
Old 07-01-2006, 02:48 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
ok, I think I get it. Thanks

EDIT: Maybe not. I have the script where the player chats a phrase. I can get the shadow to show but not the NPC head, body, attr, etc to show. Also in the wiki it says to use projectile.actor.
__________________
Deep into the Darkness peering...

Last edited by Angel_Light; 07-01-2006 at 03:54 AM..
Reply With Quote
  #4  
Old 07-02-2006, 11:55 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
You have to set the gani to idle or something, and then set playerlook. I don't think it automatically sets the gani for you.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:46 PM.


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