Graal Forums  

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

Showing results 1 to 25 of 499
Search took 0.01 seconds.
Search: Posts Made By: Tolnaftate2004
Forum: NPC Scripting 06-01-2012, 07:56 PM
Replies: 6
Views: 1,140
Posted By Tolnaftate2004
Just set some property of the npc (say,...

Just set some property of the npc (say, player_hp) by doing temp.npc.player_hp = player.clientr.hp; when creating the npc (i.e., below putnpc2). Then, when you want to display the number, just use...
Forum: NPC Scripting 06-01-2012, 07:09 PM
Replies: 6
Views: 1,140
Posted By Tolnaftate2004
There's no player within the scope of onCreated...

There's no player within the scope of onCreated on the server-side.

If there is a player in the scope that is creating the NPC, then you can do e.g., temp.npc.chat = player.clientr.hp;.
Forum: Code Gallery 06-01-2012, 03:34 AM
Replies: 19
Views: 5,272
Posted By Tolnaftate2004
http://forums.graalonline.com/forums/showthread.ph...

http://forums.graalonline.com/forums/showthread.php?t=79671 :confused:

Also with regards to chaining, I've been hanging on to this because I wanted to make it more extensible (like jQuery), but...
Forum: NPC Scripting 05-15-2012, 06:07 PM
Replies: 89
Views: 18,324
Posted By Tolnaftate2004
x' = x*h/z; h generally of your choosing. ...

x' = x*h/z; h generally of your choosing.

hth

e:
x = orthogonal horizontal coordinate
x' = projected horizontal coordinate
h = "camera height"
z = distance along the axis that comes through...
Forum: NPC Scripting 04-10-2012, 06:24 PM
Replies: 29
Views: 3,571
Posted By Tolnaftate2004
It's the shape, 1 => rectangle. There are no...

It's the shape, 1 => rectangle.
There are no other shapes defined afaik.
Forum: NPC Scripting 03-27-2012, 10:34 PM
Replies: 22
Views: 3,979
Posted By Tolnaftate2004
Oh boy function onCreated() { ...

Oh boy

function onCreated() {
this.trigger("YourTerribleCodeFixed", 0, this.maxlooplimit*2);
}

function onYourTerribleCodeFixed(start, total) {
temp.sub = min(total, this.maxlooplimit);...
Forum: Tech Support 03-19-2012, 06:24 PM
Replies: 16
Views: 1,934
Posted By Tolnaftate2004
D.) player.bombs -= 1; You may or may --^ ...

D.) player.bombs -= 1;
You may or may --^
not be able to see the bold here.
Forum: NPC Scripting 03-12-2012, 02:38 AM
Replies: 32
Views: 3,932
Posted By Tolnaftate2004
The details...

The details (http://forums.graalonline.com/forums/showthread.php?t=134264733)
Forum: New Scripting Engine (GS2) 03-05-2012, 11:21 PM
Replies: 25
Views: 5,150
Posted By Tolnaftate2004
Here...

Here (http://jsfiddle.net/WCMps/3/embedded/result/) ya go.

e: Just check my sig. I keep updating this post, and eventually I won't be able to anymore.
Forum: New Scripting Engine (GS2) 03-04-2012, 11:21 PM
Replies: 59
Views: 14,050
Posted By Tolnaftate2004
Agreed.

Agreed.
Forum: New Scripting Engine (GS2) 03-04-2012, 10:59 PM
Replies: 59
Views: 14,050
Posted By Tolnaftate2004
Really, it should be case labels. e:...

Really, it should be case labels.

e: expected incapsula, was pleasantly surprised
Forum: New Scripting Engine (GS2) 02-29-2012, 07:15 PM
Replies: 25
Views: 5,150
Posted By Tolnaftate2004
Hate to burst your bubble but you're not going to...

Hate to burst your bubble but you're not going to find a way to replace GS-style arrays with a regex.

First thing I tried of course was
a = {1,2,{3,4}};
which broke it.

There's gonna need a...
Forum: New Scripting Engine (GS2) 02-27-2012, 07:39 PM
Replies: 25
Views: 5,150
Posted By Tolnaftate2004
JavaScript uses for (member in object) { ... }...

JavaScript uses for (member in object) { ... } which is like for (member: object.getvarnames()) { ... }. That's probably why it's not working.

e: Good lord is this a horror.

e2:...
Forum: Feature request 02-21-2012, 07:35 AM
Replies: 7
Views: 6,161
Posted By Tolnaftate2004
Are you drawing any tiles below the transparent...

Are you drawing any tiles below the transparent ones? I don't see any evidence that it's not retaining its transparency from that video...
Forum: NPC Scripting 01-30-2012, 08:31 PM
Replies: 2
Views: 1,265
Posted By Tolnaftate2004
getimgpixel( string image, int x, int y ) I...

getimgpixel( string image, int x, int y )

I suspect it returns { r, g, b, a } or something like that, but I'm not sure.
Forum: NPC Scripting 01-25-2012, 11:58 PM
Replies: 45
Views: 7,714
Posted By Tolnaftate2004
What happens if you give it a name?

What happens if you give it a name?
Forum: NPC Scripting 01-15-2012, 08:56 PM
Replies: 28
Views: 6,105
Posted By Tolnaftate2004
All of these things with a single trigger.

All of these things with a single trigger.
Forum: NPC Scripting 01-13-2012, 07:14 PM
Replies: 7
Views: 1,434
Posted By Tolnaftate2004
Watch your +s and -s player.dir =...

Watch your +s and -s

player.dir = getdir((Joystick_Pointer.x + 10) - (Joystick_Controller.x + 35), (Joystick_Pointer.y + 10) - (Joystick_Controller.y + 35));

is not the same as

player.dir...
Forum: NPC Scripting 01-10-2012, 11:38 PM
Replies: 6
Views: 1,262
Posted By Tolnaftate2004
This is going to hide for everyone until they...

This is going to hide for everyone until they re-enter the level.
Forum: NPC Scripting 01-09-2012, 11:59 PM
Replies: 4
Views: 1,266
Posted By Tolnaftate2004
You can also replace "\n" with "\r" if you REALLY...

You can also replace "\n" with "\r" if you REALLY want to echo.
Forum: NPC Scripting 01-05-2012, 07:24 PM
Replies: 5
Views: 1,329
Posted By Tolnaftate2004
Give temp.newpos =...

Give temp.newpos = temp.i/temp.lennew*(-temp.distx); (as fp4 described) a whirl for us.
Forum: NPC Scripting 01-05-2012, 05:31 AM
Replies: 19
Views: 3,265
Posted By Tolnaftate2004
Modification of tiles or board, and updateboard...

Modification of tiles or board, and updateboard clientside should be temporary.
Forum: NPC Scripting 01-04-2012, 08:40 PM
Replies: 6
Views: 1,584
Posted By Tolnaftate2004
You're going to have to give us more. The snippet...

You're going to have to give us more. The snippet you've shown works, and it's really hard to debug code that we can't see.
Forum: NPC Scripting 01-04-2012, 07:48 PM
Replies: 6
Views: 1,584
Posted By Tolnaftate2004
Is this the entire code? Because it works fine...

Is this the entire code? Because it works fine for me.

I'd wager a guess that it's not, and that you're doing something between catching the mousedown event and the assignment that is changing the...
Forum: Gani Construction 01-03-2012, 11:18 PM
Replies: 7
Views: 2,105
Posted By Tolnaftate2004
0.01 is faster than your monitor's frame rate...

0.01 is faster than your monitor's frame rate (probably).

Use blurring and no-one will be able to tell the difference.
Showing results 1 to 25 of 499

 
Forum Jump

All times are GMT +2. The time now is 04:00 AM.


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