Welcome to the Achaea Forums! Please be sure to read the Forum Rules.
HTML5 Client Questions and Such
Comments
-
If that's supposed to be JavaScript, and N is the length of the array you're iterating over, that should be either for(var i = 0; i < N; i++) or for(var i = 0; i <= N-1; i++). If you include N, or even worse N+1, you're going to retrieve elements that don't exist, and unless your code explicitly handles undefined you'll end up with errors thrown.
0 -
Kiskan said:And from what I see, Lua is not "totally undoable", but it definitely throws me (though not as much as what I saw of JS, which made me nope nope nope out of the gate).
My (almost totally uninformed) opinion is that well written - and, perhaps, this is where things start to fall down since the majority of players write the most atrociously formatted code - Lua is among the easiest of any code to read, because the syntax it uses is the closest to actual English.
0 -
Antonius said:If that's supposed to be JavaScript, and N is the length of the array you're iterating over, that should be either for(var i = 0; i < N; i++) or for(var i = 0; i <= N-1; i++). If you include N, or even worse N+1, you're going to retrieve elements that don't exist, and unless your code explicitly handles undefined you'll end up with errors thrown.0
-
Wait, no, I just meant that i<=N is better than i < N+1 when he's doing lua for loops where N=5 is 1-5 instead of 0-4.
I probably should avoid things like this at 3am. Bleh.0 -
-
For anyone wondering the same, this event seems bugged, I could not make it work, even after reading all their help files.
Similar trigger could be achieved through script - add this to onGMCP function.
args.gmcp_args.name == 'prone' - you can put any affliction name here// Place any code here you'd like to run when a GMCP message is received// - The GMCP message is received as "args.gmcp_method" and "args.gmcp_args"if (args.gmcp_method == 'Char.Afflictions.Add' && args.gmcp_args.name == 'prone') {display_notice('I AM PRONE');}0 -
Hi, Cromm, whenever i try loading Achaea.com on chrome i get a message --- That page doesn't seem to exist.0
Sign In to Comment.
Hail, Stranger!
Categories
- 6K All Categories
- 3K Everything Achaea
- 1.5K North of Thera
- 21 Archives of the Terraformer
- 246 The Matsuhama Arena
- 873 The Golden Dais of Creation
- 283 The Scarlattan Theatre
- 145 The Blank Canvas
- 1.9K Getting Help
- 392 General Questions
- 251 Quick Class Questions
- 1.3K Tech Support
- 299 Client Help
- 458 Curing Systems and Scripts
- 829 Off-Topic
- 250 The Wander Inn
- 579 The Universal Membrane
- 285 Class Discussions
- 285 Individual Class Sections
- 20 Alchemist
- 8 Apostate
- 29 Blademaster
- 9 Depthswalker
- 12 Druid
- 4 Infernal
- 20 Jester
- 19 Magi
- 31 Monk
- 10 Occultist
- 7 Paladin
- 7 Priest
- 28 Runewarden
- 18 Sentinel
- 26 Serpent
- 19 Shaman
- 9 Sylvan