Bringing Back Other Than Gold From A Mine?

Swiftbeard

New Member
Reaction score
0
Is there a way to bring back something other than gold from a gold mine?

What I'm trying to do is make it so instead of gold, a worker brings back lets say...points for an ingame score board, or something of that nature. Or maybe the worker brings back lumber.

Is this possible?
 

Vicboy

Ultra Cool Member
Reaction score
44
Cool, I can still come up with a way to do this without even having used the world editor for 5 months!
 

Galdiuz

Creator of Photon Command
Reaction score
98
Its possible and easy to do ;)
Just don't says it's possible to do, say how to do it too.

Anyway, i think it should be possible to trigger so you ''bring back'' point from the mine, using custom abilities. You could make so that if you get more that 0 gold, remove gold and save the gold gotten into a integer. Ýou wouldn't be able to use gold then though.
 

Swiftbeard

New Member
Reaction score
0
Well...what if I wanted to use this point system and still be able to use gold?

Like, I want to have a gold mine, but I also want to have another structure that brings back points

Also, is it possible for if I wanted to created a certain unit, these points would be required.

Heres exactly what I want to do:

I want to make an Oil type resource.

I want to have it so when my oil well is created, it acts as a type of "gold mine" but instead of workers bringing back gold, it brings back "oil" (thats where the points come in).
 

Galdiuz

Creator of Photon Command
Reaction score
98
You could do the point gathering system with some abilities, like this: if a unit casts ability X at gathering thingy, pause unit for 3 seconds, set it's custom value to some value, then order it to cast ability Y at closest return point. Then, if a unit casts ability Y, order it to cast ability X at closest gathering spot. Everytime a unit casts ability Y at return spot, you add the custom value of the unit to the Point integer and then set it's custom value to 0.

And to use point while creating units, just check when a unit starts training, and then remove the point costs from the point integer, and if the points in the point integer is less than the point costs of the unit is, stop training.

Well, I hope it was not too confusing. :p
 

Moridin

Snow Leopard
Reaction score
144
Haha. You don't need custom values lol. Just to make sure, the system I describe below gives you points as you gather gold. If you want seperate gathering for gold and for oil, then you will need to alter it slightly.

-> Create an integer variable "Points"
-> Make a trigger along the lines:
If player gold increases:
Set Points = Points + <However many points you want per gather>

That will give you the points. For the buying units thing:

-> Make the unit completely free.
-> Make a trigger like:
A unit is bought
(Triggering unit) is <Your point costing unit here>
If Points >= Cost_of_Unit then
do nothing
else
Remove (Triggering unit)
Game - Display text to (Triggering Player) "You don't have enough points".

Something like that should work fine for you.
 

Wratox1

Member
Reaction score
22
cant u just make a new ability based on the ability the mines use and then change so it work as u wants? its worth a try;)
 

Xienoph

You can change this now in User CP.
Reaction score
43
How is the gold acquired?

Here's a way to do it: change Gold icon and any "Gold" texts into "Oil." Change the Lumber icon and "Lumber" texts into "Gold." You can do all of that from the Gameplay Interface. This will work as long as your workers doesn't "mine" trees ... or they'll start getting gold.

You can try to fix this by using the "Harvest (Gold and Tree)" ability, and setting the lumber capacity to 0.
 

Swiftbeard

New Member
Reaction score
0
well i still want the ability to harvest gold and lumber. But i wanna make an oil resource too.

Edit: I had an idea. Ill explain later, but how do I make it so gold can be returned to a building other than the town hall?

2nd Edit: Nvm, figured it out. I made the worker a ship and the new source to bring back gold a building that's sea pathable. But for some reason the ship is trying to still bring back gold to the town hall which is alot farther away than the new source. Why?

Also, I'm having trouble setting up a leaderboard for the "oil" points. I cant get one to show up.
 

Dynamis

New Member
Reaction score
2
well i still want the ability to harvest gold and lumber. But i wanna make an oil resource too.

Edit: I had an idea. Ill explain later, but how do I make it so gold can be returned to a building other than the town hall?

2nd Edit: Nvm, figured it out. I made the worker a ship and the new source to bring back gold a building that's sea pathable. But for some reason the ship is trying to still bring back gold to the town hall which is alot farther away than the new source. Why?

Also, I'm having trouble setting up a leaderboard for the "oil" points. I cant get one to show up.

Did you add the Return Resource ability to your sea building?
 

Swiftbeard

New Member
Reaction score
0
Yes.

I can even tell the worker to go return the gold to the new source, but when the worker returns to the custom gold mine, it keeps trying to go to the actual town hall.
 

Swiftbeard

New Member
Reaction score
0
alright thanks. But could sum1 help me with the leaderboard in the mean time? I can't seem to figure out how to set one up with the triggers.
 
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