• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Reaper's Claw by Vinz

Status
Not open for further replies.
Level 12
Joined
Jul 21, 2015
Messages
275
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
 
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.
Back
Top