Difficulty variance using special actions design demo (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios



Message


VFA41_Lion -> Difficulty variance using special actions design demo (1/30/2016 6:05:36 PM)

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




Rory Noonan -> RE: Difficulty variance using special actions design demo (1/31/2016 1:54:55 AM)

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 [8|]

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

http://qa.commandmodernairnavaloperations.com/




Rory Noonan -> RE: Difficulty variance using special actions design demo (1/31/2016 10:36:36 AM)

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'




VFA41_Lion -> RE: Difficulty variance using special actions design demo (1/31/2016 5:41:58 PM)

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




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.34375