increase the gold mined from gold mine for undead...

jig7c

Stop reading me...-statement
Reaction score
123
Okay... I have a small bit of a problem..

In my map, you can do an upgrade to increase the gold mined from the gold-mines and it is successful for human, orc, and night-elf, but i'm having a problem
upgrading undead's gold mine..

In the Upgrade editor... I made a custom upgrade that adds +1 to the level of the ability (Blighted Gold Mine) used by the Haunted Gold Mine..it didn't work..

I tried to use trigger, it didn't work..

Code:
Undead GoldLumber
    Events
        Unit - A unit Finishes research
    Conditions
        (Researched tech-type) Equal to Improved Resource Harvesting (Undead)
    Actions
        Set TempGroup = (Units owned by (Owner of (Triggering unit)) of type Haunted Gold Mine)
        Unit Group - Pick every unit in TempGroup and do (Actions)
            Loop - Actions
                Unit - Add Blighted Gold Mine Ability to (Picked unit)
                Unit - Set level of Blighted Gold Mine Ability for (Picked unit) to ((Level of Blighted Gold Mine Ability for (Picked unit)) + 1)
        Custom script:   call DestroyGroup (udg_TempGroup)
        Custom script:   set udg_TempGroup = null
        Set TempGroup = (Units owned by (Owner of (Triggering unit)) of type Ghoul)
        Unit Group - Pick every unit in TempGroup and do (Actions)
            Loop - Actions
                Unit - Add Harvest (Ghouls Lumber) to (Picked unit)
                Unit - Set level of Harvest (Ghouls Lumber) for (Picked unit) to ((Level of Harvest (Ghouls Lumber) for (Picked unit)) + 1)
        Custom script:   call DestroyGroup (udg_TempGroup)
        Custom script:   set udg_TempGroup = null
        Quest - Display to (Player group((Triggering player))) the Quest Update message: improved resource h...
 

HydraRancher

Truth begins in lies
Reaction score
197
What do you mean it didn't work? Are you certain no level increment was applied? Also, you don't need to nullify your groups after you destroy them. Destroy them already nullifies it. If anything, you're re creating it.
 

jig7c

Stop reading me...-statement
Reaction score
123
i read in a tutorial, that u have to set a group to null after destroying it to prevent leaks...

i'm very certain it didn't work... the map starts out with +15 gold mine per acolyte every 1 second/20 lumber per ghoul... and then when the player researches/upgrades Improved Resource Harvesting, it's suppose to do +30 gold mine per acolyte per second/+30 lumber, and then once more upgrade to +45 gold per second/+40 to lumber carried by a ghoul... it stays at +15 gold/20 lumber even after the upgrade
 

HydraRancher

Truth begins in lies
Reaction score
197
No, you just have to destroy it.

The trigger itself looks fine. The only problem I can imagine is the research or the ability.
 

jig7c

Stop reading me...-statement
Reaction score
123
the research seems fine too... thats why i put that quest message in the trigger to make sure it detects the right upgrade... and right after the research is done, the quest message is shown... if you open your WE and look at "blighted gold mine ability" in the undead abilties.. change the level from 1 to 3, and see...

i have currently
Gold per Interval +15
Gold per Interval +30
Gold per Interval +45
-
Duration 1 for all three levels
-
Max number of miners 5 for all three levels, although changing this from 5 to 6 or 7 or 8 doesn't do no good either
-
Mining radius 200 for all 3 levels, although changing the radius doesn't do shit either...

for the upgrade/research part:
I created a new custom upgrade
Effect 1 = Ability Level Bonus
Ability Level Bonus - Base = 1
Ability Affected = Blighted Gold Mine Ability
Ability Level Bonus Increment = 1
Effect 2 = Ability Level Bonus
Ability Level Bonus - Base = 1
Ability Affected = Harvest (Ghouls Lumber)
Ability Level Bonus Increment = 1
 

HydraRancher

Truth begins in lies
Reaction score
197
Hmm. The only thing I can think of is some sort of constant that is affecting it, or a bug to do with the ability. How about uploading your map?
 

jig7c

Stop reading me...-statement
Reaction score
123
View attachment Tic Tac Toe .w3x
theres the map... the above posted trigger is in the Misc trigger category...

there are plenty of other bugs in this game... i'm well aware of it... this is a map i worked on last year, then gave up due to time restrictions for about 6 months, and now i'm picking it up again...
 

NeuroToxin

New Member
Reaction score
46
Question, why are you triggering this? Just make multiple levels of the gold mine ability, then when researched upgrade it. Also, I believe, that the gold mined is based on the ability (Mine Gold) like, with peasants, the lumber taken is in the ability.
 

jig7c

Stop reading me...-statement
Reaction score
123
Question, why are you triggering this? Just make multiple levels of the gold mine ability, then when researched upgrade it. Also, I believe, that the gold mined is based on the ability (Mine Gold) like, with peasants, the lumber taken is in the ability.

1) i'm triggering because its an option, because all other options haven't worked, triggering isn't working either
2) its Blighted Gold Mine Ability, and I have set 3 levels to it, and made an upgrade that makes it +1 level for each research, still doesn't work
3) Undead doesn't have 1 ability which does both lumber and gold, its two different abilities, for ghouls and acolytes...
4) read the above post, which clearly describes, in detail, what i want

please help....
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top