Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   player.features / player.stats (https://forums.graalonline.com/forums/showthread.php?t=134258148)

DustyPorViva 02-23-2010 08:47 PM

player.features / player.stats
 
Returns the value of the player's enablefeatures and showstats.

This would allow scripters to make scripts a little more backwards compatible with default systems(knowing when they can pause/use their map and so on).

However... I suppose that's not the easiest thing to work with since it's bit-wise. So suggestions are welcome.

On that note, do enablemap()/enablepause() and such simple alter the above, or do they work on their own flags?

Immolate 02-23-2010 08:53 PM

Quote:

Originally Posted by DustyPorViva (Post 1558232)
Returns the value of the player's enablefeatures and showstats.

This would allow scripters to make scripts a little more backwards compatible with default systems(knowing when they can pause/use their map and so on).

However... I suppose that's not the easiest thing to work with since it's bit-wise. So suggestions are welcome.

On that note, do enablemap()/enablepause() and such simple alter the above, or do they work on their own flags?

I support this but bitflags are extremely easy to work with :oo:

DustyPorViva 02-23-2010 08:57 PM

Quote:

Originally Posted by Immolate (Post 1558233)
I support this but bitflags are extremely easy to work with :oo:

Not as simple as just flags :P

Immolate 02-23-2010 09:05 PM

Quote:

Originally Posted by DustyPorViva (Post 1558234)
Not as simple as just flags :P

PHP Code:

function onCreated()
{
  
shared.setconstants_showstats();
  
  if (
player.stats & (STATS_BOMBS STATS_ARROWS))
  {
    
DoStuff();
  }


It also looks a lot cleaner and is extremely straight forward.


All times are GMT +2. The time now is 03:18 AM.

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