Daisuke Niwa
New Member
- Reaction score
- 0
Hello all, how to make item of Refresher Orb like Dota
ohhh ! xD i remember it...i just ade mistake with the other orb...I'm Writing it !
Make a ability that its cast on yourself when you use it and give it to doo nothing , just make it to be able to be casted. And Attribute it to a item.
Here you go!
Events:
Unit - A unit Starts the effect of an ability
Conditions:
(Ability being cast) Equal to ( YOur Custom Ability )
Actions:
Unit - Reset ability cooldowns for (Triggering unit)
You have to be a poor scripter to make that non-mui :O or actually a pretty good scripter :O
About this:
you should do it inTrigger:
- tags:
- Like this:
- <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"><div class="bbCodeBlock-title">Trigger:</div><div class="wc3trigger"><ul class="wc3" id="wc3_3">
- <li class="lastopen"><span class="default">RefreshersOrb</span>
- <ul>
- <li class="open"><span class="events">Events</span>
- <ul>
- <li class="lasttree"><span class="unit">Unit - A unit Starts the effect of an ability</span></li>
- </ul>
- </li>
- <li class="open"><span class="conditions">Conditions</span>
- <ul>
- <li class="lasttree"><span class="default">(Ability being cast) Equal to ( YOur Custom Ability )</span></li>
- </ul>
- </li>
- <li class="lastopen"><span class="actions">Actions</span>
- <ul>
- <li class="lasttree"><span class="unit">Unit - Reset ability cooldowns for (Triggering unit)</span></li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </div></div>
You have to be a poor scripter to make that non-mui :O or actually a pretty good scripter :O
By spells he means the other spells in the map, for if you were to use a spell, then use the Refresher Orb and immediately cast the spell again, the spell could bug if it wasn't MUI. It's probably no problem for somebody that needs help making a Refresher Orb, though, as he probably doesn't use too many triggered spells :shades:
Either I am the biggest idiot ever, or that spell is MUI, there are no waits, and even uses (Triggering Unit) perfect MUI-ness.
By spells he means the other spells in the map, for if you were to use a spell, then use the Refresher Orb and immediately cast the spell again, the spell could bug if it wasn't MUI.
Oh right, didnt quite understand that, but I mean, now Hashtables are driving down the road, what isnt MUI?
i know , but i did it free hand...It's allmost like not free handed , isn't it ?
That is perfectly freehanded
I think the problem is if non-mui spells are cast to fast because you're able to reset the cooldown, then that might happen, has nothing to do with this spell
constant function refcon1 takes nothing returns boolean
return GetSpellAbilityId() == 039;AUan039; // Put your spells raw code right here.
endfunction
function refact1 takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function InitTrig_refresh takes nothing returns nothing
set gg_trg_refresh = CreateTrigger( )
local integer i
set i = 0
loop
call TriggerRegisterPlayerUnitEvent (gg_trg_refresh,Player(i),EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
exitwhen i == 11
set i = i + 1
endloop
call TriggerAddCondition( gg_trg_refresh, Condition( function refcon1 ) )
call TriggerAddAction( gg_trg_refresh, function refact1 )
endfunction
function TriggerRegisterAnyUnitEventBJ takes trigger trig, playerunitevent whichEvent returns nothing
local integer index
set index = 0
loop
call TriggerRegisterPlayerUnitEvent(trig, Player(index), whichEvent, null)
set index = index + 1
exitwhen index == bj_MAX_PLAYER_SLOTS
endloop
endfunction