Life Gain TD Trouble

BlackRabbit

New Member
Reaction score
3
I'm trying to make an upgrade that, when completed, gives the player another life [adds 1 to int_lives] and resets so I can research it again and again.

Code:
Add Life
    Events
        Unit - A unit owned by Player 1 (Red) Finishes an upgrade
        Unit - A unit owned by Player 2 (Blue) Finishes an upgrade
    Conditions
        (Researched tech-type) Equal to Essence of Life 
    Actions
        Set int_lives = (int_lives + 1)
        Sound - Play SoulPreservation <gen>
        Game - Display to (All players) the text: ((Name of (Triggering player)) + ((has bought prezzies!  + (String(int_lives))) +  remain!))
        Player - Set the current research level of Essence of Life  to 0 for (Triggering player)

Can anyone tell me why this trigger doesn't function?
 

Parsival

Active Member
Reaction score
6
Check the last line.

Code:
Player - Set the current research level of Essence of Life  to 0 for (Owner of (Triggering unit))

fix'd D:

Have fun.
 

BlackRabbit

New Member
Reaction score
3
-smacks forehead- Thank you! Such a stupid mistake! Doesn't help I've been up longer than 24... Anyways, thank you for pointing that out.

Edit: Still not working. It's not even giving me any of the actions assigned, not even the text or the sfx... Not so sure what I'm failing at...
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Make sure it's an upgrade not a research or something.
 

Parsival

Active Member
Reaction score
6
Anyways, thank you for pointing that out
No problem, and yes: it WAS 'such a stupid mistake' :)


As Moradiae said, You cannot unlearn research.
Just take a look:

bug4s.png


Read those hints from Blizzard. They are usefull :)

What has been seen, cannot be unseen
~4chan
 

Moradiae

TH.net Regular
Reaction score
14
It has been bothering me for a long time now, what's the differences b/n Research and Upgrade?

sorry if this sounds absurd to you but I am have very little to no experience in melee game =3=



edited, @above

item shop? each upgrade/research (item) add +1 to their respective variable and from there, set your actions

so basically doing the adding life action when unit purchases the item and remove the item somehow? (even when the inventory is full)
 

Parsival

Active Member
Reaction score
6
Yes, it's the best way imo. The only thing which annoys me is that '1' in right down corner of the icon :/
Is there any way to get rid of it?

and remove the item somehow
Yep, at the start of the trigger remove item from the game and it will be unseeable :p
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
I second Moradiae. Just make it an item, like a tome which adds nothing, and then when the item is acquired, add to the life.

As for the difference between an upgrade and research, I believe an upgrade would be more like for buildings, when the keep upgrades into a castle, whereas a research is something that increases your stats, something like damage and stuff. I may not be right though :p
 

Moradiae

TH.net Regular
Reaction score
14
ahh I see, but anyhow, a few testing with the event in the trigger should get me an answer,

as for items shop thing, yes, I would also second my stuff :p, *me not good with items*

the 1 at the lower right corner is for "Charged" items I believe? just change the item type to something else?,

I am learning items here :q
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Just use tomes that add nothing, you can buy it even if your inventory is full, and you don't have to remove them.
 

Parsival

Active Member
Reaction score
6
the 1 at the lower right corner is for "Charged" items I believe? just change the item type to something else?,
No. I'm talking about that '1' in the item shop. Not in equipment, because You cannot even see it in eq.

I'm too lazy to make a SS. Argh :p
 

BlackRabbit

New Member
Reaction score
3
Ok, I made an item and adjusted my trigger to use the item instead of an upgrade. Only problem is it keeps yelling at me saying I need a valid patron nearby. Tried giving my builder an inventory, but to no avail. Any ideas? I don't want to have to rush my builder over to the building to get extra lives... >.o

Edit: Hittin' the hay. 6am here, and I need some rest. I'll check back tomorrow morning.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
If you want it to be purchaseable universal, then just create dummy units around the shop that has an inventory and can be selected by the shop. Dummy units that cannot be selected.
 

Parsival

Active Member
Reaction score
6
If you want it to be purchaseable universal, then just create dummy units around the shop that has an inventory and can be selected by the shop. Dummy units that cannot be selected.
Yes, but I think he has other problem, look:
Tried giving my builder an inventory, but to no avail

I think Your shop doesn't have ability to focus that 'valid patron'.
Just check for abilities of normal Blizzard shop and do the same in Your item shop.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Yes, but I think he has other problem, look:


I think Your shop doesn't have ability to focus that 'valid patron'.
Just check for abilities of normal Blizzard shop and do the same in Your item shop.

I was assuming his patron wasn't nearby :p
 

Sajin

User title under construction.
Reaction score
56
Why not use an ability? and in the trigger do the monetary cost and what not
 
General chit-chat
Help Users
  • 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

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top