webdove
March 24th, 2021, 02:26
I found Celestian’s DMGX code for 2E. I unpacked 2E.pak to search for references to DMGX with notepad++. I immediately noticed variable naming conventions involving a prefix like “n” or “a”. I assumed they were meant to represent some aspect of the variable, so I searched in refdoc and the wiki, but I could find no coding style documentation for FGU code. Is that written down somewhere?
Ah. I found Moon's comment on variable naming at https://www.fantasygrounds.com/forums/showthread.php?43010-stringcontrol-questions .
I imagine that I will need to extract a small part of Celestion's 2E ruleset to build my 5E extension.
I wrote lots of lisp code many moons ago, so there will be lots to learn. Do I start with one of the "hear is an easy way to write an extension" explanations? I imagine the complexities will involve the order of instantiation and invocation of my manager_action_damage.lua code relative to the 5E manager_action_damage.lua code and I suspect that the specifics of that won't necessarily be covered in the "writing an extension" intros.
Ah. I found Moon's comment on variable naming at https://www.fantasygrounds.com/forums/showthread.php?43010-stringcontrol-questions .
I imagine that I will need to extract a small part of Celestion's 2E ruleset to build my 5E extension.
I wrote lots of lisp code many moons ago, so there will be lots to learn. Do I start with one of the "hear is an easy way to write an extension" explanations? I imagine the complexities will involve the order of instantiation and invocation of my manager_action_damage.lua code relative to the 5E manager_action_damage.lua code and I suspect that the specifics of that won't necessarily be covered in the "writing an extension" intros.