Forum: NPC Scripting
06-01-2012, 07:56 PM
|
Replies: 6
Views: 1,140
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
|
Forum: Code Gallery
06-01-2012, 03:34 AM
|
Replies: 19
Views: 5,272
|
Forum: NPC Scripting
05-15-2012, 06:07 PM
|
Replies: 89
Views: 18,324
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
|
Forum: NPC Scripting
03-27-2012, 10:34 PM
|
Replies: 22
Views: 3,979
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
|
Forum: NPC Scripting
03-12-2012, 02:38 AM
|
Replies: 32
Views: 3,932
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
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
|
Forum: New Scripting Engine (GS2)
03-04-2012, 10:59 PM
|
Replies: 59
Views: 14,050
|
Forum: New Scripting Engine (GS2)
02-29-2012, 07:15 PM
|
Replies: 25
Views: 5,150
|
Forum: New Scripting Engine (GS2)
02-27-2012, 07:39 PM
|
Replies: 25
Views: 5,150
|
Forum: Feature request
02-21-2012, 07:35 AM
|
Replies: 7
Views: 6,161
|
Forum: NPC Scripting
01-30-2012, 08:31 PM
|
Replies: 2
Views: 1,265
|
Forum: NPC Scripting
01-25-2012, 11:58 PM
|
Replies: 45
Views: 7,714
|
Forum: NPC Scripting
01-15-2012, 08:56 PM
|
Replies: 28
Views: 6,105
|
Forum: NPC Scripting
01-13-2012, 07:14 PM
|
Replies: 7
Views: 1,434
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
|
Forum: NPC Scripting
01-09-2012, 11:59 PM
|
Replies: 4
Views: 1,266
|
Forum: NPC Scripting
01-05-2012, 07:24 PM
|
Replies: 5
Views: 1,329
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
|
Forum: NPC Scripting
01-04-2012, 08:40 PM
|
Replies: 6
Views: 1,584
|
Forum: NPC Scripting
01-04-2012, 07:48 PM
|
Replies: 6
Views: 1,584
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
|