Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Organizing Events, Triggers, Actions

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Air / Naval Operations >> Mods and Scenarios >> Organizing Events, Triggers, Actions Page: [1]
Login
Message << Older Topic   Newer Topic >>
Organizing Events, Triggers, Actions - 1/20/2019 8:08:35 PM   
TitaniumTrout

 

Posts: 155
Joined: 10/20/2014
From: Michigan
Status: offline
I'm working on a scenario with a lot of moving parts and I was curious what other folks are doing to keep your events organized?

So far I've settled on this :

EventType.RelatedMission.Time.Whatisit.Description

For example :

ACTION.MIG-STRIKE.2345.MESSAGE.Inform Player to Launch Migs

or

TRIGGER.SUB-LAUNCH.1140.LUAScript.Spawn DSV Near Wreck

It's really nice when you need to select the trigger or action. Everything is grouped by mission name and easier to find. Really a bear when you get 100 triggers to sort through.

_____________________________

Post #: 1
RE: Organizing Events, Triggers, Actions - 1/20/2019 8:37:53 PM   
Whicker

 

Posts: 438
Joined: 6/20/2018
Status: offline
open one of Gunners scenarios (Fury ones) and look how he does it. He posted something on here a while ago about what he likes to do - I think it was to prepend the type of of action/trigger it was? so all the lua actions were together?
Does putting action or trigger at the front do anything? is there somewhere that you would see actions and triggers mixed in together? seems like if you are looking at the actions they are all actions...

(in reply to TitaniumTrout)
Post #: 2
RE: Organizing Events, Triggers, Actions - 1/20/2019 8:49:29 PM   
TitaniumTrout

 

Posts: 155
Joined: 10/20/2014
From: Michigan
Status: offline
Putting it in the front is probably redundant, but helps on the Event Editor screen.

_____________________________


(in reply to Whicker)
Post #: 3
RE: Organizing Events, Triggers, Actions - 1/21/2019 9:12:21 AM   
Gunner98

 

Posts: 3832
Joined: 4/29/2005
From: The Great White North!
Status: offline
The main benefit of organizing your actions & Triggers is when your building the scenario or troubleshooting it later. So I try and keep it alphabetized and chronological.

So I put 'Msg' in front of all messages to keep them grouped on the screen, 'Lua', 'Points', and side name as a prefix

The events and special actions are different because the player may actually see them. But the same principles can apply.


b

_____________________________

Check out our upcoming novel, Northern Fury: H-Hour! http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/

(in reply to TitaniumTrout)
Post #: 4
RE: Organizing Events, Triggers, Actions - 1/22/2019 1:16:18 AM   
SeaQueen


Posts: 1002
Joined: 4/14/2007
From: Washington D.C.
Status: offline
quote:

I'm working on a scenario with a lot of moving parts and I was curious what other folks are doing to keep your events organized?


I just type a quick phrase describing the intended functionality of the trigger, condition, event or action. Most of my actions are LUA actions. Very few of them are set to go off at specific times. I tend to prefer conditionals. Complicated LUA code gets commented because I don't have enough brain cells left to decipher my own code twice. They also are not necessarily specifically tied to missions, either.

For example, when I'm encoding a victory condition, I might use a regular interval trigger intended to go off every 5 minutes. I'll call that, "Every five minutes." If the victory condition is "20% of the POL storage is destroyed" I'll call a condition "Check POL storage condition." Then make a points action to attribute however much weight to victory I think that victory condition deserves. Finally, I'll create an event which puts all three pieces together, the trigger, the condition, and the action, and call it something like, "Achieved min POL storage destruction requirement." When I see what happens in the log, I understand exactly what just happened.


< Message edited by SeaQueen -- 1/22/2019 1:20:06 AM >

(in reply to TitaniumTrout)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Air / Naval Operations >> Mods and Scenarios >> Organizing Events, Triggers, Actions Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.144