• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger Request]Pickpocket system

Status
Not open for further replies.
Level 2
Joined
Jan 24, 2010
Messages
24
Hai thar

Can someone make me a system in which a unit casts steal then the player gains a random amount of gold from 1 to 25?

Sorry if its easy and its just wasting your time,but I would like it for my Campaign that I am making.
 
Level 9
Joined
Sep 28, 2004
Messages
365
Make a custom ability that can target a unit.

  • Pick Pocket
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Pick Pocket
    • Actions
      • -------- Random amount of gold you want to steal. --------
      • Set StealAmount = (Random integer number between 1 and 25)
      • -------- Add gold to caster --------
      • Player - Add StealAmount to (Owner of (Triggering unit)) Current gold
      • -------- Substract gold from target (Remove this if you don't need it) --------
      • Player - Add (StealAmount x -1) to (Owner of (Target unit of ability being cast)) Current gold
 
Level 2
Joined
Jan 24, 2010
Messages
24
Make a custom ability that can target a unit.

  • Pick Pocket
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Pick Pocket
    • Actions
      • -------- Random amount of gold you want to steal. --------
      • Set StealAmount = (Random integer number between 1 and 25)
      • -------- Add gold to caster --------
      • Player - Add StealAmount to (Owner of (Triggering unit)) Current gold
      • -------- Substract gold from target (Remove this if you don't need it) --------
      • Player - Add (StealAmount x -1) to (Owner of (Target unit of ability being cast)) Current gold

Thank you very much!
 
Status
Not open for further replies.
Top