Difference between revisions of "MessageBox Tutorial"

22 bytes removed ,  11:31, 29 August 2007
imported>Haama
(→‎Intro: Now I'm there)
imported>Haama
==Creating Your New Menu==
===In which I try to convince you to use an activator===
This is still being discussed. Feel free to join and share your thoughts and opinions on the Discussion page.
There are 4 mediums you could use for the script: Quest, Activator, Token, and Spell. Each has their own advantages and disadvantages, but it's suggested you use an activator:▼
 
▲There are 4 mediums you could use for the script: Quest, Activator, TokenTokens (Object scripts on items in the player's possession), and SpellSpells (or Magic Effect scripts). Each has their own advantages and disadvantages, but it's suggested you use an activator:
* Activators can keep persistent variables that other scripts can use (unlike tokens and spells)
** Quest variables can be reset by using 'StartQuest' when the quest is already running (and there are reports of quests requiring resetting if a variable is added in a mod's update).
* There's a clear beginning to it ([[OnActivate]], unlike quests)
* It's easy and fast to start (harder for a quest)
* Tokens can randomly cause CTDs when removed (unless you wait for 5 frames first, and may cause [[Category:Tidbits#Tokens_lead_to_crashes.3F|other problems]] upon removal)
* AndSpells it'sare simply easierdifficult to manage than a spell
** Spells will only run in GameMode
** There will always be time inbetween menus, in which the spell's duration will decrease. Giving the spell a long duration can work, but is not a guarantee for multi-layered menus.
 
Disadvantages of an activator:
* They need to be [[Loaded]], or moved to the player's cell, to use effectively
** TheyThis canrequires runextra evencoding, whento notkeep them around the player, (thoughand notmove forthem longback enough to usewhen effectively)finished
* They can run even when not around the player (though only for a single frame, but enough to cause problems)
** This requires a bit of extra coding, to prevent them from doing something unexpected
 
[[MessageBox Tutorial#Multiple Menus in a Spell Script|Multiple Menus in a Spell Script]]
The only disadvantage is that activators need to be in the same cell as the player (loaded in memory) to run, so you will have to remember to add a few lines to move the activator to the player when starting and away when finished. Of course, with some work, quests and tokens can be made to do the same, but I don't find them quite as easy to set up.
 
 
===What you'll need===
Anonymous user