Regular code review, fixed some ugly parts, added some logic.
Fixed an item usage error when no actions are present.
Simplified useItem function.
Added a new setting for preloading.
Rewrote dialogue init function, to make use of the new syntax.
Lowered overall line lengths by renaming settings & methods vars.