Jump to content

Kyndra72

Premium Member
  • Posts

    4
  • Joined

  • Last visited

Nexus Mods Profile

About Kyndra72

Profile Fields

  • Country
    United States
  • Currently Playing
    Tale of Two Wastelands
  • Favourite Game
    Skyrim

Kyndra72's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. BLESS YOU. It's working now! Thank you so much! I'll credit you once I upload the mod :)
  2. Hello, I'm trying to make a mod using the "defaultFakeHarvestableScript" to turn Shellbugs into harvestables without them dying or being disabled. The goal is to be able to walk up to the Shellbug (the activator), activate it to recieve 3 Shellbug Chitin without mining or killing it, it will literally just act like a harvestable ingredient without disappearing after it's been harvested. The problem is I only want to be able to do this once every 10 days so that it's not OP. Everything works so far EXCEPT it doesn't reset after 10 days, it just keeps giving me the failure message I set. Can anyone please help? I'm a total noob to scripting and I've been working on this for hours and I'm probably doing wrong that's ridiculously obvious without realizing it. I've looked up tutorials and did numerous Google searches and read a probably unnecessary amount of CK Wiki pages and I'm just at my wit's end lol it's embarassing because this seems like it's going to be really simple. :pinch: Shellbug Chitin is a MiscObject, not an Ingredient by the way. Here's the script I have so far: Scriptname AAA_STSBGetItemScript extends ObjectReference miscobject property IngredientHarvested auto {miscobject added when harvested} bool property deleteSelfOnHarvest = false auto {if true, delete this object when harvested} message property HarvestMessage auto {Message that appears when you have successfully harvested something} message property FailureMessage auto {Message that appears when you fail to harvest something} globalVariable property DaysToResetFakeHarvest auto {The amount of game days that it takes to become reharvestable} float property lastHarvestedDay auto Hidden {the game day this was last successfuly harvested, used to know when to respawn} sound property HarvestSound auto {Sounds played on harvest} ;=================================================================== ;;STATE BLOCK ;=================================================================== auto state readyForHarvest event onActivate(objectReference akActivator) goToState("waitingToRespawn") fakeHarvest(akActivator) if deleteSelfOnHarvest disable() delete() endif endEvent endState state waitingToRespawn event onBeginState() lastHarvestedDay = utility.getCurrentGameTime() endEvent event onActivate(objectReference akActivator) FailureMessage.show() endEvent event onCellLoad() if (lastHarvestedDay + DaysToResetFakeHarvest.getValue()) <= utility.getCurrentGameTime() goToState("readyForHarvest") endif endEvent endState ;=================================================================== ;;FUNCTION BLOCK ;=================================================================== function fakeHarvest(objectReference akActivator) if (akActivator as actor) HarvestMessage.show() HarvestSound.play(self) if IngredientHarvested (akActivator as actor).addItem(IngredientHarvested, 3, true) endif endif endFunction Please be gentle lol
  3. Just letting people know I had the same issue, the cause for me was "numenume femalebrows MARO". I uninstalled it and the error went away o-o
×
×
  • Create New...