spell question

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

TymonMurzyn
Newcomer
Posts: 2
Joined: July 25th, 2007, 7:44 pm

spell question

Post by TymonMurzyn »

Well i have unprotected ver of dota and my question is how to export triggers from ****.j that they can be seen in object manager[world editor] cuz it's extremely hard to edit triggers in wordpad ;/ . Second question is related to jass , what i must to edit in replicate skill (http://www.dota-allstars.com/hero/1461/index.html)

Code: Select all

local trigger t=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(t,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(t,Condition(function Vp))
call TriggerAddAction(t,function VP)
endfunction
function qw takes nothing returns nothing
local trigger t=GetTriggeringTrigger()
local unit Fc=Ik(i1(t),"Hero")
local unit qW=Ik(i1(Fc),"Replicate")
call DestroyEffect(AddSpecialEffect("Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl",GetUnitX(qW),GetUnitY(qW)))
call RemoveUnit(qW)
call UnitRemoveAbility(Fc,'A0GC')
call SetPlayerAbilityAvailable(GetOwningPlayer(Fc),'A0G8',true)
call i4(i1(t))
call KQ(t)
endfunction
function qx takes nothing returns boolean
if GetSpellAbilityId()=='A0GC'then
return true
endif
return false
endfunction
function qX takes nothing returns nothing
local unit Fc=GetTriggerUnit()
local string FJ=i1(Fc)
local unit qW=Ik(FJ,"Replicate")
local real x=GetUnitX(qW)
local real y=GetUnitY(qW)
call DestroyEffect(AddSpecialEffect("Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl",GetUnitX(Fc),GetUnitY(Fc)))
call KillUnit(qW)
if not Js(Fc,x,y)then
call SetUnitX(Fc,x)
call SetUnitY(Fc,y)
call PanCameraToTimedForPlayer(GetOwningPlayer(Fc),x,y,0)
call IssueImmediateOrderById(Fc,851972)
else
call kA(GetOwningPlayer(Fc),"Unable to Morph Replicate")
endif
endfunction
function qy takes nothing returns boolean
return GetUnitAbilityLevel(GetSummonedUnit(),'B030')>0
endfunction
function qY takes nothing returns nothing
local unit Fc=GetSummoningUnit()
local string FJ=i1(Fc)
local unit FN=Ik(FJ,"ReplicateTarget")
local unit qW=GetSummonedUnit()
local trigger t
call SetPlayerAbilityAvailable(GetOwningPlayer(Fc),'A0G8',true)
call UnitAddAbility(Fc,'A0GC')
call SetUnitColor(qW,GetPlayerColor(GetOwningPlayer(FN)))
call i5(FJ,"Replicate",qW)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,Fc,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,qW,EVENT_UNIT_DEATH)
call TriggerAddAction(t,function qw)
call i5(i1(t),"Hero",Fc)
endfunction
function VU takes nothing returns boolean
return GetSpellAbilityId()=='A0G8'
endfunction
function Vv takes nothing returns nothing
local unit Fc=GetTriggerUnit()
local unit FN=GetSpellTargetUnit()
call i5(i1(Fc),"ReplicateTarget",FN)
endfunction
function Mp takes nothing returns nothing
that it would replicate an images with they "active skills" not only with passive .
TymonMurzyn
Newcomer
Posts: 2
Joined: July 25th, 2007, 7:44 pm

Re: spell question

Post by TymonMurzyn »

really no one know? ;/
GeorgeMots
Crusader
Posts: 4236
Joined: January 27th, 2007, 4:46 pm
Location: Greece, Veria

Re: spell question

Post by GeorgeMots »

It depends on the method you deprotected. if you used x-dep then jass trigger will be viewed in the editor as a single trigger. (the same way you'd see them n the notepad)

As for the Replicate skill i would suggest you have a look at the Open Version of dota-allstars 6.41 found here ->http://zibada.xgm.ru/opendota/

Edit: i think the jass you posted are not the correct one of morphling's skill, if thats what you want to say
http://slowbro.org/
`·.,¸,.·*¯`·.,¸,.·*¯[;::;(。◕‿‿­­​­­­­­◕。)
Image
Image
Image
Spoiler:
(03:36:55) xkiska: im too much of a dumbass to understand this
Dekar
Forum Drunk
Posts: 2902
Joined: January 17th, 2007, 4:22 pm
Has thanked: 1 time
Been thanked: 1 time

Re: spell question

Post by Dekar »

use jasscraft, it's afaik the best way to edit jass!
Don't pm me with Warcraft questions, this is a forum so just make a post!
In the world of thinking we are all immigrants. -Robert Nozick