• 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.

what spell to use as a base

Status
Not open for further replies.
Level 14
Joined
Mar 30, 2009
Messages
971
what spell to use as a base and how to achieve my desired results:
im making professions in my map. and one of them is skinning. actually there are 2 totally similar things: skinning and beheading.

it should work like this: a player unit (MPI) targets a dead enemy unit, if the conditions are met, then the unit will channel (with some looping sound added) until done. then the unit will gain an item specific to the targeted unit type. each unit can be targeted only once by each of these 2 spells.

since i cant make an ability to directly target a dead unit, i dont know what alternatives to use: something like cannibalize? or like raise dead? but i'd prefer the corpse not removed.

(btw if anyone is interested i could use the help of a good Gui scripter)
 
No, channel ability doesn't have the AoE pattern circle that Blizzard has. You need to make a condition that picks every unit within a small radius of the target point and, if the picked unit is dead, do your actions:
  • Tgr
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to x
  • Actions
    • Set Point1 = (Target point of ability being cast)
    • Set TempGroup = (Units within 128.00 of Point1 matching ((Matching unit) is dead Equal to True)
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Number of units in TempGroup) Not Equal to 0
      • Then - Actions
        • Unit - Add (Triggering unit) to (UnitGroup)
        • Trigger - Turn on RTG2 <gen>
      • Else - Actions
        • Unit - Order (Triggering unit) to Stop
        • Game - Display to (Player Group(Owner of (Triggering unit))) the message "There are no corpses nearby."
    • Custom script: call RemoveLocation (udg_Point1)
    • Custom script: call DestroyGroup (udg_TempGroup)
  • RTG2
  • Events
    • Time - Every 1.00 seconds of game-time
  • Conditions
  • Actions
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (UnitGroup is empty) Equal to True
      • Then - Actions
        • Trigger - Turn off (This trigger)
      • Else - Actions
        • Unit Group - Pick every unit in (UnitGroup) and do (Actions)
          • Loop - Actions
            • //Actions here
 
Status
Not open for further replies.
Top