Jump to content

MCM script help


Halstrom

Recommended Posts

I merged this from 2 other scripts and seem to have some brackets wrong somewhere

 

{
	"modName": "SynthPlayer", 
	"displayName": "Synth Player", 
	"minMcmVersion": 2, 
	"pluginRequirements": ["SynthPlayer.esp"],
	"content": [
		{
			"text": "Mode to simulate robotic functions and needs of the player being a Synth ",
			"type": "text"
		},
		{
			"type": "spacer",
			"numLines": 1     
		},
		{
			"text": "Hotkeys",
			"type": "section"
		},
		{
			"id": "TurboOverClockHotkey",
			"text": "Toggle TurboOverClock",
			"type": "hotkey",
			"help": "Hotkey for Turbo Overclock Mode (not used yet)."
		},
		{
			"text": "Why do I need this and what does it do?",
			"type": "text"
		},
		{
			"text": "This boosts a Synths Abilities until combat ends or Power becomes less than 50% or CoreTemperature goes above 50.",
			"type": "text"
		}
	],
	"pages": [
		{
			"pageDisplayName": "Settings",
			"content":	[
			{
				"text": "General",
				"type": "section"
			},
			{
				"text": "Buff Percentage (not used yet)",
				"type": "slider",
				"help": "Alter the buff effect of the mod",
				"valueOptions": {
					"min": 50.0,
					"max": 200.0,
					"step": 5.0,
					"sourceType": "GlobalValue",
					"sourceForm": "SynthPlayer.esp|010440EF"
				}
			},
			{
				"text": "SpareSlider1",
				"type": "slider",
				"help": "SpareSlider1",
				"valueOptions": {
					"min": 1.5,
					"max": 3,
					"step": 0.1,
					"sourceType": "GlobalValue",
					"sourceForm": "SynthPlayer.esp|100440EF"
				}
			}
			]

	
	
	
	
		{
		"pageDisplayName": "Customize HUD",
		"content": [
		{
			"text": "Simple HUD mod for SynthPlayer ",
			"type": "text"
		},
		{
			"type": "spacer",
			"numLines": 1     
		},
		{
			"text": "",
			"type": "section"
		},
		{
			"text": "Apply Settings",
			"type": "button",
			"help": "Applies x,y positions and scale to HUD",
			"action": {
				"type": "CallFunction",
				"form": "SynthPlayer.esp|01000F99",
				"function": "OnApply",
				"params": ["SynthPlayer_HUD"]
			}
		},
		{
			"text": "CoreTemp",
			"type": "section"
		},
		{
			"text": "CoreTemp X Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B7B"
			}
		},
		{
			"text": "CoreTemp Y Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B7C"
			}
		},
		{
			"text": "CoreTemp Scale",
			"type": "slider",
			"help": "0 Hides the widget",
			"valueOptions": {
				"min": 0.1,
				"max": 2,
				"step": 0.1,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B7A"
			}
		},
		{
			"text": "Power",
			"type": "section"
		},
		{
			"text": "Power X Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B7E"
			}
		},
		{
			"text": "Power Y Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B7F"
			}
		},
		{
			"text": "Power Scale",
			"type": "slider",
			"help": "0 Hides the widget",
			"valueOptions": {
				"min": 0.1,
				"max": 2,
				"step": 0.1,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B7D"
			}
		},
		{
			"text": "LubriCool",
			"type": "section"
		},
		{
			"text": "LubriCool X Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B81"
			}
		},
		{
			"text": "Self_Esteem Y Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B82"
			}
		},
		{
			"text": "LubriCool Scale",
			"type": "slider",
			"help": "0 Hides the widget",
			"valueOptions": {
				"min": 0.1,
				"max": 2,
				"step": 0.1,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B80"
			}
		},
		{
			"text": "Integrity",
			"type": "section"
		},
		{
			"text": "Integrity X Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B84"
			}
		},
		{
			"text": "Integrity Y Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B85"
			}
		},
		{
			"text": "Integrity Scale",
			"type": "slider",
			"help": "0 Hides the widget",
			"valueOptions": {
				"min": 0.1,
				"max": 2,
				"step": 0.1,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B83"
			}
		},
		{
			"text": "TotalStatus",
			"type": "section"
		},
		{
			"text": "TotalStatus X Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B87"
			}
		},
		{
			"text": "TotalStatus Y Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B88"
			}
		},
		{
			"text": "TotalStatus Scale",
			"type": "slider",
			"help": "0 Hides the widget",
			"valueOptions": {
				"min": 0,
				"max": 2,
				"step": 0.1,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B86"
			}
		},
		{
			"text": "",
			"type": "section"
		},
		{
			"text": "Uninstall mod",
			"type": "button",
			"help": "Removes the HUD widget and uninstalls the mod",
			"action": {
				"type": "CallFunction",
				"form": "SynthPlayer.esp|01000F99",
				"function": "OnUninstall",
				"params": ["SynthPlayer_HUD"]
				}
			}
		}

	}
  ]
}
Edited by Halstrom
Link to comment
Share on other sites

[FIGJAM]

You're right, only fools read the description and the documentation

[/FIGJAM]

https://github.com/Neanka/MCM_0.1_AS3/wiki/Resources

[sarcasm]

Thanks for that super friendly super helpful advice for me and other newbies like me writing their first json script. That link explains everything so clearly, but not clear enough for fools like me.

For a minute I thought I had a problem with my script and needed help, turns out I just wasn't FIGJAM enough...............[/sarcasm]

Another more friendly forum member supplied more courteous help :tongue:

Edited by Halstrom
Link to comment
Share on other sites

[FIGJAM]

I gave you a fishing rod and free will. Don't want to fish on their own. Don't fish.

[/FIGJAM]

 

That link explains everything so clearly

that nothing else is needed.

 

Copy/past to JSON Validator and validate. The validator shows all errors.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...