• 🏆 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!

Reaper's Claw by Vinz

Status
Not open for further replies.
Level 7
Joined
Jul 21, 2015
Messages
103
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 39
Joined
Feb 27, 2007
Messages
5,023
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