cleared and rewrited shitload of template comments, and added email formatting function
This commit is contained in:
@ -18,19 +18,6 @@ OnDressupChanged
|
||||
*/
|
||||
|
||||
|
||||
//*********************Advanced User Info*******************************
|
||||
|
||||
//--A Note about Functions--
|
||||
//A function that begins with On, such as OnFirstBoot here, can be called from anywhere in any .dic file by using \![raise] or by just sticking OnFunction somewhere. A function that does NOT start with On, however, can be a bit finicky. You can create your own functions all over the place if you want, there's just a difference between OnDoodlebop and Doodlebop, if you get me. See the walkthrough page about coding for more about creating functions.
|
||||
|
||||
//If you're having trouble getting a function of yours to run, like Doodlebop, try changing it to OnDoodlebop and see if that fixes it.
|
||||
//***********************************************************************
|
||||
|
||||
|
||||
//--OnFirstBoot--
|
||||
|
||||
//OnFirstBoot is, as you can probably guess, what happens when your user first boots up your ghost. This will only run the first time they are booted!
|
||||
|
||||
//*********************Advanced User Info*******************************
|
||||
//Because this only runs once and under an odd set of circumstances, it can be hard to test if this function is working properly. Trying to run the entire function using \![raise,OnFirstBoot] will instead bring up your alternate dialogue, so sadly you can't check it that way. You CAN get it to run using \![raise,OnFirstBoot,0] though.
|
||||
|
||||
@ -467,30 +454,23 @@ OnClose
|
||||
|
||||
|
||||
//-------------------------State Changing--------------------
|
||||
//From here on, most of the dialogue will have to do with changing shells, ghosts, or states in some way. You only need to fill in the ones you think you'll see. The template default dialogue will take care of the rest.
|
||||
|
||||
|
||||
//--OnWindowStateMinimize
|
||||
|
||||
OnWindowStateMinimize
|
||||
{
|
||||
"\0\s[0]Люма будет рядом, хозяин\w4\e"
|
||||
OnWindowStateMinimize
|
||||
{
|
||||
// Window minimize should happen uninterrupted, as user is probably needs to do it quickly
|
||||
// "\0\s[0]Люма будет рядом, хозяин\w4\e"
|
||||
}
|
||||
|
||||
|
||||
//--OnWindowStateRestore
|
||||
|
||||
OnWindowStateRestore
|
||||
{
|
||||
"\0\s[0]Хозяин, Люма вернулась\w4\e"
|
||||
"\0\s[0]Здеесь..~\w4\e"
|
||||
"\0\s[0]Пам-пака-пааам..~\w4\e"
|
||||
}
|
||||
|
||||
|
||||
//--OnGhostChanging
|
||||
|
||||
//This runs whenever you change or reload the ghost. You can change ghosts by going into the right click menu and going to Change Ghost, but this dialogue will also be called if you reload them using Utilities->Reload Ghost or the Developer's Console->Reload->Ghost. Protip: If you are going to make a ghost, you will be reloading it A LOT.
|
||||
//Note: If you reload your ghost using the developer console instead of Utilities->Reload Ghost, it won't do this dialogue, so don't freak out if it doesn't show up.
|
||||
|
||||
/**
|
||||
* Function called whenever user changes or reloads the ghost.
|
||||
* reference0 - string specifying ghost you are calling, might be Lyuma herself if she's reloaded, mainly while debugging
|
||||
*/
|
||||
OnGhostChanging
|
||||
{
|
||||
if reference0 == "Lyuma"
|
||||
@ -500,19 +480,16 @@ OnGhostChanging
|
||||
else
|
||||
{
|
||||
"\0\s[0]Люма позовёт %(reference0)\w8\w8\e"
|
||||
|
||||
//Replace this dialogue with whatever you like. Notice the use of the %(reference0) envelope here? In OnGhostChanging, %(reference0) stores the name of the ghost being swapped to, so if you want to display what you're switching to, you can use %(reference0) as in this example. You don't have to use %(reference0) if you don't want to though.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//--OnGhostChanged
|
||||
|
||||
//A sister to the above, this runs after the ghost has either reloaded itself, or when you switch from another ghost to this ghost.
|
||||
|
||||
/**
|
||||
* Function called after ghost reload or if user switches from another ghost to Lyuma
|
||||
* reference0 - string parameter specifying previous ghost, might be Lyuma herself if its a ghost reload rather then actual character swap
|
||||
*/
|
||||
OnGhostChanged
|
||||
{
|
||||
"\0\s[0]\1\s[10]" //this sets up their default poses
|
||||
"\0\s[0]\1\s[10]" //Set up default poses for sakura and kero
|
||||
--
|
||||
if reference0 == "Lyuma"
|
||||
{
|
||||
@ -522,10 +499,12 @@ OnGhostChanged
|
||||
{
|
||||
"\0\s[0]Пока, %(reference0)...\e"
|
||||
|
||||
//Again, %(reference0) in this function is the name of the ghost in question. As above, replace these two lines of dialogue what what'd be appropriate for your ghost.
|
||||
}
|
||||
}
|
||||
|
||||
// PILE OF UNREFACTORED CODE BELOW ---
|
||||
|
||||
|
||||
|
||||
//--OnShellChanging
|
||||
|
||||
|
||||
Reference in New Issue
Block a user