Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Sharing Event Codes

 
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] >> Advanced Tactics Series >> Mods and Scenarios >> Sharing Event Codes Page: [1]
Login
Message << Older Topic   Newer Topic >>
Sharing Event Codes - 6/2/2015 2:07:03 AM   
E6Jarhead

 

Posts: 29
Joined: 6/1/2015
From: Hendersonville, NC
Status: offline
Lets all start posting our event codes so others can learn from, copy or incorporate!

Post #: 1
RE: Sharing Event Codes - 6/2/2015 12:51:10 PM   
LJBurstyn

 

Posts: 626
Joined: 4/19/2011
Status: offline
One of the things you have to know is when the event runs. Some events can be keyed to run only when the round changes (everyone does their turn)..Some can be keyed to NOT run (run only when a card is played or when another event calls it)..some can happen during a turn of each player...and finally some can run only when AI is doing it's thing. Running an event every turn when it can run only on round changes will cause the event to run between every player's turn--this will play havoc with any counter you have set up in the event if you want the count to increment after everyone does their turns. And it wastes the time of the processor if it needs to run only after everyone does their turn.

Round runs before anyone does a turn or after everyone does their turns.

Early Turn runs before each player does his turn.

Late Turn runs after each player does his turn.

NOT run (forgot what's it called) does not run unless called by a card or another event.

AI only runs when the player is the AI.

(in reply to E6Jarhead)
Post #: 2
RE: Sharing Event Codes - 6/2/2015 5:01:32 PM   
ernieschwitz

 

Posts: 3893
Joined: 9/15/2009
From: Denmark
Status: offline
There are some other options too, but some of them require more expert knowledge of what when runs, and such.

For instance there is the End Turn Check. This runs at the closing of the turn, that is when the player presses End Turn.

This is useful for instance for removing a change in code that only should run during one players turn.

The there is the Late Turn Check, which is run before the player gets the turn, but after effects are run, for instance supply or readiness recovery and the like.

They all have their uses.

(in reply to LJBurstyn)
Post #: 3
RE: Sharing Event Codes - 6/2/2015 6:24:47 PM   
lion_of_judah


Posts: 2113
Joined: 1/8/2007
Status: offline
I'm asking if anyone has made an event to activate a regime after a certain terrain objective has fallen and if so please post it here. I really suck at programming, couldn't begin to tell you how bad so any help will be appreciated. Thanks

(in reply to E6Jarhead)
Post #: 4
RE: Sharing Event Codes - 6/2/2015 6:45:50 PM   
ernieschwitz

 

Posts: 3893
Joined: 9/15/2009
From: Denmark
Status: offline
That could be made too.

You could do it several ways. One way is to do soemthing like this.

(Round or turn check, depending on when you want it to happen, in the turn that it happens or the round it happens).

Check hex owner ("x","y") "NOT =" "Starting owner"

Execute: ExecSetSleep (0, "Regime to be woken")

BlockEvent

End Check


The BlockEvent is in there to stop it from checking once it has happened. The values in " " are values you must put in.



(in reply to lion_of_judah)
Post #: 5
RE: Sharing Event Codes - 6/2/2015 8:25:22 PM   
lion_of_judah


Posts: 2113
Joined: 1/8/2007
Status: offline
how do I get this in the event engine? copy and past from here will not work........

(in reply to ernieschwitz)
Post #: 6
RE: Sharing Event Codes - 6/2/2015 8:37:51 PM   
ernieschwitz

 

Posts: 3893
Joined: 9/15/2009
From: Denmark
Status: offline
You click and click and click... :)

The process of making this will require quite a number of screenshots :)

(in reply to lion_of_judah)
Post #: 7
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Mods and Scenarios >> Sharing Event Codes 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.844