Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-24-2007, 05:08 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
no body will show

I have a simple custom char showing script (this.actor.blah) it works fine but when I use stretchx or change the alpha/mode it hides the body but the head/shield and shadow are still showing. Why is this?

PHP Code:
withfindImg10))
  {
  
    
this.player.2.5;
    
this.player.y;
    
    
layer 1;
    
    
playerlook false;
    
    
this.ani "idle";
    
this.actor.mode  
    
this.actor.red =
    
this.actor.green =
    
this.actor.blue 1;
    
this.actor.alpha 0.5;
  
    
this.actor.head "head0.png";
    
this.actor.body "body.png";
    
this.actor.shield "shield1.png";
    
    
this.actor.colors0] = "orange";
    
this.actor.colors1] = "white";
    
this.actor.colors2] = "blue";
    
this.actor.colors3] = "red";
    
this.actor.colors4] = "black";
    
  } 
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 12-24-2007, 05:13 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
showcharacter();?
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #3  
Old 12-24-2007, 05:18 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I have this problem a lot... no idea how to fix it. Showcharacter is used for setting an NPC as a character, won't help here.
Also, not sure of your intentions, but remember showimgs with an index lower than 200 will be shown to everyone.
Reply With Quote
  #4  
Old 12-24-2007, 05:18 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
nope, and yes Dusty I know. =P
__________________
Deep into the Darkness peering...
Reply With Quote
  #5  
Old 12-24-2007, 03:25 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
May not help in your case, but if you can I would use a GuiShowImgCtrl.
__________________
Reply With Quote
  #6  
Old 12-24-2007, 05:39 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Use setcharani() rather than setting this.ani.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #7  
Old 12-24-2007, 07:21 PM
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
Quote:
Originally Posted by coreys View Post
Use setcharani() rather than setting this.ani.
shouldn't really matter, According the Invern I guess, this.ani is the correct wayand setcharani() is just there for compatibility with GS1.
__________________
Deep into the Darkness peering...
Reply With Quote
  #8  
Old 12-24-2007, 11:35 PM
gemini2 gemini2 is offline
Fincayran Loser
gemini2's Avatar
Join Date: Jun 2007
Location: Georgia
Posts: 174
gemini2 is on a distinguished road
Send a message via AIM to gemini2 Send a message via MSN to gemini2
PHP Code:
this.actor.ani "idle";
this.actor.dir 2
?
__________________
Quote:
Originally Posted by Crystia RC
*Angelu: i said the tuba isnt fitting
Oinkness: well use some lube
Quote:
Originally Posted by Angelu View Post
for me the hole is to big and its a way to thin :O
Reply With Quote
  #9  
Old 12-25-2007, 07: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
no this.actor.ani is not a valid var, just use getvarnames() to get the vars. =P
__________________
Deep into the Darkness peering...
Reply With Quote
  #10  
Old 12-25-2007, 04:23 PM
gemini2 gemini2 is offline
Fincayran Loser
gemini2's Avatar
Join Date: Jun 2007
Location: Georgia
Posts: 174
gemini2 is on a distinguished road
Send a message via AIM to gemini2 Send a message via MSN to gemini2
Quote:
Originally Posted by Angel_Light View Post
no this.actor.ani is not a valid var, just use getvarnames() to get the vars. =P
then I would suggest you to do what Chris said:

Quote:
Originally Posted by cbkbud View Post
May not help in your case, but if you can I would use a GuiShowImgCtrl.
PHP Code:
new GuiShowImgCtrl("test_actor") {
  
10;
  
10;
  
width 60;
  
height 60;
  
layer 1;
  
playerlook false;
  
// start actor
  
ani "idle";
  
actor.headimg "head.png";
  
actor.bodyimg "body.png";
  
actor.shieldimg "no-shield.png";
  
temp.0;
  for(
temp.color : {"orange""white""blue""red""black"}) {
    
actor.colors[i] = color;
    
++;
  }

Oh, and:
PHP Code:
sword  -> player.swordimg
shield 
-> player.shieldimg
head   
-> player.headimg
Body   
-> player.bodyimg 
__________________
Quote:
Originally Posted by Crystia RC
*Angelu: i said the tuba isnt fitting
Oinkness: well use some lube
Quote:
Originally Posted by Angelu View Post
for me the hole is to big and its a way to thin :O
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 06:54 PM.


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