ZMail - Sending you spam since 2013

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
Do you need to use conditions at all with this? I'm having a little trouble trying to figure out the script call to get new mail to show up too. What exactly does 'key' refer to? An example call of how to send the player a piece of mail with no attachment would be really useful. </dumb>
I'm sorry for the confusion, I understand I documented this pretty badly. I am rewriting it at the moment, and intend to make the script much more usable and work better. This was one of the first scripts I made, so there should be a great improvement once this is redone.

Better explanation of how it works:

Key

The key that you use when creating mail is how you access the mail later. You are able to change a piece of mail's conditions, its attachments, the message itself, and the sender after you initially create it. The key must be unique across every piece of mail, as this is also used to set each piece apart from another. The key can contain any sort of character. The key must be a string, however, which simply means you must put it between quotes. For example, "this works 124wqwe12", "4s d03s th!s" "Map001_Ev007_Mail3". anything may be used as long as it is unique to that piece of mail. 

Conditions

Conditions are not required, however, if no condition is given, it will be set to unreadable. If you don't want to use any kind of condition, just use "true". This will make the message immediately available for the player to read.

If you would like to use a condition, they work the same as the conditional branch's script option. A piece of mail may have more than one condition, and all conditions must evaluate to true for the mail to be readable. Because conditions are just small Ruby statements, a basic understand of Ruby is recommended for working with conditions.

Attachments

Attachments by default are empty. If you want to attach an item to a piece of mail, you have to pass in a string in the following format:

"item_id|count". 

item_id is the number next to the item in the database. You can have leading zeros if you wish, but they are not required. The pipe characters ( | ) separates the item id with how many of the item the player will receive. The count can be any number, even negative. Negative numbers will attempt to take the item away from the player.
 

Quigon

electric boogaloo
Veteran
Joined
Mar 17, 2012
Messages
1,982
Reaction score
954
First Language
English
Primarily Uses
N/A
Alrighty, so that fixed some issues but I've ran into another - do I need to keep the attachment part empty so that the mail doesn't have any? If so, 'Retrieve attachment' or whatever it is still comes up in the menu, and selecting it crashes the game.

Thanks for the speedy help though :3
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
What are you putting in for the attachment, and can I see a screenshot of the error?
 

UltimateSly

The one and only
Member
Joined
Jan 13, 2014
Messages
1
Reaction score
0
First Language
English
Primarily Uses
Don't know if you're going to read this but I have a problem where I can't get out of the mail menu when reading a piece of mail. and it says annoynmous when reading it. Is there a way to fix it?
 

Eurgh

Lord of the Reapers
Veteran
Joined
Oct 6, 2012
Messages
172
Reaction score
34
Primarily Uses
and after all this, I still have no idea how to use this. I need a demo. :'(
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
Geez people still look at this? Zmail was the first script I wrote and released publicly, and I can assure you it's written pretty badly haha. I originally had plans to rewrite it but that never happened, and now that MV is released, I'm really not sure if I'll ever redo this. Are you really interested in it? 
 

Eurgh

Lord of the Reapers
Veteran
Joined
Oct 6, 2012
Messages
172
Reaction score
34
Primarily Uses
Yes, massively. However, if you don't wish to do anything with it. That is fine.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,015
Members
137,563
Latest member
MinyakaAeon
Top