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 08-08-2008, 12:36 AM
DarkReaper0 DarkReaper0 is offline
No.
DarkReaper0's Avatar
Join Date: May 2005
Location: Texas,USA
Posts: 344
DarkReaper0 will become famous soon enough
Send a message via MSN to DarkReaper0
Showani (Simple, I know right?)

PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
  
showani(300,player.x,player.y,player.dir,player.ani);

Any Idea how to make a showani change colors?

I've tried all my ideas.
Reply With Quote
  #2  
Old 08-08-2008, 12:38 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
TGaniObject.red
TGaniObject.green
TGaniObject.blue
Reply With Quote
  #3  
Old 08-08-2008, 12:39 AM
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
PHP Code:
new GuiShowImgCtrl("Whatever") {
  
ani player.ani;
  
red .1;

Works fine like this on Vesporia (I didn't check the code, but that's the way we're doing it)

You tried changeimgcolors and findimg(300).red = .1, right?
__________________
Reply With Quote
  #4  
Old 08-08-2008, 12:40 AM
DarkReaper0 DarkReaper0 is offline
No.
DarkReaper0's Avatar
Join Date: May 2005
Location: Texas,USA
Posts: 344
DarkReaper0 will become famous soon enough
Send a message via MSN to DarkReaper0
Quote:
Originally Posted by DrakilorP2P View Post
TGaniObject.red
TGaniObject.green
TGaniObject.blue

Tried that.

Changeimgcolors doesn't work either.

I guess I'll just go for a showimg control.
Reply With Quote
  #5  
Old 08-08-2008, 12:51 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Dusty, GuiShowImgCtrl is not the same as showimg() or showani().
Quote:
Originally Posted by DarkReaper0 View Post
I guess I'll just go for a showimg control.
Do not.

PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
  
with (findimg(300)) {
    
this.ani player.ani;
    
this.dir player.dir;
    
this.player.x;
    
this.player.y
  }

http://wiki.graal.net/index.php/Crea...lient/TShowImg
__________________

Last edited by Inverness; 08-08-2008 at 01:22 AM..
Reply With Quote
  #6  
Old 08-08-2008, 12:56 AM
DarkReaper0 DarkReaper0 is offline
No.
DarkReaper0's Avatar
Join Date: May 2005
Location: Texas,USA
Posts: 344
DarkReaper0 will become famous soon enough
Send a message via MSN to DarkReaper0
In retrospect a guishowimg won't suit my needs afterall
Reply With Quote
  #7  
Old 08-08-2008, 12:56 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Inverness, Dusty is not the same thing as Chris.
__________________
Reply With Quote
  #8  
Old 08-08-2008, 01:00 AM
DarkReaper0 DarkReaper0 is offline
No.
DarkReaper0's Avatar
Join Date: May 2005
Location: Texas,USA
Posts: 344
DarkReaper0 will become famous soon enough
Send a message via MSN to DarkReaper0
I've tried changeimgcolors() and findimg().red/blue/green with indexes both above and below 300.

I can make the damn thing zoom but not change colors, how irritating.
Reply With Quote
  #9  
Old 08-08-2008, 01:03 AM
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
Quote:
Originally Posted by Inverness View Post
Dusty, GuiShowImgCtrl is not the same as showimg() or showani().
I'm assuming you're talking to me?

I realize they are not the same; it seemed like it would work for him though, since he is displaying at an index above 200 (only to the player).
__________________
Reply With Quote
  #10  
Old 08-08-2008, 01:14 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
When using findImg(), use actor.red instead of red, and so on. Keep in mind the defaults of the rgb values are 1 here, so you have to set something lower if you want to change something. Example:

PHP Code:
with (findImg(666)) {
  
ani "idle";
  
layer 4;
  
200;
  
actor.red 1;
  
actor.green 1;
  
actor.blue 0;

Yellow idle gani.
__________________
Reply With Quote
  #11  
Old 08-08-2008, 01:20 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Crow is correct.
Quote:
Originally Posted by Crow View Post
Inverness, Dusty is not the same thing as Chris.
Oh dear...
__________________
Reply With Quote
  #12  
Old 08-08-2008, 01:27 AM
DarkReaper0 DarkReaper0 is offline
No.
DarkReaper0's Avatar
Join Date: May 2005
Location: Texas,USA
Posts: 344
DarkReaper0 will become famous soon enough
Send a message via MSN to DarkReaper0
Issue resolved, crow solved it

Ty
Reply With Quote
  #13  
Old 08-08-2008, 01:38 AM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by cbk1994 View Post
I realize they are not the same; it seemed like it would work for him though, since he is displaying at an index above 200 (only to the player).
You do realize a GuiShowImgCtrl would be able to steal focus, while a TShowImg wouldn't? Use Gui stuff for Gui's only, and you'll live a much more healthy life.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #14  
Old 08-08-2008, 01:49 AM
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
Quote:
Originally Posted by xXziroXx View Post
You do realize a GuiShowImgCtrl would be able to steal focus, while a TShowImg wouldn't? Use Gui stuff for Gui's only, and you'll live a much more healthy life.
Yeah, good point.
__________________
Reply With Quote
Reply

Tags
showani

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 11:43 AM.


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