diziet
Active Member
- Messages
- 541
Hi, I posted this question to the Fallout4 modders forum on nexus, I got replies but no solutions, so I thought I would try here, my complete original posted is posted below:
Hi, I'm tring to follow the example here:
https://github.com/N...i/Control-Types
of a button, this is my first attempt at an MCM menu in F4.
This is my config.json and it does show the two buttons:
Now at the moment the call to the global debug function works, but I cannot get this function to run from the top button in my test script:
there is neither a message box in game, or a trace in the Papyrus.log.0 file.
The script is attached to a quest, and that quest shows up in the console so I assume it is running?
diziet
p.s. as I replied on the nexus forum, the formid is indeed 800
Hi, I'm tring to follow the example here:
https://github.com/N...i/Control-Types
of a button, this is my first attempt at an MCM menu in F4.
This is my config.json and it does show the two buttons:
Code:
{
"modName": "dz_no_attacks",
"displayName": "MCM for No Settlement Attacks",
"minMcmVersion": 2,
"content": [
{
"text": "Demo Button",
"type": "button",
"help": "This button disallows attacks at abernathy.",
"action": {
"type": "CallFunction",
"form": "dz_no_attacks.esp|800",
"function": "dz_disallow_attacks",
"params": []
}
},
{
"text": "Another Demo Button",
"type": "button",
"help": "Displays a messagebox via a CallGlobalFunction action.",
"action": {
"type": "CallGlobalFunction",
"script": "Debug",
"function": "MessageBox",
"params": ["Hello world!"]
}
}
]
}
Code:
Scriptname dz_no_attacks_quest_script Extends Quest
Function dz_disallow_attacks()
debug.trace("value is ")
debug.messagebox("new value is ")
EndFunction
there is neither a message box in game, or a trace in the Papyrus.log.0 file.
The script is attached to a quest, and that quest shows up in the console so I assume it is running?
diziet
p.s. as I replied on the nexus forum, the formid is indeed 800