User avatar
Pocus
Posts: 25662
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Proper Message generation and focus

Fri Oct 02, 2009 1:57 pm

Some of you wonder how to generate a message which is focused on a region randomly selected. Here is the proper syntax with assorted comments.

For the next version of the AGE games, you'll also have the possibility to have the region name cited in the message title, if you insert a ¤ in the title.

For example

SelectFaction = USA
StartEvent = The ¤ fair is now closed!|999|0|NULL|NULL|NULL|NULL

Conditions
AddToRegList = $Newcastle, DE;$Winchester, VA
PickFromRegList
EvalRegionSel
Actions
GenTextMsg = The ¤ fair is now open!|1|NULL|NULL|NULL


EndEvent

Give that:
Image
Attachments

[The extension xls has been deactivated and can no longer be displayed.]

Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
lodilefty
Posts: 7616
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

Fri Oct 02, 2009 3:41 pm

Will the string in the GenTextMsg still be able to reference a string in LocalStrings, as is now the case?
Always ask yourself: "Am I part of the Solution?" If you aren't, then you are part of the Problem!
[CENTER][/CENTER]
[CENTER]Visit AGEWiki - your increasingly comprehensive source for information about AGE games[/CENTER]

[CENTER]Rules for new members[/CENTER]
[CENTER]Forum Rules[/CENTER]

[CENTER]Help desk: support@slitherine.co.uk[/CENTER]

User avatar
Pocus
Posts: 25662
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Mon Oct 05, 2009 8:40 am

yes
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 15 guests