Script Documentation

Please post here for questions and discussion about modding for Strategic Command.
Post Reply
rmelvin
Posts: 207
Joined: Wed Apr 06, 2022 1:41 am
Location: Tucson, Arizona

Script Documentation

Post by rmelvin »

Is there a complete up to date Documentation of all the script. if so, where is it.
If not does someone out there loves writing manuals?
For I cannot find a complete up to date documentation Like:
Cannot use Decision for TYPE=2 Transport due to MPP spending.
Cannot use TYPE=2 for Unit system crash.
No definition in Sea Movement scripts about the #Cruise function.

Now there appear to be an issue in Mobilization 2 when using zero in the unit parameter.
All these little things included.

Plus, what would be great the document would come with all system updates with its updates.
User avatar
Lothos
Posts: 1243
Joined: Tue May 23, 2006 8:22 pm

Re: Script Documentation

Post by Lothos »

rmelvin wrote: Sat Jan 06, 2024 11:13 pm Is there a complete up to date Documentation of all the script. if so, where is it.
If not does someone out there loves writing manuals?
For I cannot find a complete up to date documentation Like:
Cannot use Decision for TYPE=2 Transport due to MPP spending.
Cannot use TYPE=2 for Unit system crash.
No definition in Sea Movement scripts about the #Cruise function.

Now there appear to be an issue in Mobilization 2 when using zero in the unit parameter.
All these little things included.

Plus, what would be great the document would come with all system updates with its updates.
Documentation is at the top of each file and it describes what the command(s) do.
rmelvin
Posts: 207
Joined: Wed Apr 06, 2022 1:41 am
Location: Tucson, Arizona

Re: Script Documentation

Post by rmelvin »

The versus still out there has the fatal error in Unit definition.
No definition of Naval Cruise exit.
Also, a well written would also have developer nuances.
El_Condoro
Posts: 597
Joined: Sat Aug 03, 2019 4:35 am

Re: Script Documentation

Post by El_Condoro »

Cannot use Decision for TYPE=2 Transport due to MPP spending.
Cannot use TYPE=2 for Unit system crash.
No definition in Sea Movement scripts about the #Cruise function.
Now there appear to be an issue in Mobilization 2 when using zero in the unit parameter.
1. Set #MPP_UPDOWN= 0. The decision can be referenced by a AI Transport script this way.
2. Not sure what you mean here - a #TYPE= 2 Unit script should fire whenever all conditions are met for as long as those conditions are met.
3. #NAVAL_CRUISE= Should the event apply naval cruise distances for unit movement? (True= 1; False= 0)
4. I have replied to this in the thread about this topic.

As to the documentation of all possibilities, I don't think it will happen - trial and error is how I have learned what I know about scripting and there are still (lots of) things I am learning.
ORB & CROWN Fantasy Warfare Mod for Strategic Command
Download for War in Europe or World at War - YouTube - Discord
rmelvin
Posts: 207
Joined: Wed Apr 06, 2022 1:41 am
Location: Tucson, Arizona

Re: Script Documentation

Post by rmelvin »

Thanks, Mobilization 2 is my screw up. I only have an excuse no reasons. Too much coffee to late and to long behind the screen. Awala mental block.
If TYPE=2 in unit scripts now works that a fix I missed in the ReadMe in updates. After my crashes the Development Team found the same thing.
Like you said, I had to figure out the #NAVAL_CRUISE. I was showing there are things missing in the definition. This would be something which would show up in an update script manual.

In the manual this thing about the Trasport your input would be there. This is something I am going to try in my next project. As you said the learning curve was a bear. I think I wrote each line at least twice minimum. And in my final product I toss about over 60% of my script work.

Thank you for your reply.
El_Condoro
Posts: 597
Joined: Sat Aug 03, 2019 4:35 am

Re: Script Documentation

Post by El_Condoro »

I hear ya! I have been scripting for a couple of years and things make sense now (mostly) but it took a lot of trial and (more) error to have the understanding I now have. Keep posting your questions because this forum has very helpful and knowledgeable people frequenting it.
ORB & CROWN Fantasy Warfare Mod for Strategic Command
Download for War in Europe or World at War - YouTube - Discord
Post Reply

Return to “Scenario Design and Modding”