Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Reading from the gani's viewer? (https://forums.graalonline.com/forums/showthread.php?t=63696)

Yen 01-25-2006 05:20 AM

Reading from the gani's viewer?
 
By default, a gani script shown by a player will access that player's attributes.
Is there a way to make it access the attributes of the person who's VIEWING the gani?

lordspawn 02-09-2006 06:31 AM

Couldn't you write a script so that player1 does something such as touch player2 and it will set player2's gani to the one desired?

ApothiX 02-09-2006 01:30 PM

Quote:

Originally Posted by lordspawn
Couldn't you write a script so that player1 does something such as touch player2 and it will set player2's gani to the one desired?

Huh?

jake13jake 02-11-2006 08:40 PM

Quote:

Originally Posted by Yen
By default, a gani script shown by a player will access that player's attributes.
Is there a way to make it access the attributes of the person who's VIEWING the gani?

you can't do it within the gani, you'd have to access the attributes by triggering the server, and then finding the player that's viewing. Two possible ways: detecting the viewing player, and then having the owner of the gani trigger serverside OR the viewing player detecting seeing the gani and then set their own attributes. The latter would be better because it can all be done clientside or serverside; more flexible.

Also, Yen, come back to Classic :(, where I have the lonely job of being the only active scripter.

Yen 02-12-2006 08:30 PM

Quote:

Originally Posted by jake13jake
Also, Yen, come back to Classic :(, where I have the lonely job of being the only active scripter.


o-o Holy crap
I forgot I worked there


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

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