Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.

Event Messages

From AGEWiki

Revision as of 16:14, 29 September 2011 by Lodilefty (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Multiple Messages and missing messages with AGEOD events

A Line or Full event type will generate a message if the Location is specified in Param4 (Location ID, usually column H)

Messages are also generated by:

1. An extra Action command line [only if Location is specified in Param4 of the StartEvent line]
2. A scripted GenMsg command
3. A scripted GenTextMsg command
4. Several commands that the csv Splitter inserts a GenMsg:
(a) SelMostNumGroup
(b) RemoveCuUnit [also embedded in RemoveUnit command]
(c) PickFromRegList
(d) Remplacement [but NOT by Replacement]
(e) ….probably more, but these are the most common I've seen

The user will “Jump to Location” when event message is clicked:

1. To location specified in Param4 of StartEvent command
2. To a Region selected by script then followed by GenMsg if that is the only GenMsg in the Actions block, or if several GenMsg in Actions block all point to the same region.

I think this is why GenMsg is generated by PickFromRegList, SelMostNumGroup, RemoveCuUnit

3. To a Region containing a unit selected by script

Example: we write event to have a new unit 'join' the group of an existing group on map. We create EventType Line or Full without a Region in Param4, Select the Unique Group to join, create our new unit in that group, then put a GenMsg command after the commands creating the new unit: [Example: to put reinforcements with Charles Lorraine]


The syntax of the GenTextMsg command is: <Faction> in Column A will receive the message GenTextMsg in Column C Param0 in column D: <Event_name>|<Event_Type>|<Full_text>|<Full_text_Image>|<Sound>

<Event_Type> = 1 is Line <Event_Type> = 2 is Full

Many errors occur when a Region Alias is inserted for <Sound>, and has numeric value 'out of bounds'

I have found no way to get the GenTextMsg to 'jump' to a region [this would be a nice addition]


“Tooltips” are defined by: DescEvent in Column C [Command] <string> for tooltip in Param0 [usually calls a string from LocaStrings_xxx.csv]

I have not tried to define a tooltip for the 'other side' that recieves a GenTextMsg

Always be aware of “Location 0”, when a 'jump' seems to go to a weird place.

Location 0 is Region UID=0 [example: Memel in RoP].

Note, this “value 0” applies to many incorrect Alias usages: Militiaman may be a sign of
error in Abilities, “Leader” replacements is usually an incorrect family alias


The "Focus Region" of an Event

The Focus Region is the region that the map "jumps to" when you click on the event message

a) when there is a region specified in the start event line, if you manage to reach the action line without defining a different region via selection of units etc etc, a message is generated.
If the Faction defined in the Event Start line is changed during Conditions, then the last named Faction will recieve the message!
b) If in Actions, you select a faction and then have a a GenMsg, a second message will be sent to that faction.

Example: GBR in Event Start, but conditions also checked JAP. Message goes to JAP, as this is the last faction tag called (the last evaluation...) Then, GBR is selected in Actions, and a GenMsg sends message to GBR

Line 30130:  SelectFaction, selected: Great Britain
Line 30132:  Started processing event: evt_nam_GBR_Mission_LargestWarFleet_GoodProgress

.......

Line 30166:  SelectFaction, selected: Japan
Line 30167:  RegInit 8
Line 30168:  SelectSubUnits 1005540 Hatsuse added, List Count now at: 1

.....

Line 30174:  Entering triggered actions for event evt_nam_GBR_Mission_LargestWarFleet_GoodProgress
Line 30176:  SelectFaction, selected: Great Britain
Line 30177:  Flavor Message Generated: evt_nam_GBR_Mission_LargestWarFleet_GoodProgress no focus region
...
Line 30181:  Finished processing event: evt_nam_GBR_Mission_LargestWarFleet_GoodProgress


Bottomline, 2 messages!

  • Solution (a) As the region is already defined in startevent, Action will create a message. Just add before action GBR... then delete GenMsg.
  • Solution (b), delete the $Anglia region in startevent, so that Action doesn't trigger a message, and leave the rest as is.
Forums