Graal Forums  

Go Back   Graal Forums > Search Forums
FAQ Members List Calendar Today's Posts

Showing results 401 to 425 of 499
Search took 0.01 seconds; generated 83 minute(s) ago.
Search: Posts Made By: Tolnaftate2004
Forum: New Scripting Engine (GS2) 12-01-2006, 11:47 PM
Replies: 6
Views: 1,503
Posted By Tolnaftate2004
temp.a = "abc123"; temp.a @= 0; temp.a @= 1; ...

temp.a = "abc123";
temp.a @= 0;
temp.a @= 1;
echo(temp.a);
Forum: New Scripting Engine (GS2) 12-01-2006, 03:25 AM
Replies: 4
Views: 1,499
Posted By Tolnaftate2004
You're only passing one argument... ...

You're only passing one argument...
(@temp.func)(1,2,3);
It's a variable function name, and as such the parameters are sent just like they would in any other function.
Forum: Graphic Design 11-28-2006, 06:18 AM
Replies: 31
Views: 4,525
Posted By Tolnaftate2004
Looks like snow.

Looks like snow.
Forum: New Scripting Engine (GS2) 11-20-2006, 12:40 AM
Replies: 2
Views: 1,331
Posted By Tolnaftate2004
Try echoing this.name in the npc. I would assume...

Try echoing this.name in the npc. I would assume that it always has the level name there (not the gmap).
You probably don't need to be warping to a gmap, anyway...
Forum: Future Improvements 11-07-2006, 12:49 AM
Replies: 1
Views: 1,154
Posted By Tolnaftate2004
It could be scripted quite easily, any negative...

It could be scripted quite easily, any negative number shifted right once becomes positive, with which you can just use the normal shift operator.
Forum: New Scripting Engine (GS2) 11-06-2006, 08:05 PM
Replies: 19
Views: 3,708
Posted By Tolnaftate2004
There are 32 bits. I usually read binary...

There are 32 bits.
I usually read binary backwards. The bit on the end is 1 (2^0). The second to last is 2 (2^1). The one before that is 4 (2^2). Then 8 (2^3), 16 (2^4), 32 (2^5), ... etc. You...
Forum: New Scripting Engine (GS2) 11-05-2006, 11:01 PM
Replies: 19
Views: 3,708
Posted By Tolnaftate2004
In addition, ... | (or) var_a = 7; // or...

In addition, ...
| (or)

var_a = 7; // or in binary, 000....0111
var_b = 14; // or in binary, 000....1110
// in the bit in each position becomes 1 if either bits from either variable are 1....
Forum: New Scripting Engine (GS2) 11-05-2006, 10:49 PM
Replies: 19
Views: 3,708
Posted By Tolnaftate2004
Uhhhh xor does not act like you think it does. ...

Uhhhh xor does not act like you think it does.


var_a = 1; // or in binary, 000......0001
var_b = 2; // or in binary, 000......0010
var_c = var_a xor var_b; // only where one of the bits from...
Forum: New Scripting Engine (GS2) 10-26-2006, 09:32 PM
Replies: 11
Views: 2,892
Posted By Tolnaftate2004
We're assuming that there are multiple items.

We're assuming that there are multiple items.
Forum: New Scripting Engine (GS2) 10-19-2006, 09:33 PM
Replies: 11
Views: 2,892
Posted By Tolnaftate2004
Same idea. But yes, very efficient nonetheless.

Same idea. But yes, very efficient nonetheless.
Forum: New Scripting Engine (GS2) 10-19-2006, 09:25 PM
Replies: 11
Views: 2,892
Posted By Tolnaftate2004
No. Definitely No. B. If you have >1...

No. Definitely

No.

B.
If you have >1 weapon all joining the same class (and I'm assuming there's more than one function in that class), it is less efficient to load each of those weapons with...
Forum: Code Gallery 10-12-2006, 12:04 AM
Replies: 20
Views: 6,577
Posted By Tolnaftate2004
it's not case default: in switch, it's just...

it's not case default: in switch, it's just default:
also, it's not evaluating a condition, it's more reporting the value of a variable.
Forum: Code Gallery 10-11-2006, 06:37 AM
Replies: 20
Views: 6,577
Posted By Tolnaftate2004
// for program execution for (needle: haystack)...

// for program execution
for (needle: haystack)
do { ... } while(condition);
switch (variable)
case value:
default:

// complex npc operations:
...
echo( string ) outputs 'string' to...
Forum: Tech Support 10-09-2006, 10:28 PM
Replies: 19
Views: 2,719
Posted By Tolnaftate2004
Uhhhhhhhh "English" letters are in fact Latin...

Uhhhhhhhh "English" letters are in fact Latin letters. And our "English" numbers are in fact Arabic numerals.
Forum: NPC Scripting 09-29-2006, 06:01 PM
Replies: 10
Views: 2,751
Posted By Tolnaftate2004
See Ex. 1. See Ex. 2. You are wrong.

See Ex. 1.

See Ex. 2.

You are wrong.
Forum: NPC Scripting 09-26-2006, 06:40 PM
Replies: 10
Views: 2,751
Posted By Tolnaftate2004
Compare: Old GraalScript if (created) { ...

Compare:
Old GraalScript

if (created) {
i=50;
test();
message #v(i);
}
function test() {
i=30;
Forum: NPC Scripting 09-21-2006, 06:14 PM
Replies: 17
Views: 4,559
Posted By Tolnaftate2004
Really? Because MD5 even stands for...

Really? Because MD5 even stands for Message-Digest algorithm 5...
Forum: NPC Scripting 09-18-2006, 08:00 PM
Replies: 27
Views: 4,167
Posted By Tolnaftate2004
Just realized, you are right, my mistake.

Just realized, you are right, my mistake.
Forum: NPC Scripting 09-18-2006, 07:07 PM
Replies: 27
Views: 4,167
Posted By Tolnaftate2004
One could do: temp.keys = ""; for...

One could do:
temp.keys = "";
for (temp.i=0;temp.i<128;temp.i++) temp.keys.add(temp.i);

for (temp.i=0;temp.i<128;temp.i++) {
temp.key = int(random(0,128-.001));
...
Forum: Code Gallery 09-13-2006, 07:29 PM
Replies: 2
Views: 1,867
Posted By Tolnaftate2004
levelexists( string level )

levelexists( string level )
Forum: NPC Scripting 09-12-2006, 10:51 PM
Replies: 4
Views: 2,058
Posted By Tolnaftate2004
GuiPopUpMenuCtrl

GuiPopUpMenuCtrl
Forum: New Scripting Engine (GS2) 09-04-2006, 05:19 PM
Replies: 13
Views: 1,969
Posted By Tolnaftate2004
Works for me. If you're using that code, you may...

Works for me. If you're using that code, you may want to give the variables a prefix. That could be why it's messing up.
Forum: New Scripting Engine (GS2) 09-03-2006, 05:35 PM
Replies: 13
Views: 1,969
Posted By Tolnaftate2004
font = "verdana"; style = ""; fontsize =...

font = "verdana";
style = "";
fontsize = $pref::graal::defaultfontsize/gettextheight(1,font,style);
tokens = wraptext2(40,fontsize," ",font @ "@" @ style @ "@" @ player.chat);
This will most...
Forum: NPC Scripting 08-30-2006, 07:50 PM
Replies: 7
Views: 2,273
Posted By Tolnaftate2004
This is theory, may not work. Pardon my bad...

This is theory, may not work. Pardon my bad drawing.

http://img48.imageshack.us/img48/5450/rotateandstretchqz6.png

1. Let's say you have you image and points set up like this (this method...
Forum: NPC Scripting 08-29-2006, 10:09 PM
Replies: 6
Views: 2,281
Posted By Tolnaftate2004
There are ways to work around having to use...

There are ways to work around having to use showtext.
controlling script:
//#CLIENTSIDE
function onCreated() {
this.imgs = new [5];
temp.texts = {
"I am testing.",
...
Showing results 401 to 425 of 499

 
Forum Jump

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


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