Message Templates: Difference between revisions

From Off Grid Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
The logic behind all this is located in the randomized SMS generator for Off Grid [[SMS Generator]] lua file. This can be modded in a multitude of different ways - in case you want to mod the SMS generation to do something more fancy such as create a more fine grained model for the way the generator uses grammar, or support other languagea (bearing in mind that proceduraly generated grammar rule sets will be harder for different languages!)
The logic behind all this is located in the randomized SMS generator for Off Grid [[SMS Generator]] lua file. This can be modded in a multitude of different ways - in case you want to mod the SMS generation to do something more fancy such as create a more fine grained model for the way the generator uses grammar, or support other languagea (bearing in mind that proceduraly generated grammar rule sets will be harder for different languages!)


As a simpler way of extending the kinds of messages you want NPCs to generate, you can just add new tags and feilds for data in the Character Profiles and then create new message templates in
As a simpler way of extending the kinds of messages you want NPCs to generate, you can just add new tags and feilds for data in the Character Profiles and then create new message templates in DefaultSMSCollection.lua and the generator wull then use them.
 
An Example:
 
 
Multiple pieces of data in a feild will mean that you get move variety when the message template you have written is used.
 
An Example:




[[Category:Modding]]
[[Category:Modding]]

Revision as of 11:21, 12 March 2018

The messages that NPCs receive are generated from data in their Character Profiles that is then fed into message templates in DefaultSMSCollection.lua.

{
	requirements = {
		"exclamation",
		"RandomHashtag",
		},
		content = "$exclamation, gonna be a busy shift! $RandomHashtag"
	},


The logic behind all this is located in the randomized SMS generator for Off Grid SMS Generator lua file. This can be modded in a multitude of different ways - in case you want to mod the SMS generation to do something more fancy such as create a more fine grained model for the way the generator uses grammar, or support other languagea (bearing in mind that proceduraly generated grammar rule sets will be harder for different languages!)

As a simpler way of extending the kinds of messages you want NPCs to generate, you can just add new tags and feilds for data in the Character Profiles and then create new message templates in DefaultSMSCollection.lua and the generator wull then use them.

An Example:


Multiple pieces of data in a feild will mean that you get move variety when the message template you have written is used.

An Example: