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

Reaper's Claw by Vinz

Status
Not open for further replies.
Level 8
Joined
Jul 21, 2015
Messages
143
Does anyone think they would be able to help me with Vinz custom power that is written in Jass.

This is his resource link:



local unit u = GetTriggerUnit()
local effect fx
local real x = GetUnitX(u)
local real y = GetUnitY(u)
local real face = Deg2Rad(GetUnitFacing(u))
local real tilt

set tilt = 0
set fx = AddSpecialEffect("war3mapImported\\Reapers Claws Red.mdx", x, y)
call BlzSetSpecialEffectOrientation( fx, face, 0, Deg2Rad(tilt))
call BlzSetSpecialEffectHeight(fx, 90 + BlzGetUnitZ(u))
call DestroyEffect(fx)

set tilt = -45
set fx = AddSpecialEffect("war3mapImported\\Reapers Claws Red.mdx", x, y)
call BlzSetSpecialEffectOrientation( fx, face, 0, Deg2Rad(tilt))
call BlzSetSpecialEffectHeight(fx, 110 + BlzGetUnitZ(u))
call BlzSetSpecialEffectTimeScale(fx, 0.8)
call DestroyEffect(fx)

set tilt = -135
set fx = AddSpecialEffect("war3mapImported\\Reapers Claws Red.mdx", x, y)
call BlzSetSpecialEffectOrientation( fx, face, 0, Deg2Rad(tilt))
call BlzSetSpecialEffectHeight(fx, 110 + BlzGetUnitZ(u))
call BlzSetSpecialEffectTimeScale(fx, 0.7)
call DestroyEffect(fx)

set u = null
set fx = null


I am having trouble with what I am supposed to be replacing the text in here as I don't know JASS as well as I should, but really like his spell.
The Unit Variable I have for the correlating unit is called unitVAMPIRE if that helps ^.^

It is copied as a script spell and is written in JASS btw not GUI
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
You need to put that in a custom function, and then call that custom function from within whatever GUI trigger would know to display this effect. Also change the unit variable assignment line:
JASS:
function ThisNameMustBeUnique takes nothing returns nothing
   local unit u = udg_unitVAMPIRE //GetTriggerUnit()
   local effect fx
   local real x = GetUnitX(u)
   local real y = GetUnitY(u)
   local real face = Deg2Rad(GetUnitFacing(u))
   local real tilt

   set tilt = 0
   set fx = AddSpecialEffect("war3mapImported\\Reapers Claws Red.mdx", x, y)
   call BlzSetSpecialEffectOrientation( fx, face, 0, Deg2Rad(tilt))
   call BlzSetSpecialEffectHeight(fx, 90 + BlzGetUnitZ(u))
   call DestroyEffect(fx)

   set tilt = -45
   set fx = AddSpecialEffect("war3mapImported\\Reapers Claws Red.mdx", x, y)
   call BlzSetSpecialEffectOrientation( fx, face, 0, Deg2Rad(tilt))
   call BlzSetSpecialEffectHeight(fx, 110 + BlzGetUnitZ(u))
   call BlzSetSpecialEffectTimeScale(fx, 0.8)
   call DestroyEffect(fx)

   set tilt = -135
   set fx = AddSpecialEffect("war3mapImported\\Reapers Claws Red.mdx", x, y)
   call BlzSetSpecialEffectOrientation( fx, face, 0, Deg2Rad(tilt))
   call BlzSetSpecialEffectHeight(fx, 110 + BlzGetUnitZ(u))
   call BlzSetSpecialEffectTimeScale(fx, 0.7)
   call DestroyEffect(fx)

   set u = null
   set fx = null
endfunction
  • Actions
    • Custom script: call ThisNameMustBeUnique()
 
Status
Not open for further replies.
Top