Jump to content

Ashrose93

Members
  • Posts

    7
  • Joined

  • Last visited

Nexus Mods Profile

About Ashrose93

Ashrose93's Achievements

Rookie

Rookie (2/14)

0

Reputation

  1. Hi guys, I've been working on adding some functionality to a little scrapping mod that I've built. I want to make it so that the user can use a holotape to choose what scrap they get from scrapping certain objects, if any. I figured I could create a number of scrap recipes and add a match condition to the global variable and then just have a holotape set the global variable. I've done that and the holotape sets the global variable just fine, the problem is that no matter what the variable is, the scrap output doesn't change. It's like the match condition isn't actually working. Here's some screenshots of what I've got... Global variable: http://prntscr.com/epkjhz Examples of the terminal script http://prntscr.com/epkjxa http://prntscr.com/epkk6g The scrap recipes: http://prntscr.com/epkla3 http://prntscr.com/epklhw http://prntscr.com/epklvv http://prntscr.com/epkloi Can anyone figure out what's going on?
  2. Ok so I've tested this and the variable are being set correctly by the holotape so that is working The problem must therefore be in the match conditions bit. Regardless of what the global value is set as, the same scrap output is chosen - the one corresponding to the form with the form ID which is last alphabetically. It's as if the match conditions aren't actually being checked
  3. @vkz89q Sorry let me clarify I've removed all references to the quest now and instead I am trying to do it purely through global variables. The idea being that I have a number of different scrap outputs such as caps, some scrap, no scrap or an overpowered amount of scrap. This can be changed using a crafted holotape which has options with scripts attached which change a global variable depending on which button you press. When the global variable is changed, the conditions for one of the scrap outputs will be met which will change the scrap output. This isn't actually happening though and I don't know what's wrong. My scripts compile just fine.
  4. Hmm maybe global variables would be a better approach but I still can't get it working.. So I've made a global variable with a default value of 1 as follows... http://prntscr.com/enkf4y Then I've modified the terminal to change the global value depending on what you select, after defining the SATConfG as a global variable of course... http://prntscr.com/enkfjx http://prntscr.com/enkfpv (and so on) Then modified my scrap forms with the following conditions... http://prntscr.com/enkgq0 http://prntscr.com/enkgvo http://prntscr.com/enkgiq http://prntscr.com/enkh20 And... for some reason it defaults to this scrap form:http://prntscr.com/enkgvo and the terminal doesn't seem to do anything.. I'm fairly new to this kind of thing so can you tell me what I'm doing wrong here?
  5. Edited to reflect the current situation: Hi guys, So I've built a scrapping mod which fills a niche on consoles and the scrapping part works fine. I've numerous requests to build some sort of toggle to disable scrap outputs and disable the mod mid game. I've found out that global variables are probably the best way to do this so here's what I've done: So I've made a global variable with a default value of 1 as follows... http://prntscr.com/enkf4y Then I've modified the terminal to change the global value depending on what you select, after defining the SATConfG as a global variable of course... http://prntscr.com/enkfjx http://prntscr.com/enkfpv (and so on) Then modified my scrap forms with the following conditions... http://prntscr.com/enkgq0 http://prntscr.com/enkgvo http://prntscr.com/enkgiq http://prntscr.com/enkh20 I can confirm that the global variable is being changed by the terminal but something isn't working in the conditioning as regardless of what the global variable is, the same form is used - the one that has the ID that is alphabetically last Can anyone provide input?
  6. Here's the fragment: SATConfigurationQST.SetStage(10) Only one line. The idea being that when I hit yes on the holotape it turns scrap on and when I hit no it turns scrap off, the scraprecipes are conditioned to be active when the quest is at one stage or the other. -- So I just defined SATConfigurationQST as a Quest in the properties and now we get a new error... Papyrus Compiler Version 2.8.0.4 for Fallout 4Copyright © ZeniMax Media. All rights reserved.Starting 1 compile threads for 1 files...Compiling "Fragments:Terminals:TERM_00SATConfiguration_01007287_2"...C:\Users\Ash\AppData\Local\Temp\PapyrusTemp\Fragments\Terminals\TERM_00SATConfiguration_01007287_2.psc(2,0): missing SCRIPTNAME at 'Quest'C:\Users\Ash\AppData\Local\Temp\PapyrusTemp\Fragments\Terminals\TERM_00SATConfiguration_01007287_2.psc(2,6): required (...)+ loop did not match anything at input 'Property'C:\Users\Ash\AppData\Local\Temp\PapyrusTemp\Fragments\Terminals\TERM_00SATConfiguration_01007287_2.psc(0,0): filename does not match script name: "quest" expected: "Fragments:Terminals:TERM_00SATConfiguration_01007287_2"No output generated for Fragments:Terminals:TERM_00SATConfiguration_01007287_2, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on Fragments:Terminals:TERM_00SATConfiguration_01007287_2 As I say above, I pretty much have no idea what I'm doing here. Do you know of any good resources to actually learn how this all works or is it just an experience thing?
  7. Hi guys, So I've been working on a little scrapping mod for myself. I've got it working but now I want to make it so that I can toggle the scrap resource outputs off using a Holotape that I can craft. This is what I have so far: Created formlist with all the items I want to scrap. Created two separate crafting recipes with the WorkshopRecipeFilterScrap filter and different resource outputs. Created a new quest with two stages, one for when I want scrap outputs y and one outputs x. Added a Match Condition to the crafting recipes with the Function Name "GetStageDone", corresponding stages in the quest. Created a terminal Holotape with two options, each corresponding to a papyrus fragment "SATConfigurationQST.SetStage(x/y)". Created a crafting recipe to craft the holotape. Set quest to begin when the Holotape is in the player's inventory by setting Quest Dialogue Condition as "GetItemCount" "Holotape: 'SATConf'". The issue I'm having is with the scripting as there seems to be something I'm missing. I haven't been able to find any tutorials online that help though.. I'm in unfamiliar territory with this kind of thing. Whenever I try to compile the script for the terminal, I get an error message telling me that the variable "QuestName" is undefined. Here's the error message: -- Papyrus Compiler Version 2.8.0.4 for Fallout 4Copyright © ZeniMax Media. All rights reserved.Starting 1 compile threads for 1 files...Compiling "Fragments:Terminals:TERM_00SATConfiguration_01007287_2"...C:\Users\Ash\AppData\Local\Temp\PapyrusTemp\Fragments\Terminals\TERM_00SATConfiguration_01007287_2.psc(7,0): variable SATConfigurationQST is undefinedC:\Users\Ash\AppData\Local\Temp\PapyrusTemp\Fragments\Terminals\TERM_00SATConfiguration_01007287_2.psc(7,20): none is not a known user-defined script typeC:\Users\Ash\AppData\Local\Temp\PapyrusTemp\Fragments\Terminals\TERM_00SATConfiguration_01007287_2.psc(15,0): variable SATConfigurationQST is undefinedC:\Users\Ash\AppData\Local\Temp\PapyrusTemp\Fragments\Terminals\TERM_00SATConfiguration_01007287_2.psc(15,20): none is not a known user-defined script typeNo output generated for Fragments:Terminals:TERM_00SATConfiguration_01007287_2, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on Fragments:Terminals:TERM_00SATConfiguration_01007287_2 -- Can anyone helps or point me in the direction to a video/ thread? I can't imagine I'm the only person who has had this problem. Also can anyone see anything obviously wrong in what I've done? Thanks guys
×
×
  • Create New...