![]() |
Gani Script, Problem (Still a script)
I am having this strange problem. I made a script and implemented it into 2 ganis (Walking and idle), the script is identical, yet in idle state it does not work properly, but in walking one it does.
here is the part of the script that doesn't work properly: NPC Code: In idle state it displays only 1 show text, instead of 2-4 (depending on this.lines variable). Does anyone know what's wrong? |
Mh maybe because they both use i? though i doubt it. Also Check if it's both in SCRIPT and SCRIPTEND.
|
always use this.i.
"i" can be used by other npcs where as a this.var cannot. |
Quote:
I really didn'tthink it matterd, because of the way scripting works. i is usually bound withing a for loop so it is discarded after it has been used, and no NPC/Script etc works at the same time as another, Graal rather goes through all of them, or has them under events. Again the above paragrpah is just an assumption based on my knowledge. In any case problem is solved |
Quote:
If the variable's value doesn't need to be preserved between frames, a non-prefixed name is fine. Part of being a scripter is knowing that everything has a use, and learning the situations in which to utilise each tool ¬_¬ Androk, your problem is almost certainly the result of another factor. Either way, if the effect is one that should be applied to multiple ganis then it should use the ganis-as-params feature. |
Quote:
Quote:
|
Kaimetsu, of course i has a use. I was advising him to use this.i so this doesn't happen in the future.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
setplayerprop #P(#),name.gani; |
Quote:
|
Params, attributes, meh. When I invented them like two years ago they were called 'complimentary ganis'.
|
I was wondering, can you join a class through a gani?
NPC Code: |
All times are GMT +2. The time now is 12:47 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.