Forum: Code Gallery
03-24-2008, 09:02 PM
|
|
Replies: 32
Views: 7,097
Who can't open a .doc file?
If you're on...
Who can't open a .doc file?
If you're on Windows without Word, MS Works will open it.
If you're on a Mac without Word, there's always NeoOffice.
If you're on a Unix system, you have OpenOffice.
...
|
Forum: Code Gallery
03-24-2008, 12:52 PM
|
|
Replies: 24
Views: 7,234
|
Forum: Code Gallery
03-24-2008, 11:37 AM
|
|
Replies: 24
Views: 7,234
Question: should eval be able to access temp....
Question: should eval be able to access temp. variables declared within the scope that eval is called? e.g.,
temp.a_variable = 74;
eval("this.ihaveadream=temp.a_variable+1");
Otherwise, it...
|
Forum: Code Gallery
03-24-2008, 09:12 AM
|
|
Replies: 24
Views: 7,234
|
Forum: Code Gallery
03-24-2008, 05:33 AM
|
|
Replies: 24
Views: 7,234
function: eval
eval()
eval(str) - evaluates/executes a string of GScript.
You asked for it and you got it. eval is a function available in other scripting languages. Its only parameter is a string of code to...
|
Forum: NPC Scripting
03-24-2008, 04:29 AM
|
|
Replies: 29
Views: 4,847
|
Forum: Code Gallery
03-23-2008, 01:42 AM
|
|
Replies: 8
Views: 2,334
He means {{int,int, ...},{str,str,...}}.
And...
He means {{int,int, ...},{str,str,...}}.
And you can certainly use for (needle: haystack) with a multidimensional array.
|
Forum: Birthday Forum
03-22-2008, 09:35 PM
|
|
Replies: 14
Views: 1,376
|
Forum: NPC Scripting
03-22-2008, 09:33 PM
|
|
Replies: 29
Views: 4,847
I've updated the script above:
added...
I've updated the script above:
added protected variables, you can keep eval from modifying some variables by adding to this.
added the option to disable the use of assignment operator (won't...
|
Forum: NPC Scripting
03-22-2008, 06:10 AM
|
|
Replies: 29
Views: 4,847
|
Forum: NPC Scripting
03-22-2008, 05:54 AM
|
|
Replies: 29
Views: 4,847
Attached is a script for eval() for doing math....
Attached is a script for eval() for doing math. It can handle almost any gscript operator right now ('new' and ?: I have omitted, and 'in' because this does not yet support arrays for all I know). It...
|
Forum: NPC Scripting
03-22-2008, 01:48 AM
|
|
Replies: 28
Views: 5,003
This is for JavaScript/ActionScript...
This is for JavaScript/ActionScript compatibility. `var` in either of these is akin to temp. and static is a `function` qualifier. We don't need it, unless we want to use ActionScript 3. Seems good...
|
Forum: NPC Scripting
03-21-2008, 03:32 AM
|
|
Replies: 28
Views: 5,003
|
Forum: NPC Scripting
03-21-2008, 01:45 AM
|
|
Replies: 29
Views: 4,847
|
Forum: NPC Scripting
03-20-2008, 09:57 AM
|
|
Replies: 29
Views: 4,847
I don't see why we need to parse a string if...
I don't see why we need to parse a string if we're doing simple math...
text*15 or float(text)*15 should suffice, but if there's something I'm missing here, might I recommend this script...
|
Forum: Guild Life
03-19-2008, 06:29 AM
|
|
Replies: 37
Views: 5,247
|
Forum: Playerworld Administration Team
03-18-2008, 08:24 PM
|
|
Replies: 8
Views: 13,557
|
Forum: NPC Scripting
03-18-2008, 12:58 AM
|
|
Replies: 8
Views: 2,855
|
Forum: Code Gallery
03-17-2008, 01:50 AM
|
|
Replies: 2
Views: 1,766
|
Forum: Future Improvements
03-17-2008, 01:16 AM
|
|
Replies: 10
Views: 1,612
It was just an example; I see that I made at...
It was just an example; I see that I made at least one mistake. I have a bad habit of writing code in the reply box, going to test it, changing it around and never replacing it in the reply box. :P
|
Forum: Future Improvements
03-17-2008, 01:13 AM
|
|
Replies: 12
Views: 1,378
|
Forum: Future Improvements
03-17-2008, 01:09 AM
|
|
Replies: 16
Views: 2,376
|
Forum: Code Gallery
03-16-2008, 10:53 PM
|
|
Replies: 31
Views: 9,814
Well done!
Tried with this:
this.a =...
Well done!
Tried with this:
this.a = "this.b";
this.b = 81;
echo(parsetags("<sqrt><sqrt><variable><variable>this.a</variable></variable></sqrt></sqrt>"));
Worked like a charm.
|
Forum: NPC Scripting
03-16-2008, 09:29 PM
|
|
Replies: 11
Views: 2,577
|
Forum: Bug Report
03-16-2008, 09:22 PM
|
|
Replies: 42
Views: 38,109
|