Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Showstats Command (https://forums.graalonline.com/forums/showthread.php?t=26618)

royce 03-30-2002 11:11 AM

Showstats Command
 
NPC Code:
showstats bitflag;


Hides part of the stats bar.
1-ASD (Keys)
2-icons
4-rupees
8-bombs
16-arrows
32-hearts
64-alignment points
128-magic points
256-mini-map
512-inventory
1024-player


Is the command showstats bitflag; kind of like a flag, it is stored as true or false?

Python523 03-30-2002 11:33 AM

I thinnk it returns as true if true means it will show only what you put down
like
showstats 1024;
will hide everything but the player
and like
showstats 1024+256;
will show that player and the mini map

royce 03-30-2002 11:54 AM

How would I check to see if it's True or False (Flag Language):D?

Python523 03-30-2002 11:55 AM

You mean like if a certain stat was showing?

royce 03-30-2002 11:58 AM

Kind of like Administration over players, yes your correct.

Bhala 03-30-2002 12:35 PM

Its not a flag, its a command

royce 03-30-2002 12:38 PM

I was comparing it to a flag. A flag is classified as True or False. The command is very similiar.

nyghtGT 03-30-2002 02:51 PM

Quote:

Originally posted by royce
I was comparing it to a flag. A flag is classified as True or False. The command is very similiar.
the command either sets things to on or off by using,

showstats #+#...;

but there is no way to check if certain things are showing ...

SaijinGohan 04-07-2002 05:21 AM

Quote:

Originally posted by Kaimetsu
You could always rig up some elaborate system to keep track of them via arrays if it really mattered.
Its a shame the only arrays I understand are variable arrays. =(

mikepg 04-07-2002 06:05 AM

umm
 
string arrays are just as easy...

you just do
setstring <string name>,<value1>,<value2>,<value3>,...<value n>;

it, you now have a string array.
To edit, insert, or delete part of an array, consult your local commands.rtf :p

royce:
I don't see how you would compare it as a flag...
variables can act like 'flags' in conditional statements (whiles, ifs, ect), but are normally referred to as 'clauses'
If youre asking how to check it as a clause, it's not possible as far as i know.

royce 04-07-2002 08:46 AM

Re: umm
 
Quote:

Originally posted by mikepg
royce:
I don't see how you would compare it as a flag...
variables can act like 'flags' in conditional statements (whiles, ifs, ect), but are normally referred to as 'clauses'
If youre asking how to check it as a clause, it's not possible as far as i know.

I was comparing it to a flag because it's True and False values.


All times are GMT +2. The time now is 11:54 PM.

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