Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-21-2010, 10:30 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Gani Script/player.attr problems

So I'm using a script that checks to see if a param isnt null, then if so, checks what that param is, then runs through a list of what it should be doing with that param. i'm working on 'binding' ganis to buffs in this way. now, everything's working for the most part, except the gani scripts are doing something weird:

First of all, when the param tells the script to set one of the player's attributes, to, in this case, a particle, itll be all fine and dandy. but for some reason, in order to clear that attribute when the param doesnt exist anymore, i need to set the player's attribute to a nonexistant gani. "player.attr[3] = null" doesnt cut it for some reason.

Now the bigger issue: The buff will run out (which will clear the param), removing the gani, but when I cast the buff again, from that point forward, until i reconnect, the gani seems to not want to show until a certain time has elapsed. I've tried messing around with the gani's script. things such as changing the lifetime of the particle and changing the max number of particles doesnt do anything. and if i set continueafterdestroy = true, it still wont work when I can visually see that the particle has ended. and will stay hidden for an unknown period of time until some time has elapsed. I've tried using a scheduleevent trick that i read elsewhere and that didnt seem to help either. I'm pretty convinced it's not actually a problem within the gani script, but possibly a problem with the player.attr system that needs to be worked around in a certain way.

So yeah, has anyone run into this problem before? And/or know what might be causing my problem?
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote
 


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:48 AM.


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