Page 1 of 1

Mog House Intro

Posted: Sat Dec 22, 2012 6:26 pm
by PrBlahBlahtson
Currently, the Mog House intro is handled by checking for a Character Variable, and giving the entire intro if the variable isn't set. This leads to lots of entries in char_vars. Out of curiosity, would it make more sense to set the variable on creation, and then set it to 0 after the intro, thus removing it from the table? It'd just be a matter of changing /global/player.lua to set the var on character creation and /zones/Residential_Area/Moogle.lua to handle it differently.

The obvious drawback is that all existing players will get a new Moogle cutscene, unless the variable is manually removed from the table, or a new variable is used.

Trivial thought, but it comes back and plagues me once in a while.

Edit: st -> set

Re: Mog House Intro

Posted: Sat Dec 22, 2012 9:20 pm
by bluekirby0
It should be done that way. Keep the same variable so that existing tables are cleaned up automatically. It will be a minor inconvenience to current players but it will only happen once per character at least. I do preach in the quest writing guide to always zero out your variables when you are done with them, and this shouldn't be an exception.