Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Help on creating turn counter

 
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 >> Help on creating turn counter Page: [1]
Login
Message << Older Topic   Newer Topic >>
Help on creating turn counter - 1/8/2009 5:51:52 PM   
explorer2

 

Posts: 465
Joined: 11/30/2007
Status: offline
I need to have a way of triggering an event x turns after another event has been triggered, but the date of it is not fixed, just the amount of time from another event (Eastern Blitz)

In WaW, I want to make it so that a result of the Eastern Blitz card being played, a combat bonus for the Germans is changed x turns after it is given.
Current change: ExecChangePeopleCombatModVS (0, 3, 50)

I've read the tutorials on events and variables many times, but as one who has never programmed and new to modding, I just don't get it.
Any help, ideally with an example, GREATLY appreciated.
Post #: 1
RE: Help on creating turn counter - 1/8/2009 8:24:05 PM   
Tufkal2

 

Posts: 834
Joined: 12/31/2008
From: Germany
Status: offline
Hello,
am I correct in assuming that you mean that an event should happen x rounds after the other (1 round means each regime gets to act one turn).
I think the easiest way then might be to use a gamevar to store the round and another event to check the difference. This might then look like
1. Step In the pt2 file use settings to set gamevar0 to -x-1 (i.e. if the difference in rounds you want is 4 set it to -5)
2. Step
Event 1 (this is the triggering event)
add some line like (maybe not 100% syntactically but close):
setvar gamevar0 = checkround
3. This event should be triggered
Event 2 (must be a roundcheck event)
setvar tempvar0 = checkround
setvar tempvar0 - gamevar0
Check tempvar0 = <number of rounds of delta you like>
Things happen here
Endcheck

I think this should do it. Would be similar for turns but this would mean you would like to use something calculated on playing order. If you want to have it mixed it might also be possible but more complicated.
Good Luck,
Lunaticus

(in reply to explorer2)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Mods and Scenarios >> Help on creating turn counter 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.391