Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-23-2010, 08:47 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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?
Reply With Quote
  #2  
Old 02-23-2010, 08:53 PM
Immolate Immolate is offline
Indigo
Join Date: Dec 2009
Posts: 322
Immolate is on a distinguished road
Quote:
Originally Posted by DustyPorViva View Post
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
Reply With Quote
  #3  
Old 02-23-2010, 08:57 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Immolate View Post
I support this but bitflags are extremely easy to work with
Not as simple as just flags :P
Reply With Quote
  #4  
Old 02-23-2010, 09:05 PM
Immolate Immolate is offline
Indigo
Join Date: Dec 2009
Posts: 322
Immolate is on a distinguished road
Quote:
Originally Posted by DustyPorViva View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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