2.3.x functions replaced
2.3.x |
3.0 |
Notes |
msg_print(colour, msg) or msg_print(msg) |
message(colour, msg) or message(msg) |
msg_print now non-working |
2.3.x functions removed
3.0 new functions
Random useful notes
- Functions should be declared at the top of a file, e.g.:
declare_global_constants { "feat_adjacent" } - The old
add_hooks { [HOOK_FOO] = function() end end, }
has been replaced by
hooks(hook.FOO, function() end )
add_hook_script(HOOK_FOO, "function_name", "function_name") still works with hook.FOO instead, but there is not much use to use this instead of hook{}, except for very specific cases, which if you can not imagine, does not concern you
Chatter
TheFalcon: This isn't meant to be a comprehensive API list or anything. (It doesn't have any dellusions of grandeur quite yet...). Just a list of useful stuff. Mainly for me to refer to if I forget something. If you want to suggest stuff then go ahead, and if there are any mistakes, please feel free to correct them.
DarkGod: add_hook_script still works
ToME Wiki