Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Difficulty variance using special actions design demo

 
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 Operations series >> Mods and Scenarios >> Difficulty variance using special actions design demo Page: [1]
Login
Message << Older Topic   Newer Topic >>
Difficulty variance using special actions design demo - 1/30/2016 6:05:36 PM   
VFA41_Lion


Posts: 228
Joined: 1/30/2014
Status: offline
In literally my first foray into using lua scripting anywhere, I wanted to see if I could modify the difficulty of a scenario using the newly released feature, special actions. This very small and dirty scenario is the result.

In game, you are Blue side, commanding a US carrier battle group. Opposing you is Red side, another US carrier battle group.

This is the default difficulty, red vs blue, approximate identical strengths and weaknesses.

If you go to special actions in the game menu, you can select either EASY difficulty, which adds a third carrier battle group to help fight Red, or HARD difficulty, which makes that third group instead turn hostile on you.


I tried using what I thought was a lua command to modify a special action to disable the other one when using one, but it doesn't appear to work, so as it is now, you can select one difficulty and then the other later on whenever. I gotta go to work now so I won't be able to respond for the rest of the day, but I would definitely appreciate constructive comments and help! :)

V2 changes
Fixed the special action not disabling
added scenario descriptions

Attachment (1)

< Message edited by VFA41_Lion -- 1/31/2016 7:26:13 PM >
Post #: 1
RE: Difficulty variance using special actions design demo - 1/31/2016 1:54:55 AM   
Rory Noonan

 

Posts: 2816
Joined: 12/18/2014
From: Brooklyn, NY
Status: offline
Had a look hoping it was something easy I could help with... I would have tried the same thing you have, I'm not sure what to recommend.

I'm trying to read through 'Programming in Lua' and 'Beginning Lua Programming' but both are exceptionally dry reads

Actually I suggest posting this on the QA board, I think some more Lua adept people are there.

http://qa.commandmodernairnavaloperations.com/

(in reply to VFA41_Lion)
Post #: 2
RE: Difficulty variance using special actions design demo - 1/31/2016 10:36:36 AM   
Rory Noonan

 

Posts: 2816
Joined: 12/18/2014
From: Brooklyn, NY
Status: offline
Found your problem!

Where you have:
ScenEdit_SetSpecialAction ("Select easy difficulty", false)


You need to have:
ScenEdit_SetSpecialAction({ActionNameOrID="Select hard difficulty", IsActive="False"})


I found the clues that pointed me to this here:
http://www.matrixgames.com/forums/tm.asp?m=4011908 under 'SCENARIO EDITING & SCRIPTING'

(in reply to Rory Noonan)
Post #: 3
RE: Difficulty variance using special actions design demo - 1/31/2016 5:41:58 PM   
VFA41_Lion


Posts: 228
Joined: 1/30/2014
Status: offline
Thanks very much for the help, apache! That fixed it completely. :)

I re-uploaded the current version and even put it on steam workshop :o

< Message edited by VFA41_Lion -- 1/31/2016 7:26:40 PM >


_____________________________


(in reply to Rory Noonan)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Difficulty variance using special actions design demo 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.969