Figured it out, and I can shave an entire trigger off your setup: If you change the Target Filter to "Neutral" instead of Ally, you can leave the vehicle player neutral and this will work as well, which doesn't require an "alliances" trigger to initialize.
@ShadowDancer93, you should find trigger conditions for "unit is killed" - use this condition and actions for "modify unit property" like this:
Event - Any unit is killed
Variable - k = Unit Kills (Cargo Unit in (Killing Unit) in slot 1)
Condition - Comparison (Unit has ability - Killing Unit has <YOUR DRIVER SEAT ABILITY HERE>)
Actions - Cycle k from 1 to 1000000000
Set Unit Property: Killing Unit, kills, 0
Set Unit Property: Cargo Unit in Killing Unit in slot 1, kills, k
Figured it out, and I can shave an entire trigger off your setup: If you change the Target Filter to "Neutral" instead of Ally, you can leave the vehicle player neutral and this will work as well, which doesn't require an "alliances" trigger to initialize.
@ShadowDancer93, you should find trigger conditions for "unit is killed" - use this condition and actions for "modify unit property" like this:
Event - Any unit is killed
Variable - k = Unit Kills (Cargo Unit in (Killing Unit) in slot 1)
Condition - Comparison (Unit has ability - Killing Unit has <YOUR DRIVER SEAT ABILITY HERE>)
Actions - Cycle k from 1 to 1000000000 Set Unit Property: Killing Unit, kills, 0 Set Unit Property: Cargo Unit in Killing Unit in slot 1, kills, k
the only reason i have that trigger was for my map, neutral works fine, but my map neutral was already being used for else things.
Load
Event: Any unit loads cargo
Condition: Owner of triggring unit=player0
Condition: Or bracket with "type of triggering unit=" for each mount you have
Action: Change ownership of triggering unit to (owner of triggering freight unit)
Unload:
Event: Any unit unloads cargo
Condition: Number of alive units in (cargo units in triggering unit) =0
Condition: Or bracket with "type of triggering unit=" for each mount you have
Action: Change ownership of triggering unit to player 0
This check:
Condition: Or bracket with "type of triggering unit=" for each mount you have
Would be better if it were "Unit has ability" and you specify the driver seat ability unique to all your vehicles. Then you won't have to modify this trigger if you implement a new vehicle.
k is an integer variable you declare to do 3 things: store the hero's kills before the event, increment the number and finally reset the hero's kill count to this number after the event. Cycling k is equivalent to k = k + 1.
This will work for kills, I have no idea about experience.
However this topic has been death/quiet for a while... I think I should ask this here.
I noticed when my unit is inside a 'Vehicle' he shoots as well. How do I prevent this?
It might be possible this has been answered before. In that case my apologies.
Sorry I wasn't clear enough. What I want to do is this. (Bad mspaint job)
Side units shown in order are Raven, Viking, and Phoenix.
The ground units are just there to show how the units are supposed to be. They are on land. I want the units (the air units) to be shown sideways. I know how to scale the units to make them bigger or smaller, but I want to know how to turn them around or flip them. I want them to be shown sideways like that throughout the whole game.
The person who made reaper arena (at least, I think thats the name) did that. I would send him a Pm. I'll edit this post with a link if I find the map.
However this topic has been death/quiet for a while... I think I should ask this here.
I noticed when my unit is inside a 'Vehicle' he shoots as well. How do I prevent this? It might be possible this has been answered before. In that case my apologies.
Thats the easiest code...
If you want certain things only then make a new ability using the Bunker - Load / Medivac - Load Ability and make a condition that says
Thanks for the tutorial. I'm trying to use this for a possession-ability, where the caster casts a dummy ability on target (range 1) and the target by triggers gains the comand center load ability and is ordered to load the caster. The problem is the caster isn't loaded. I can, however, as the caster unit, right click on the transport to get loaded.
This is the action:
Unit - Order (Triggering ability target unit) to (Ghast - Shell - Load (Command Center) targeting (Triggering unit)) (Replace Existing Orders)
Anyone got an idea why this isn't working? I've also tried the Load (Bunker) command. Thanks
Edit: I got it to work by using the data editor instead. I also need to figure out how to remove the cargo status UI that overrides the weapon and armor UI for the transporting unit.
To start i just want to say this is a wonderful tut, though I had a little difficulty I eventually got it. But what I'm trying to do is make it where you are a civil, and you get into an scv as your mount. it is working well but one problem, when the civil gets into the scv the scv`s build ability vanishes!! Now i believe that it has something to do with the bunker ability, In Example when u enter a bunker you can not sell it because there is a unit occupying it. but even in this case the ability doesn't just disappear you just cant use it.. so I`m lost any help is appreciated!
Btw this my first post on sc2mapster :P
Figured it out, and I can shave an entire trigger off your setup: If you change the Target Filter to "Neutral" instead of Ally, you can leave the vehicle player neutral and this will work as well, which doesn't require an "alliances" trigger to initialize.
@ShadowDancer93, you should find trigger conditions for "unit is killed" - use this condition and actions for "modify unit property" like this:
Event - Any unit is killed
Variable - k = Unit Kills (Cargo Unit in (Killing Unit) in slot 1)
Condition - Comparison (Unit has ability - Killing Unit has <YOUR DRIVER SEAT ABILITY HERE>)
Actions - Cycle k from 1 to 1000000000 Set Unit Property: Killing Unit, kills, 0 Set Unit Property: Cargo Unit in Killing Unit in slot 1, kills, k
the only reason i have that trigger was for my map, neutral works fine, but my map neutral was already being used for else things.
This check: Condition: Or bracket with "type of triggering unit=" for each mount you have
Would be better if it were "Unit has ability" and you specify the driver seat ability unique to all your vehicles. Then you won't have to modify this trigger if you implement a new vehicle.
You can make any player neutral by changing their "control" under Player Properties
Can you explain it? What is k? And what should it do? (Cycle k from 1 to 10xxx).
Ach, and my question was bad. I want to add exp, not kill points.
k is an integer variable you declare to do 3 things: store the hero's kills before the event, increment the number and finally reset the hero's kill count to this number after the event. Cycling k is equivalent to k = k + 1.
This will work for kills, I have no idea about experience.
However this topic has been death/quiet for a while... I think I should ask this here.
I noticed when my unit is inside a 'Vehicle' he shoots as well. How do I prevent this? It might be possible this has been answered before. In that case my apologies.
Thanks in Advance, Marnauder
Sorry I wasn't clear enough. What I want to do is this. (Bad mspaint job)
Side units shown in order are Raven, Viking, and Phoenix.
The ground units are just there to show how the units are supposed to be. They are on land. I want the units (the air units) to be shown sideways. I know how to scale the units to make them bigger or smaller, but I want to know how to turn them around or flip them. I want them to be shown sideways like that throughout the whole game.
How would I do this?
Thanks in advance.
The person who made reaper arena (at least, I think thats the name) did that. I would send him a Pm. I'll edit this post with a link if I find the map.
edit- here is a link to his map, hopefully this is what you were talking about. http://forums.sc2mapster.com/development/project-workplace/3677-reaper-arena/
@zeldarules28: Go
I can't really see the reaper well, but it does seem to be sideways. Thanks! I'll shoot him a PM.
However this topic has been death/quiet for a while... I think I should ask this here.
I noticed when my unit is inside a 'Vehicle' he shoots as well. How do I prevent this? It might be possible this has been answered before. In that case my apologies.
Thanks in Advance, Marnauder
@Marnauder: Go
Use the medivac ability instead of the bunker ability...
Oh this is the easiest trigger of all:
Thats the easiest code... If you want certain things only then make a new ability using the Bunker - Load / Medivac - Load Ability and make a condition that says
Thanks for the tutorial. I'm trying to use this for a possession-ability, where the caster casts a dummy ability on target (range 1) and the target by triggers gains the comand center load ability and is ordered to load the caster. The problem is the caster isn't loaded. I can, however, as the caster unit, right click on the transport to get loaded.
This is the action:
Unit - Order (Triggering ability target unit) to (Ghast - Shell - Load (Command Center) targeting (Triggering unit)) (Replace Existing Orders)
Anyone got an idea why this isn't working? I've also tried the Load (Bunker) command. Thanks
Edit: I got it to work by using the data editor instead. I also need to figure out how to remove the cargo status UI that overrides the weapon and armor UI for the transporting unit.
To start i just want to say this is a wonderful tut, though I had a little difficulty I eventually got it. But what I'm trying to do is make it where you are a civil, and you get into an scv as your mount. it is working well but one problem, when the civil gets into the scv the scv`s build ability vanishes!! Now i believe that it has something to do with the bunker ability, In Example when u enter a bunker you can not sell it because there is a unit occupying it. but even in this case the ability doesn't just disappear you just cant use it.. so I`m lost any help is appreciated! Btw this my first post on sc2mapster :P
Use a Redirect ability like the bunker does for the attack ability.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg