Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   player.attr (https://forums.graalonline.com/forums/showthread.php?t=134265334)

sssssssssss 12-20-2011 03:37 AM

player.attr
 
I can't remember for sure, but aren't some player.attr default, initially, for other things? And also can't you only go up to a certain number with player.attr before it doesn't work or something like that? I thought I saw this info somewhere, but couldn't find it and not for sure obviously. Please excuse the stupid questions or bad wording, I'm sick as crap right now...

fowlplay4 12-20-2011 03:41 AM

There's a length limitation, if you're using more than 100 characters in an attribute you might want to re-think your approach. You should be able to get away with storing strings and numbers without problem though.

Some of the attributes in the 20-30 range are used by global effects, they're not reserved or anything but it's a possibility for trouble.

attr[1] is used in the default ganis for hats.

Tolnaftate2004 12-20-2011 06:00 AM

attr[2] is (or was) the carried object.

ffcmike 12-20-2011 06:05 AM

Quote:

Originally Posted by Tolnaftate2004 (Post 1678734)
attr[2] is (or was) the carried object.

attr[3]

Tolnaftate2004 12-20-2011 06:38 AM

Quote:

Originally Posted by ffcmike (Post 1678735)
attr[3]

Yes, my mistake.


All times are GMT +2. The time now is 10:59 PM.

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