Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Gani params (New engine) (https://forums.graalonline.com/forums/showthread.php?t=58557)

ChibiChibiLuc 04-13-2005 09:33 PM

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]?

Polo 04-13-2005 11:13 PM

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.

Admins 04-14-2005 02:23 AM

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 ?

ChibiChibiLuc 04-17-2005 03:14 AM

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.

Admins 04-17-2005 05:12 AM

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.

ChibiChibiLuc 04-17-2005 11:59 PM

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"


All times are GMT +2. The time now is 11:11 AM.

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