Jump to content

Mining Script


PShepa

Recommended Posts

I've been apart of the Nexus community since before dragons existed, and haven't contributed much to it. So in learning modding and specifically scripting, I thought I'd use existing scripts and do simple substitution of numbers to learn what is going on. I thought I'd start by changing the mining script to be a little less time consuming.

 

I'm trying to change the amount of ore that is taken from a vein and the number of strike times before ore is produced. The default is on every third strike ore is collected, and three pieces per vein. What I want to do is get five pieces in five hits. I got the MineOreScript and changed ResourceCountTotal to 5 and AttackStrikesBeforeCollection to 1, using Notepad++. Then compiled in the CK, and my mod shows up under plugins in NMM. I check it, and go into the game to play and no change. I figure I'm assuming something that is not true. Can and will someone point out what I'm doing wrong.

 

Since all I did was change two numbers in the existing MineOreScript, I didn't post the script. Thanks for any help.

Link to comment
Share on other sites

There's a "StrikesBeforeCollection" and "AttackStrikesBeforeCollection". StrikesBeforeCollection is how many strikes you need if you just activate the ore vein. Attack strikes before collection is how many strikes you need if you attack the ore vein. How were you testing it?
Link to comment
Share on other sites

There's a "StrikesBeforeCollection" and "AttackStrikesBeforeCollection". StrikesBeforeCollection is how many strikes you need if you just activate the ore vein. Attack strikes before collection is how many strikes you need if you attack the ore vein. How were you testing it?

 

 

Not sure what you are asking. The only "testing" I've done on it, is load it and see if it worked. What should I have done?

 

The default of "StrikesBeforeCollection" is "1" and the default of "AttackStrikesBeforeCollection" is 3. I just changed AttackStrikesBeforeCollection". From what you said, I understand that the "StrikesBeforeCollection" is the number of strikes just to activate the vein, and "AttackStrikesBeforeCollection" is the amount of strikes between each AddItem? Is that correct?

 

Thanks for your response.

Link to comment
Share on other sites

UPDATE: The only thing I've been able to change is the number of pieces of ore you get at a time. Still working on the number of strikes needed. Also, I seem to hit a max of 30 hits before vein is depleted, no matter what the other variables are. Anybody got any ideas? Thanks.
Link to comment
Share on other sites

I was just wondering if you were activating an ore vein or attacking it. If you attacked it, then it wouldn't have shown a difference. I usually attack them, it's a lot faster than activating them and waiting. :D

 

I'm just activating.

Link to comment
Share on other sites

  • 8 months later...
I noticed this hasn't been replied to in a while. I was just now planing on moddifying the mining script as well. I'd like them to respawn faster and wanted to see if i could find any information on that. i may also try to implement a similar feature to what you are describing.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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