Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-05-2007, 08:00 AM
Sum41Freeeeek Sum41Freeeeek is offline
Future Coder
Join Date: Feb 2004
Location: New York
Posts: 376
Sum41Freeeeek is on a distinguished road
Send a message via AIM to Sum41Freeeeek
Disabling nicknames?

I have a huge spar level on Era where people are seated around the arena, but their nicknames get in the way. I know you can easily disable nicknames in the options but I was wondering how to do this via script, can anyone help me out?
__________________
Frankie Cassini: ex-Era LAT
Quote:
Originally Posted by brakk View Post
omg just go to your room and draw a pony then

**** the chicken wings!
Reply With Quote
  #2  
Old 07-05-2007, 08:11 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Could temporarily set enablefeatures to exclude nicknames...

PHP Code:
Value      Description
1     M key 
(map)
2     P key (pause)
4     Q key (weapon select)
8     R key (show ratings)
0x10     S+A key combination for dropping items
0x20     S
+D key combination for switching weapons
0x40     TAB key 
(if disabled then you cannot switch to the chat field with TAB)
0x80     Display of chat text
0x100     Display of the hearts over player heads
0x200     Display of nicknames
0x400     Toall
/PM-icons on the minimap
0x800     Right
-click on players opens their profile
0x1000     Emoticons 
(disable it if you want to do other stuff with control+keys)
0x2000     Alt+for making snapshots (deprecated)
0x4000     Alt+8/for zooming (deprecated)
0x8000     Allows F2 output (savelog()/echo())
allfeatures     All of the previously stated feature flags enabled 
So enablefeatures(allfeatures - 0x200);

You'll just have to find out what the current enablefeatures is set at.
Reply With Quote
  #3  
Old 07-05-2007, 08:21 AM
Sum41Freeeeek Sum41Freeeeek is offline
Future Coder
Join Date: Feb 2004
Location: New York
Posts: 376
Sum41Freeeeek is on a distinguished road
Send a message via AIM to Sum41Freeeeek
that would just do it in the level, right?
I think I understand, thanks.
__________________
Frankie Cassini: ex-Era LAT
Quote:
Originally Posted by brakk View Post
omg just go to your room and draw a pony then

**** the chicken wings!
Reply With Quote
  #4  
Old 07-05-2007, 09:45 AM
TheJames TheJames is offline
Atrius Manager
TheJames's Avatar
Join Date: Dec 2004
Posts: 581
TheJames can only hope to improve
//#CLIENTSIDE
function onCreated() onPlayerEnters();{
enablefeatures(allfeatures - 0x200);
}

Thats GS2 Command, I suck at GS2. So I don't know if its right?

GS1

//#CLIENTSIDE
if (created||playerenters){
enablefeatures(allfeatures - 0x200);
}

Then a command for the level adjacent to it for it leaving the level. So It enables the nickname text again. OR Just a command in a script for that specific level, disabling the nicknames/text.
__________________
Contact me on Skype: "skype.sam.lorenz"

James,
Manager of Atrius
Reply With Quote
  #5  
Old 07-05-2007, 11:31 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
You should figure out when the player leaves the level, and then set it to normal.

Besides that, this is fine:
PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
enablefeaturesallfeatures 0x200 );

__________________
Reply With Quote
  #6  
Old 07-06-2007, 01:45 AM
Sum41Freeeeek Sum41Freeeeek is offline
Future Coder
Join Date: Feb 2004
Location: New York
Posts: 376
Sum41Freeeeek is on a distinguished road
Send a message via AIM to Sum41Freeeeek
So, in the spar arena, I would put

PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
enablefeaturesallfeatures 0x200 );

then at unstick me, or whereever they'll be warped out, i'll put

PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
enablefeatures0x200 );

this way nicknames are disabled in the arena, but when you get warped to unstick me it enables.
I don't want to use enablefeature( allfeatures); because that might interfere with other stuff on Era, such as disabling S + A and S + D combinations for dropping/switching items.
__________________
Frankie Cassini: ex-Era LAT
Quote:
Originally Posted by brakk View Post
omg just go to your room and draw a pony then

**** the chicken wings!
Reply With Quote
  #7  
Old 07-06-2007, 02:02 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
When you use enablefeatures( 0x200); thats the only feature that is enabled.
Reply With Quote
  #8  
Old 07-06-2007, 02:38 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Sum41Freeeeek View Post
So, in the spar arena, I would put

PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
enablefeaturesallfeatures 0x200 );

then at unstick me, or whereever they'll be warped out, i'll put

PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
enablefeatures0x200 );

this way nicknames are disabled in the arena, but when you get warped to unstick me it enables.
I don't want to use enablefeature( allfeatures); because that might interfere with other stuff on Era, such as disabling S + A and S + D combinations for dropping/switching items.
You need to figure out where Era is setting these stats.

More than likely in some system NPC, so just get one of the NATs to change this for you. Because if you do it in your level, it's going to enable everything except names.

If you do it outside, you're going to enable NOTHING except names.

So really, you're stuck.
I'd suggest talking to the NATs, they can do this very easily.
__________________
Reply With Quote
  #9  
Old 07-06-2007, 04:01 AM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Frankie, if you use that script things like pause will be enabled again.
Reply With Quote
  #10  
Old 07-06-2007, 07:09 AM
Sum41Freeeeek Sum41Freeeeek is offline
Future Coder
Join Date: Feb 2004
Location: New York
Posts: 376
Sum41Freeeeek is on a distinguished road
Send a message via AIM to Sum41Freeeeek
yeah, that's what I'm worried about.
snake says he added something a long time ago to disable certain things in levels, i'll have kinetaro or someone check the system npc.
__________________
Frankie Cassini: ex-Era LAT
Quote:
Originally Posted by brakk View Post
omg just go to your room and draw a pony then

**** the chicken wings!
Reply With Quote
  #11  
Old 07-06-2007, 10:09 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Sum41Freeeeek View Post
yeah, that's what I'm worried about.
snake says he added something a long time ago to disable certain things in levels, i'll have kinetaro or someone check the system npc.
Incase Era has really bad NATs, here's some code they could use:
Weapon/GUI-Script +Features
PHP Code:
//#CLIENTSIDE
function onCreated()
{
  if ( 
player.level.name == "sparlevel.nw" )
  {
    
enablefeaturesallfeatures 0x200 // disable all the other feautres
  
}
  else
  {
    
enablefeaturesallfeatures ); // disable all the other features
  
}
}
function 
onPlayerEnters()
{
  
onCreated();

__________________
Reply With Quote
  #12  
Old 07-06-2007, 10:25 PM
Sum41Freeeeek Sum41Freeeeek is offline
Future Coder
Join Date: Feb 2004
Location: New York
Posts: 376
Sum41Freeeeek is on a distinguished road
Send a message via AIM to Sum41Freeeeek
I think Vulcan put something like that in the -System npc for me, thanks for the help though guys.
__________________
Frankie Cassini: ex-Era LAT
Quote:
Originally Posted by brakk View Post
omg just go to your room and draw a pony then

**** the chicken wings!
Reply With Quote
  #13  
Old 07-09-2007, 04:22 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Yeah, always check with the head of the scripting department (usually the head developer or so) or the Manager (if they have a good enough knowledge of scripting or how it works) before using enablefeatures()/showstats() somewhere.
__________________
Do it with a DON!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:44 AM.


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