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

Quick spell help here!!!!<---- urgent

Status
Not open for further replies.
Level 10
Joined
Apr 4, 2011
Messages
579
his if asked for a similar spell before but it wasnt what i was quite looking for

im wanting to be able to cast a spell like thunder clap, i then want it to create a thunder clap 400 offset from the caster, then every 0.3 seconds create more thunder claps, one after the other. in a circle around the caster, sorta like a skake going around the caster but with thunder claps

plz show trigger on site or send map if possible
 
MUI or GUI?

MUI = Multi-unit instanceable... it can be done in both GUI or JASS...

oh, sorry I don't do GUI requests (this will be too easy by using my Nova System, but its usable by GUIers, though you still need to be using NewGenWE since the NovaSystem is in vJASS)...

if ur using NewGenWE, I could make it in GUI form, but it would still need my NovaSystem (that's why you'd need NewGenWE)
 
his if asked for a similar spell before but it wasnt what i was quite looking for
....

anyway, here's a spell... its up to you if you'll use it or not (as its in vJASS)

JASS:
library CircularShock initializer init requires Nova
//You need the Nova System

    globals
        private integer SPELL_ID = 'A000' //the rawcode of your spell
        private string PATH = "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" //The path of the special effect
        private real OFFSET = 400.0 //the offset of the shocks
        private integer AMOUNT = 12 //The amount of shocks
        private real DELAY = .3 //the time delay between each shock
        private attacktype AT = ATTACK_TYPE_MAGIC //The attack type of the spell
        private damagetype DT = DAMAGE_TYPE_LIGHTNING //Damage type of the spell
    endglobals
    
    //I added caster as a parameter, just in case you want to add the attributes to the damage
    private function GetDamage takes integer level, unit caster returns real
        return 100.0*level
    endfunction
    
    private function AOE takes integer level returns real
        return 200.0
    endfunction
    
    private function Shocks takes nothing returns boolean
        local unit a = GetTriggerUnit()
        local integer level = GetUnitAbilityLevel(a, SPELL_ID)
        local real angle = bj_DEGTORAD*GetUnitFacing(a)
        local real angle_2 = 360.0/AMOUNT
        local real x = GetUnitX(a)
        local real y = GetUnitY(a)
        local integer i = 0
        if GetSpellAbilityId() == SPELL_ID then
            loop
                exitwhen i == AMOUNT
                call NovaSystem.create(a, x + OFFSET*Cos(angle + angle_2*i), y + OFFSET*Sin(angle + angle_2*i), 0.0, AOE(level), 0.0, 1, 1, DELAY*i, DELAY*i, GetDamage(level, a), (AOE(level))/200.0, false, false, false, PATH , AT, DT)  
                set i = i + 1
            endloop
        endif
        endif
        set a = null
        return false
    endfunction
    
    private function init takes nothing returns nothing
        local trigger t = CreateTrigger()
        call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_SPELL_EFFECT)
        call TriggerAddCondition(t, Condition(function Shocks))
        set t = null
    endfunction



endlibrary
 
Last edited:
Level 17
Joined
Jan 21, 2010
Messages
2,111
the GUI nova sys AFAIK, creates a nova which is more like the nova styles on DotA (poison nova and shivas guard)

yeah i know, but the poison nova can be edited to fit with some spell, like my time bomb spell
It create a twlve direction bomb, then destroy it one by one each second, basicaly, it made from nova system..
But i know that your spell is more effective, the gui code sucks...
I was learning the vjass :)
 
Status
Not open for further replies.
Top