Help with fuel system

unknown666

New Member
Reaction score
5
Hey,

I'm trying to create a fuel system, when a unit enters the car it will learn the spell Engine ON, and delete Engine OFF, but now I got the problem:

What condition do I need to use to recognise the newly learned skilled .. ie.

Ability learned equal to Engine ON, and what trigger do I have to use to make the car lose mana?

Now I got

Trigger:
  • Fuel system
    • Events
    • Unit - A unit learned a skill
    • Conditions
    • Actions
      • If - Conditions
        • Then - Actions
        • Else - Actions


Kind Regards,

unknown666
 

Azlier

Old World Ghost
Reaction score
461
I think I may have something simple, because I understand nearly nothing of what you said. All you need is Immolation that deals no damage. Just change some text and edit the mana value to something like 1 and you're done... with the ability.

You would need two triggers detecting when you turn it on or off to change speed. They would have to check the order string when a unit is issued an order, I'd do it myself but I don't have WC3 anymore. the only problem with this is that you could drive the car even without a driver...

EDIT: I see you now posted a trigger. It will only work if the car is a hero learning an ability... I think.
 

Cookiemaster

New Member
Reaction score
36
Base the engine ON ability on Brilliance aura, set percent bonus to false and set mana regeneration increase to a negative value. Make sure to add "Self" to targets allowed.
 

Curo

Why am I still playing this game...?
Reaction score
109
Code:
Events
   A unit is loaded into a transport
Actions
   Unit - Remove ability (Engine OFF) from [I]transport[/I]
   Unit - Add ability (Engine ON) to [I]transport[/I]

Then have a periodic trigger:

Code:
Events
   Every [I]x[/I] seconds of game time
Actions
   Set [I]unit_group[/I] = Units of type [I]transport[/I]
   Pick every unit in [I]unit_group[/I] and do:
      If  - (Picked unit) has ability (Engine ON)
      Then - Set (Picked unit) mana = ((Picked unit) mana - [I]consumed fuel amount[/I])
   Custom script: Call DestroyGroup (ugd_unit_group)

Something like that? Done freehand so it may have errors.

The Brilliance Aura thing works as well assuming you have no other need for Brilliance Aura and you don't mind the 2 extra seconds auras last after you remove them. My trigger can also be tweaked if you want to use gold, lumber, food, or health as fuel instead of mana.

Personally what I would do for my own purposes is make a spell called Turn Engine On/Off that requires a dummy unit named "Driver". Then I would use a trigger that detects when a unit is loaded into the car, and create/transfer the dummy unit for/to the owner of the driver unit. Then I would have another trigger that detects when "Turn Engine On" is used, and I would start a timer that periodically drains fuel/mana. Likewise, when "Turn Engine Off" is used, pause/destroy the timer. But that's just me. I like that because you can have a unit in the car with the engine still off, and you can turn it on and off whenever you want as long as there is a driver.
 

unknown666

New Member
Reaction score
5
thank's for the reply, both, and sorry I made the thread so unclear =\

@cookiemaster
I got the brilliance aura now, but I can't set the mana regeneration bonus to a negative value.

@azlier
the immolation is a good idea, but I go with curo's triggers.
And you brought me on the idea to make extra speed on costs of more mana and slower on less mana, thanks alot ^^

@Curo
Aah, that one would do the trick :) thanks for your time

all 3 +rep
 

Azlier

Old World Ghost
Reaction score
461
I got the brilliance aura now, but I can't set the mana regeneration bonus to a negative value.

Hold shift while opening the field up and edit the value?
 
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

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top