Updating stuff on the Wiki
View Single Post
04/13/14, 11:42 AM
Join Date: Feb 2014
Here's a simpler real world example of a restaurant menu.
At the top, "Every order comes with fries"
In the documentation below, of every meal they sell, there is no mention of fries.
There doesn't need to be, as they said above that every order comes with fries.
For the lua code though, it's not even that people are being lazy and don't want to write fries many times.
The event THIS_EVENT returns parameters (string mytext)
The event handler, which is used to interact with the event, returns the object reference PLUS whatever is returned by the event itself.
Documenting the events as returning the object would be incorrect.
Edit: this is feeling a bit silly now, so is my last post on the subject.
View Public Profile
Send a private message to Stormknight
Find More Posts by Stormknight