martes, 12 de noviembre de 2013

Email Tutorial

I'll be making tutorials for the writers before I actually commission them. Here is the one for Emails.

LEVEL 1:

First of all, I need a block of email declarations, like this:


    $ced1=All()
    $ced2=All()
    $ced3=All()
    $ced4=All()
    $ced5=All()

Ced1, Ced2, etc are Ceddy's email #1, #2, etc. You need to tell the computer that they exist. Once declared, we can fill them in with content, like this:

           $ced1=Email("Ceddy Ylle", "Hey Hey Hey.", "Wassap?\n\n\n\nWAASSAAAAAP?\n\nI'm Ceddy, nice to meetcha. I'm a CGF from around town. I'm kinda new too. Newbies like us should support each other, don'tchathink?\n\nI've heard Comma has been assigned as your mentor. She was mine too! Heh.\n\nHave fun. Toodleloo.", "Have fun too.", "Simmer down, please.") 

 Email variable
Author
Title
Email Text (within it, the \n\n\n's you see are for pressing "enter" and having the text appear on the next line)
Answers


LEVEL 2:


Then we need to add how the emails appear depending on what you've answered in the previous ones, like this:

         if ced1.chosen==1 and ced1.unfinished:      
     $ced2=Email("Ceddy Ylle", "Hey Hey Hey.", "You seem like a cool guy, sugarface.\n\nSo, what breed of cow has the Gov given you to start out with? They gave me a Pamjai to start out. A bit of a hassle, since that CG was way too hugglesome for me to handle. Lucky for me, I earned enough dinero to get a Matra to level things a bit. Don't get me wrong here! Both are equally special, but you just gotta learn to balance each one's little oddities, right?\n\nBy the way, what breed did the Gov get you? Pamjai as well?", "Pamjai","Tiret","Mittelpunkt")            $ced1.unfinished=False


         if ced1.chosen==2 and ced1.unfinished:     
     $ced2=Email("Ceddy Ylle", "Hey Hey Hey.", "Heh, sorry 'bout that. I get it a lot.\n\nSo, how are you doing, Sir? Starting up your CGF numbers and twiddly knobs might be a hassle sometimes. But don't worry! Its easy. Kinda.\n\nFor me it was hard the first few days. Gov got me a Pamjai cow that was really sticky. I didn't know what to do. Comma would just point at the help files and not be of much help. Well, truth be told, the help files are actually... Helpful (Aren't I punny? Ohohohoho!). \n\nOh! What breed has the Gov given you to start out with?", "Pamjai","Tiret","Mittelpunkt")            $ced1.unfinished=False

Which in english means

If in the email called Ced1 I chose option #1 (which would be "Have fun") and Ced1 is still an unanswered email, then make the following email appear.... (Email variable called ced2 is now filled with content like explained before)....
Then consider ced1 to be answered. (this is the meaning of putting "$ced1.unfinished=False") in there

The second part there is the same deal. Ced2 is filled with different content this time since the answer given by the player is different. You can see that ced.chosen==2 and not 1. The rest is the same.


LEVEL 3:

More complex relations can be created if you're familiar with Python code.

No hay comentarios:

Publicar un comentario