• 0

    posted a message on how to adress magazine unit?

    ...or a function that simply decrements the amount of magazine's ammo

    I found the funcion:

    void UnitMagazineArm ( unit u, abilcmd abilcmd, int count)

    but it doesn't accept negative values of count parameter.

    Posted in: Triggers
  • 0

    posted a message on how to adress magazine unit?

    I want to create a trigger to kill a magazine unit, like carrier's interceptor.

    Is there any function to adress magazine units of some unit?

    Posted in: Triggers
  • 0

    posted a message on "Build/launch nuke"-like ability but for turret - how?

    I've experimented a little and realized that Use Magazine effect releases ammo from carrier's magazine if only it's weapon's attack effect and magazine's holder has enemy unit in range. I tried some ways but wasn't able to retrieve a single interceptor from the carrier without enemy unit's help.

    So seems like I can't use Use Magazine effect when I peacefully building turrets.

    Posted in: Data
  • 0

    posted a message on "Build/launch nuke"-like ability but for turret - how?

    Well, now Use Magazine effect just does nothing. Even If I put it to the Calldown Effect field of Arm Magazine ability. Seems like it doesn't interatcs with the magazine. How carrier links his use magazine effect with his angar to release interceptors after using Use Magazine effect?

    Posted in: Data
  • 0

    posted a message on "Build/launch nuke"-like ability but for turret - how?
    Quote from DrSuperEvil: Go

    Use calldown can take ammo from any magazine. Dont know exactly how it determines which magazine is depleted first.

    Alright, then I'm going to try to use the carrier's Use Magazine function. Carriers always use their own magazine obviously.

    Posted in: Data
  • 0

    posted a message on "Build/launch nuke"-like ability but for turret - how?
    Quote from DrSuperEvil: Go

    I thought calldown auto destroyed the magazine ammo units to use the effect?

    I've just realized: it depends on the option. Ability - Information+ -> descending list at bottom.

    So, now I have the last issue to solve - barracks can callback from other barracks magazines. Like Ghost who doesn't care what academy his nuke comes from.

    Posted in: Data
  • 0

    posted a message on "Build/launch nuke"-like ability but for turret - how?
    Quote from DrSuperEvil: Go

    I thought calldown auto destroyed the magazine ammo units to use the effect?

    I wish it is to be like this. But it just kinda unloads them form the magazine and puts to the land. Maybe it depends on some properties.

    I hope I will find a way to destroy the ammo instantly because in spite of timed life behavior's time = 0, there is a tiny moment exists when you can build 2 turrets by destroying just one ammo.

    Btw, I've got a problem which's probably easy to solve but I just don't know how. THere is my map attached, you can try it if I explain it bad.

    There are 2 barracks on the map.

    I buiild a turret in barracks 1. Then I build a turret in barracks 2. Then I place the turret from barracks 2. Ang guess what happened? It destroys ammo of barracks 1, instead of barracks 2. But I want each barracks to have its own magazine.

    Posted in: Data
  • 0

    posted a message on "Build/launch nuke"-like ability but for turret - how?

    Ok, I just found a way how to apply timed life behavior to the called down fake turret.

    DrSuperEvil, thank you very much, your advices were very useful. I lost a bit of my noobness during our conversation.

    Although I still have a couple of issues to solve, I feel I can solve them myself.

    Posted in: Data
  • 0

    posted a message on "Build/launch nuke"-like ability but for turret - how?

    I just decided to build fake turret unit as ammo in magazine instead of autoturret. Because I need magazine like a counter, it's just abstract value thet shows how many times a player has build a turret. I'm going to place different permanent turrets of various types.

    And I want my place turret ability to do 2 things:

    [place a permanent turret via Create Unit effect] [calldown fake turret from magazine and simply kill it]

    If I give the timed life behavior to my fake turret, it kills fake turret instantly, when it appears in magazine after using Rearm Magazine ability. So I need a validator which activates timed life behavior only after the fake turret was called down. And that's the problem. I can't find an appropriate validator.

    The second way was to use Apply Behavior effect together with calldown. But I can't adress the right object. I can kill barracks, I can kill permanent turret, but I can't force behavior to be applied to the fake turret.

    If I will be able to kill fake turret at calldown moment, it will solve the whole topic issue.

    Posted in: Data
  • 0

    posted a message on "Build/launch nuke"-like ability but for turret - how?

    Well, for now I have one last (I believe it's last) issue to solve.

    I want to destroy a fake turret unit which I create instead of turret inside magazine.

    I just tried to use killing behavior after creation like Raven does to its turrets. I failed in it.

    Now I'm trying to find a validator which can tell if a unit inside or outside. So it will apply behavior after unit find itself on land.

    Posted in: Data
  • 0

    posted a message on "Build/launch nuke"-like ability but for turret - how?
    Quote from DrSuperEvil: Go

    Broodlord has an external magazine and the escourts convert themselves into missiles when they attack and equivalently suicide before creating broodlings on impact. The brood lord weapon purely guides the escourts.

    Then what "release magazine"-type broodlord's effect do? Why does it need it if his escourts sacrifices units from magazin by suicide?

    Quote from DrSuperEvil: Go

    Are you using a Use Magazine or a Use Calldown effect? Seems all your ability is doing is creating a new turret via the Create Unit effect and not using one from the magazine.

    I was actiually using "release magazine" because I thought that this effect sacrifices units from magazine. And yes, apparently the only thing my ability was doing - is just creating new turret via Create Unit effect.

    But now I've tried to use Calldown effect. And it worked, but kinda weired.

    So, I have the Effect - Target "place turret" ability with only Use Calldown effect attached, which also attached to calldown effect field of Arm Magazine ability, so that's the link I was searching for.

    How it works now:

    1. If I have 0 turrets created, the place turret button is still enabled, but it doesn't build anything if I try to (how to keep it disabled until turret's ready? [SOLVED])

    2. If I have some turrets created, I can place a turret to the land via "place turret" ability, but it appears near the barracks (instead of the point I pointed) and it starts to attack the barracks so I have to order it to stop doing that (how to force it to appear at the point I pick? [SOLVED])

    3. After a turret appears on the land, the quantity of turrets in magazine does not decrease. It decreases only when the turret got destroyed. But i'd like the ability to sacrifice the turret from the magazine at the moment I place it.

    So, at this point the main problem is solved, so thank you DrSuperEvil and BorgDragon, and i'm trying to solve these little issues myself, but still hints are welcome.

    UPD:

    Ok, I have solved 1 and 2 issues, so now, the only thing I want - is to force my ability to decrease amount of turrets in magazine at the moment I use it. Some kind of:

    ability: [calldown the turret and destroy it] + [build another turret which doesn't counts as turret from magazine]

    any ideas? Is there an effect which just removes ammo unit from magazine?

    It's becasue turrets in magazine are not actual turrets. It's just a counter. There will be 3 kinds of turrets, small medium and big. They will consume 1, 2 and 3 ammo units from magazine respectively when get build. So i'd like to divide calldown part and building part of using magazine.

    Posted in: Data
  • 0

    posted a message on "Build/launch nuke"-like ability but for turret - how?

    Alright, I did something, it doesn't work, but let me explain first what exactly I want to get.

    Turrets are building and gathering inside barracks, they are waiting to be placed. After a player has placed a turret it disappears from barracks' magazine and appears at land as turret.

    So I've used "release magazine" effect instead of "use magazine" because I want "place turret" ability to consume turrets from magazine.

    Ok, what have I created:

    - Arm Turret ability ("arm magazine" type) which rearms turrets in barracks.

    - Place Turret ability ("effect - target" type) which builds turrets and supposed to consume turrets from barracks' magazine. This ability executes 2 effects: 1. Place Turret effect ("create unit" type) 2. Release Turret effect ("release magazine" type)

    But seems like Arm Turret ability and Release Turret effect aren't linked, because Place Turret button is always enabled and i can build infinite turrets even if there is 0 turrets created by Arm Turret Effect.

    I want Place Turret button to be disabled when there is no turrets in magazine, and i want it to be enabled when some turrets are in magazine, and I want turret placemant to consume 1 turret from magazin.

    The question: how to link arm turret magazine ability and release magazine effect?

    I've inspected broodlords stuff but found no kind of links between its magazine and release effect... So i'd be glad to recieve some hints or reciples.

    Posted in: Data
  • 0

    posted a message on "Build/launch nuke"-like ability but for turret - how?

    BorgDragon, right, I've replaced the effect and now it can target land.

    Ok, now, since I've got well working turret building effect based on Effect - Target ability, I'm going to follow DrSuperEvil's advices to make it quantity-dependent.

    Quote from DrSuperEvil: Go

    Use magazine does not have that option

    There "set"-type effect is used. It includes "build unit"-type effect and "use magasine"-type one.

    Posted in: Data
  • 0

    posted a message on [solved] How to force barracks to build a turret with raven's ability

    wow, it works! thank you so much!

    Posted in: Data
  • 0

    posted a message on [solved] How to force barracks to build a turret with raven's ability

    Just have no idea what else could I try to disable or enable... I tried evrything and nothing happened... But I'm still pretty sure it's very simple.

    Posted in: Data
  • To post a comment, please or register a new account.