Parachute-type Drop

DiDdY

New Member
Reaction score
14
Hello, TheHelper.Net.

For a map I am assisting, I need some help. The aim of this, is to drop, at certain points, some kind of boxes containing different amounts of gold.

So far, I have this;

Trigger One; (it won't actually be a dragonhawk).
Code:
Creating Plane
    Events
        Time - Every 10.00 seconds of game time
    Conditions
    Actions
        Unit - Create 1 Dragonhawk Rider for Neutral Passive at (Center of Rect 004 <gen>) facing Default building facing (270.0) degrees
        Unit - Order (Last created unit) to Move To (Center of DropPoint[(Random integer number between 0 and 3)])

Trigger Two; (setting the regions).
Code:
Setting Regions
    Events
        Map initialization
    Conditions
    Actions
        Set DropPoint[0] = Rect 000 <gen>
        Set DropPoint[1] = Rect 001 <gen>
        Set DropPoint[2] = Rect 002 <gen>
        Set DropPoint[3] = Rect 003 <gen>

Trigger Three; (dropping, not completed)
Code:
Droping Item
    Events
        Unit - A unit enters Rect 000 <gen>
        Unit - A unit enters Rect 001 <gen>
        Unit - A unit enters Rect 002 <gen>
        Unit - A unit enters Rect 003 <gen>
    Conditions
        (Unit-type of (Triggering unit)) Equal to (==) Dragonhawk Rider
    Actions
        Unit - Order (Triggering unit) to Move To (Center of Rect 005 <gen>)
        Unit - Create 1 Footman for Neutral Passive at (Position of (Triggering unit)) facing Default building facing (270.0) degrees
        Unit - Add Crow Form to (Triggering unit)
        Unit - Remove Crow Form from (Triggering unit)
        Animation - Change (Last created unit) flying height to (Current flying height of (Triggering unit)) at 0.00
        Animation - Change (Last created unit) flying height to 0.00 at 100.00
        Unit - Add a ((Current flying height of (Triggering unit)) / 100.00) second Generic expiration timer to (Last created unit)
        Wait (Elapsed time for (Last started timer)) seconds
        Unit - Remove (Last created unit) from the game
        Item - Create Gold Coins at (Position of (Last created unit))

Okay, the aim of trigger 3 is to drop a footman from the DragonHawk riders height to the floor.. Unfortunately this doesn't work - any suggestions?

Any ideas?

EDIT: Changed DropPoint[1] etc..
 

Artificial

Without Intelligence
Reaction score
326
One way to do it:
Create a dummy unit with the model of an item. Create one of those dummies at the region, add crow form to it, remove the crow form, and then set it's fly height to the height of the Dragonhawk guy with rate 0 (immediate). Then set it's fly height to 0 with the rate 100, add a (Fly height of the Dragonhawk guy / 100) second expiration timer for it and wait that same amount of time. After the wait create an item in the rect (in the same position you created the dummy at). x)
 

DiDdY

New Member
Reaction score
14
One way to do it:
Create a dummy unit with the model of an item. Create one of those dummies at the region, add crow form to it, remove the crow form, and then set it's fly height to the height of the Dragonhawk guy with rate 0 (immediate). Then set it's fly height to 0 with the rate 100, add a (Fly height of the Dragonhawk guy / 100) second expiration timer for it and wait that same amount of time. After the wait create an item in the rect (in the same position you created the dummy at). x)

Any chance, you could just quickly do a right up of that simply GUI lines? No point opening WE (unless you're really kind :p).
 

DiDdY

New Member
Reaction score
14
Not sure if this counts as bumping but;

Updated post 1, I've tried to do as you say Artificial, but failed, and it doesn't work. I've also attatched the map here because you can't do that via editing.

Note: All the barracks are for creating units to test the 'Last created unit' thing, but I'm not sure about that either.

PS: The errors are; the footmen don't drop, they just stand there. They fall to fast, the dragonhawk riders don't go where orderd, and more, just try it out.
 

Attachments

  • Plane.w3x
    11.4 KB · Views: 101

Cokemonkey11

New Member
Reaction score
18
to make the footman drop from the sky, your going to need another trigger with a periodic event that is initially disabled and a variable set to your dropping unit (footman)

so in the thirrd trigger say

set variableUnit = last created unit (footman)
turn on trigger 4
wait 5 seconds
turn off trigger 4
set flying height of footman to 0 over 0

in trigger 4 you'll want
every .03 seconds of game time
set variableUnit's flying height ((current flying height of variableUnit) - 10)

Hope this makes sense

ps - i didnt open ur map so sorry if this is wrong or if there are other problems i'm not adressing.
 

DiDdY

New Member
Reaction score
14
to make the footman drop from the sky, your going to need another trigger with a periodic event that is initially disabled and a variable set to your dropping unit (footman)

so in the thirrd trigger say

set variableUnit = last created unit (footman)
turn on trigger 4
wait 5 seconds
turn off trigger 4
set flying height of footman to 0 over 0

in trigger 4 you'll want
every .03 seconds of game time
set variableUnit's flying height ((current flying height of variableUnit) - 10)

Hope this makes sense

ps - i didnt open ur map so sorry if this is wrong or if there are other problems i'm not adressing.

I'll try it, but the -10 bit will probably cause errors, and bad timing, and eventually the unit will go past the ground.

Anyway, thanks for trying and I'll edit this post when I've tried it. :eek:
 

Artificial

Without Intelligence
Reaction score
326
Ok, Elfie, you made a couple of mistakes in the trigger.
Code:
Unit - Add Crow Form to (Triggering unit)
Unit - Remove Crow Form from (Triggering unit)
You were supposed to add that to the last created unit.
And the wait should be like this:
Code:
Wait ((Current flying height of (Triggering unit)) / 100.00) seconds
And you might want to store the last created unit into a variable so it won't get overwritten by another trigger that creates a unit. :p
 
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