Need help with four questions

Misseo

New Member
Reaction score
0
I've been fiddling for a few days with four questions, trying to make them work using a few triggers and
spells, but unsuccesful. And now I've been searching around on these boards for about an hour looking for
answers, once again unsuccesful. I'm sure they're around, so I would like to apologise in advance for making
a new topic with questions that's probably been answered a few hundred times.

The questions are as following:

1. I've changed a guard tower into having the model of "Tree of Eternity/Tree of Ages/Tree of Life". My problem is
that this tower is uprooted when the construction has finished. I would like it to start as rooted (and stay that
way throughout the game), but without having to give them the "root/uproot"-ability. How can I do this?

2. This is the question that I believe must've been answered at least 200 times. I need my tower to autocast "shockwave"
everytime the cooldown is over. How do I make this spell autocast?

3. I need a certain tower to give me X wood / Y sek. Let's say I need each guard tower to give me '1 wood/10 sec'
(Having two guard towers would obviously give me 2 wood/10 sec), but only when it's active. If the tower is
sold or destroyed, it should immediatly stop giving me 1 wood/10 sec. Is this possible and how?

4. When I've trained a worker from my main tower, I need a trigger which removes the "Train Worker"-button from this tower,
so one only can have a single active worker at a time. I've tried working around this trigger:

removeworker.png


I gave the Town Hall the "Sell units"-ability, so that shouldn't be the problem. Which trigger should I use here?

I hope someone can help me.
Cheers, Misseo :)
 

LightChaosma

New Member
Reaction score
60
1: give it clasification acient??
other than that i dont really have a clue...

2: make the CD of shockwave like 0.10 shorter as tower CD

make trigger:
e
unit is attacked
c
unit type of attacking ujnit == tower
a
order attacking unit to shockwave

3
triggers

add those towers to a preset unitgroup(i guess u know how)

trigger
e
every 10 seconds of the game
c

a
pick every unit in (urunitgrouphere)
add 1 lumber to owner of (picked unit)

4
then ur event is wrong, unit finishes selling a unit, or unit selles a unit or so
 

tooltiperror

Super Moderator
Reaction score
231
1: give it clasification acient??
other than that i dont really have a clue...

2: make the CD of shockwave like 0.10 shorter as tower CD

make trigger:
e
unit is attacked
c
unit type of attacking ujnit == tower
a
order attacking unit to shockwave

3
triggers

add those towers to a preset unitgroup(i guess u know how)

trigger
e
every 10 seconds of the game
c

a
pick every unit in (urunitgrouphere)
add 1 lumber to owner of (picked unit)

4
then ur event is wrong, unit finishes selling a unit, or unit selles a unit or so​

It's very unclear what you mean, and I don't think the OP can understand you either. Please try to use WC3 Tags. If you do not know how to use them, refer to the stickies of this forum.
 

Joccaren

You can change this now in User CP.
Reaction score
54
Welcome to the Helper!!!

1.
change the required animation names in the Art section to match the ones on the normal Tree of Life/Ages/Eternity
2.
Trigger:
  • Autocast Shockwave
    • Events
      • Time - Every (Cooldown of shockwave) seconds of game time)
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in playable map area matching (Unit type of (Matching Unit) equal to (Your Tower)) and do actions:
        • Loop
          • Unit - Order (Picked Unit) to (Orc - Tauren Cheiften Shockwave)) (Your point here)


3.
Trigger:
  • Rescource Towers
    • Events
      • Time - Every 10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in playable map area matching (Unit type of (Matching Unit) equal to Rescource Tower) and do actions:
        • Loop
          • Player - Add 10 to (Owner of (Picked Unit))s gold


4.
You should change Selling unit to triggering unit
 

azareus

And you know it.
Reaction score
63
Trigger:
  • Rescource Towers
    • Events
      • Time - Every 10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in playable map area matching (Unit type of (Matching Unit) equal to Rescource Tower) and do actions:
        • Loop
          • Player - Add 10 to (Owner of (Picked Unit))s LUMBER
Guess that was what you meant.:p
 

Misseo

New Member
Reaction score
0
Thank you! The help is much appreciated, but unfortunately still doesnt work. Not sure what I've done wrong though.

1. Seems like you if you remove 'root/uproot', it just won't root.

2. I still have a problem here as well:

shockwaveo.jpg


at the red box marked with 1, I'm having trouble finding out what to enter to get (Cooldown of Shockwave) up? At the two boxes marked with 2, I used "Unit - Issue order targeting a unit" and here I can't find (Orc - Tauren Chieften Shockwave) nor what I should replace (Your point here) with to make it attack any unit that gets in range of the spell? I'd also like to know what to do, if I want to use a costum spell?

3. I should've written that I already tried this, sorry. Problem with this trigger is, that when a tower is destroyed, it still gives you 1 wood/10 sec.

4. Pretty much tried replacing "Selling unit/Sold unit/Trained Unit" with everything, and it still doesn't work. Is it only possible, if the tower you buy it from is neutral?

Hope you can help me further :)
 

madd_999

New Member
Reaction score
14
1.
try to set "art - Requirement animation names" to alternate

2.
try this trigger:
Trigger:
  • auto shockwave
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Guard Tower
    • Actions
      • Unit - Order (Attacking unit) to Orc Tauren Chieftain - Shockwave (Position of (Attacked unit))


3. it shoudent do that.. becous if there is no building you will get a loop that will run 0 times adding 0 times 10 wood every 10 seconds

4. does he need to remove the button after your unit is trained of just remove it at all??

if its after use this trigger:
Trigger:
  • only 1 builder
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to worker
    • Actions
      • Player - Make worker Unavailable for training/construction by Player 1 (Red)

(this trigger only works for player 1, but i think you know how to make it work for more players :p..)
 

Marsmallos

Member
Reaction score
17
at the red box marked with 1, I'm having trouble finding out what to enter to get (Cooldown of Shockwave) up? At the two boxes marked with 2, I used "Unit - Issue order targeting a unit" and here I can't find (Orc - Tauren Chieften Shockwave) nor what I should replace (Your point here) with to make it attack any unit that gets in range of the spell? I'd also like to know what to do, if I want to use a costum spell?

1. no (cooldown of shockwave) function exists. He just means that you enter the cooldown for shockwave there, i e 10 seconds, if that is your cooldown
2. Orc Tauren Cheftain Shockwave is a Ability Targetting a Point action. Once you got that one right you'll be able to enter the point where he should aim the ability.

but really, just use the trigger madd_999 posted instead
Trigger:
  • auto shockwave
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Guard Tower
    • Actions
      • Unit - Order (Attacking unit) to Orc Tauren Chieftain - Shockwave (Position of (Attacked unit))
 

Misseo

New Member
Reaction score
0
1. no (cooldown of shockwave) function exists. He just means that you enter the cooldown for shockwave there, i e 10 seconds, if that is your cooldown
2. Orc Tauren Cheftain Shockwave is a Ability Targetting a Point action. Once you got that one right you'll be able to enter the point where he should aim the ability.

Seriously, how could I be this stupid :p ?

madd_999, you're the man! Thanks a bunch!

I still can't make the third trigger work (that would be my third question). I did this:

harvestlumber.jpg


and compare to

Trigger:
  • Rescource Towers
    • Events
      • Time - Every 10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in playable map area matching (Unit type of (Matching Unit) equal to Rescource Tower) and do actions:
        • Loop
          • Player - Add 1 to (Owner of (Picked Unit))s lumber


The problem still is that when a tower is destroyed, it still gives you 1 wood/10 sec. Can't see what I did wrong?
 

madd_999

New Member
Reaction score
14
it should have worked..

Seriously, how could I be this stupid :p ?

madd_999, you're the man! Thanks a bunch!

Thanks :) glad i could help..

I still can't make the third trigger work (that would be my third question). I did this:

harvestlumber.jpg


and compare to

Trigger:
  • Rescource Towers
    • Events
      • Time - Every 10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in playable map area matching (Unit type of (Matching Unit) equal to Rescource Tower) and do actions:
        • Loop
          • Player - Add 1 to (Owner of (Picked Unit))s lumber


The problem still is that when a tower is destroyed, it still gives you 1 wood/10 sec. Can't see what I did wrong?

your not doing anything wrong as far as i know..
i used this trigger to test it:
Trigger:
  • Melee Initialization
    • Events
      • Time - Every 2.00 seconds of game time //just to make the test time lower
    • Conditions
    • Actions
      • Player - Set Player 1 (Red) Current gold to 10000 // so i can build infinite scout towers
      • Set wood_given = (Number of units in (Last created unit group))
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Scout Tower)) and do (Actions)
        • Loop - Actions
          • Player - Add 1 to (Owner of (Picked unit)) Current lumber
          • Set wood_given = (wood_given + 1)// to count the amount wood that should be given
      • Game - Display to (All players) the text: (String(wood_given))//to give me the message how much wood is given
      • Set wood_given = 0//to reset the amount of wood for the next run..


and it worked.. the only thing i added were the checks for the amount of wood given.. and the gold gain so i could build infinite scout towers..

something i did notice that i only needed to start building my scout tower to get the wood and leave them unfinished..
 

Attachments

  • testmap.w3x
    17.9 KB · Views: 161

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
1: Don't Know Sorry

2: I would make a periodic trigger that orders the tower to use the spell.

3:
Trigger:
  • Untitled Trigger 003
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Add ((Number of living Scout Tower units owned by (Picked player)) x 1) to (Picked player) Current lumber


4: You will need to add the unit via trigger to remove it using the trigger.
 

Misseo

New Member
Reaction score
0
Sweet, I got all four working now. Thanks!

But now I'm stuck with another problem :p

I need a sell button for my towers (returning 50% of the paid gold), and I've used this trigger:

selltower.png


Thing is, no matter how much cash the tower cost, it only returns 50 gold. What should I change?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • 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 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