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.

      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