![]() |
How to accss Default Attrs/Params VIA Scripts
The title says it all.
If I made a Gani with a player holding a beer as maybe Default Attr/Param 2, how would I access it to change it how I like in a script. |
Depends on what you want to do and how you want to do it.
|
player.attr[index]
setani(ganiname, params); |
Quote:
|
Quote:
|
Graal is ignoring the default values, it's only used by GraalShop.exe
|
Quote:
replaceani(defaultani, newani); can be used to replace the default ganis with custom ones. Ex: replaceani("idle", "mycustomidle"); Graal would use "mycustomidle" in place of the default idle animation from that point on, you would use replaceani("idle", "idle"); to change it back to normal. By the way, I would like to know if there are GS2 versions of those. |
Quote:
Quote:
|
Quote:
then you can use player.attr[index] = "famous_image.png"; and the replaced default ani would use that attr.. |
Quote:
Thanks Chompy and Iverness :D |
Those are gs2 inverness. Only things that use ()'s in GS1 are if and with members such as onwall() and getplayer().
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Well, I was just trying to point out that the GS1 version was
PHP Code:
|
| All times are GMT +2. The time now is 06:40 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.