• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

(Trigger) Stealing

Status
Not open for further replies.
Huh mate so hard to understand how you want to he steal car. Well you could do, unit starts effect of ability, condition ability beggin cast equal to war stomp. Action change owner of random unit in 100 range matching condition matching unit is mechanic equal to true. Ofc you should make only cars mechanical.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Should you target a car to steal it? And a chance to success based on the Unit Steal Ability and the Car Security?
 
Level 9
Joined
Nov 19, 2011
Messages
516
I would use rain of chaos with 100sec bash. Large AoE of rain, single missile with low AoE of stun. Leveling ability should reduce rain AoE (so more chance for hit). Then use 'Open Door' skill with low range and single target. Make trigger which removes stun, calls order to car 'drop all units here' and gives you control of it.

In new GTA versions you could steal car without going into it.
 
i would go with spartipilo's option. it will be more complicated to make as u would have to use a weight system for the steal ability and the car security. But it would be a lot cooler to see it working since it wont be incredible easy to steal a car.

A weight system really isnt hard to make. It is slightly more complicated than unit casts ability. pick random car in 100 area and steal it.
 
Yeah i know that
I just want to know how to trigger it
When Caster uses the ability and ...

Please help

which way do u want it ?

here is the way without weight system.
note: u have to change the unit group if u want it to filter out units that arent cars.

  • steal car
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Steal_Car_Ability
    • Actions
      • Set tempPoint = (Position of (Triggering unit))
      • Set tempGroup = (Units within 100.00 of tempPoint)
      • Set tempUnit = (Random unit from tempGroup)
      • Custom script: call RemoveLocation( udg_tempPoint)
      • Custom script: set udg_tempPoint = null
      • Custom script: call DestroyGroup( udg_tempGroup)
      • Custom script: set udg_tempGroup = null
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Use Channel ability and configure it as you like. Rename it as "Steal".

Then just detect "A unit begins casting an ability". The ability is "Steal" then use a Boolean to know if the selected unit is a car, and if it can be stolen, then "hide" your unit, and transfer ownage of the car to the caster. Add a "Get down" ability to the car. And when that ability is casted, unhide your unit and move it to the car position and give ownage of the car again to neutral.

That's the basic. If you want to add security, steal chance, and any other stuff, you could use a Hashtable and any kind of math to handle chances.
 
Status
Not open for further replies.
Top