Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-13-2005, 09:33 PM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
Gani params (New engine)

Alright, I have a gani that's mean't to show text, which is read from params[0].
The problem is, it thinks params[0] is blank.

This is the part of the gani that shows the text:
this.text = params[0];
showtext2(30,x+2,y+.5,this.zed,"Times New Roman","c","Param: " @ this.text);

This is the script that shows the gani:
showani(40,player.x,player.y,0,"effect-floatingtext","Asdf");


I've tried both #p(0) and params[0]. Both read as blank.
I've tried more than one param, didn't work.
It's not conflicting commands in either the gani or the NPC.

I've also managed to do this before with the new engine, so it's not impossible.

Can anyone tell me why the gani won't read params[0]?
Reply With Quote
  #2  
Old 04-13-2005, 11:13 PM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
I'm not 100% certain as I havn't played much with GS2 yet, but I think the parameters must be sent as an array, even when theres only one item...

showani(40,player.x,player.y,0,"effect-floatingtext",{"Asdf"});

If it doesn't work sorry. I havn't tried this out.
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
Reply With Quote
  #3  
Old 04-14-2005, 02:23 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Normally everything should work the same like with the old scripting, I have tested several combinations of using showimgs and gani scripts. If there is a problem it is best to put it online on a server, give me the server name, level name and npc/gani that is not working correctly then I can easily debug and fix it. It can be a bug in the server which compiles and sends the gani scripts, then it should be easily to fix. If its a problem in the client then I can fix it so that in the next version it is working correctly. Your server is already using new scripting engine right ?
Reply With Quote
  #4  
Old 04-17-2005, 03:14 AM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
Well, I guess it wasn't the server. =/

I converted the gani script to GS1 and it read the params just fine, but it won't read them at all with GS2..

Guess I'm frigged.
Reply With Quote
  #5  
Old 04-17-2005, 05:12 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Well like I said, best is to put it online and give me the location so that I can debug it and possibly fix it.
Reply With Quote
  #6  
Old 04-17-2005, 11:59 PM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
Sorry, I forum PM'd you about that.

The gani is on Babylon.
levels/ganis/effect-floatingtext.gani

The script that shows the gani is in the NPC weapon "-floattext"
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 10:30 PM.


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