Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-08-2008, 04:05 AM
Stryke Stryke is offline
Scripter
Join Date: Apr 2008
Posts: 157
Stryke is an unknown quantity at this point
if(actionprojectile2) is the one that triggers when it hits anything. Not just the player. That's why I am using a testplayer() to see if it the player or not.

@cbk1994: How would that work?

PHP Code:
new GuiShowImgCtrl("BloodFX") {
  
player.x;
  
player.y;
  
width 8;
  
height 8;
  
ani "bloodfx";
  
this.attr[5] = 9;
  
this.attr[6] = 5;
  
this.attr[7] = 4;

You mean something like this will work ?
Reply With Quote
  #2  
Old 06-08-2008, 04:12 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Stryke View Post
if(actionprojectile2) is the one that triggers when it hits anything. Not just the player. That's why I am using a testplayer() to see if it the player or not.

@cbk1994: How would that work?

PHP Code:
new GuiShowImgCtrl("BloodFX") {
  
player.x;
  
player.y;
  
width 8;
  
height 8;
  
ani "bloodfx";
  
this.attr[5] = 9;
  
this.attr[6] = 5;
  
this.attr[7] = 4;

You mean something like this will work ?
No, you would need an actual TShowImg on the level board.
__________________
Do it with a DON!
Reply With Quote
  #3  
Old 06-08-2008, 04:26 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 Stryke View Post
How would that work?
player.attr[ 13 ] = "mybloodgani.gani";

would probably work.

If not, showani( 1, "mybloodgani", player.x, player.y ); may.
__________________
Reply With Quote
Reply


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


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