• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Reaper's Claw by Vinz

Status
Not open for further replies.
Level 8
Joined
Jul 21, 2015
Messages
142
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 44
Joined
Feb 27, 2007
Messages
5,563
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