魔兽地图编辑器吧 关注:65,372贴子:3,841,434
  • 9回复贴,共1

【呢地神】新人求助特效问题

取消只看楼主收藏回复

点BX是目标单位位置,想在目标单位头上创建十字特效(由灵魂锁链合成)。
但是,现在这个特效比较乱,是在目标头上无固定方向的几条直线,不是十字型的


1楼2018-12-21 20:54回复
    有图有真相


    2楼2018-12-21 20:55
    回复
      2025-08-10 13:42:50
      广告
      不感兴趣
      开通SVIP免广告



      3楼2018-12-21 20:58
      回复
        这个方向角度什么的改了一点数据就更难看了,难道要用xy轴?没用过xy


        4楼2018-12-21 21:02
        回复
          怎样创建十字特效,同志们,0度.90度.180度.270度创建只有4个点特效,连城直线怎么搞?


          5楼2018-12-21 21:26
          回复
            //TESH.scrollpos=16
            //TESH.alwaysfold=0
            function Trig_XSlash_Conditions takes nothing returns boolean
            return ((GetSpellAbilityId()=='A011'))
            endfunction
            function Trig_XSlash_Actions takes nothing returns nothing
            set udg_XSlash_Caster=GetSpellAbilityUnit()
            set udg_XSlash_Target=GetSpellTargetUnit()
            call CreateNUnitsAtLocFacingLocBJ(1,'E008',GetOwningPlayer(udg_XSlash_Caster),PolarProjectionBJ(GetUnitLoc(udg_XSlash_Target),256.00,(AngleBetweenPoints(GetUnitLoc(udg_XSlash_Target),GetUnitLoc(udg_XSlash_Caster))+45.00)),GetUnitLoc(udg_XSlash_Target))
            set udg_XSlash_Mirror[0]=bj_lastCreatedUnit
            call SetUnitAnimationWithRarity(udg_XSlash_Mirror[0],"attack",RARITY_RARE)
            call SetUnitVertexColorBJ(udg_XSlash_Mirror[0],100,100,100,50.00)
            call CreateNUnitsAtLocFacingLocBJ(1,'E008',GetOwningPlayer(udg_XSlash_Caster),PolarProjectionBJ(GetUnitLoc(udg_XSlash_Target),256.00,(AngleBetweenPoints(GetUnitLoc(udg_XSlash_Target),GetUnitLoc(udg_XSlash_Caster))-45.00)),GetUnitLoc(udg_XSlash_Target))
            set udg_XSlash_Mirror[1]=bj_lastCreatedUnit
            call SetUnitAnimationWithRarity(udg_XSlash_Mirror[1],"attack",RARITY_RARE)
            call SetUnitVertexColorBJ(udg_XSlash_Mirror[1],100,100,100,50.00)
            call PolledWait(GetRandomReal(0.40,0.70))
            call AddSpecialEffectTargetUnitBJ("origin",udg_XSlash_Target,"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
            set bj_forLoopAIndex=0
            set bj_forLoopAIndexEnd=1
            loop
            exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
            call SetUnitTimeScalePercent(udg_XSlash_Mirror[bj_forLoopAIndex],0.00)
            call SetUnitPositionLoc(udg_XSlash_Mirror[bj_forLoopAIndex],PolarProjectionBJ(GetUnitLoc(udg_XSlash_Mirror[bj_forLoopAIndex]),512.00,GetUnitFacing(udg_XSlash_Mirror[bj_forLoopAIndex])))
            set bj_forLoopAIndex=bj_forLoopAIndex+1
            endloop
            call AddSpecialEffectTargetUnitBJ("origin",udg_XSlash_Mirror[0],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
            call AddSpecialEffectTargetUnitBJ("origin",udg_XSlash_Mirror[1],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
            set bj_forLoopBIndex=6
            set bj_forLoopBIndexEnd=10
            loop
            exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
            call SetUnitVertexColorBJ(udg_XSlash_Mirror[0],100,100,100,((0.00+I2R(bj_forLoopBIndex))*10.00))
            call SetUnitVertexColorBJ(udg_XSlash_Mirror[1],100,100,100,((0.00+I2R(bj_forLoopBIndex))*10.00))
            call PolledWait(0.05)
            set bj_forLoopBIndex=bj_forLoopBIndex+1
            endloop
            call RemoveUnit(udg_XSlash_Mirror[0])
            call RemoveUnit(udg_XSlash_Mirror[1])
            endfunction
            //===========================================================================
            function InitTrig_XSlash takes nothing returns nothing
            set gg_trg_XSlash=CreateTrigger()
            call TriggerRegisterAnyUnitEventBJ(gg_trg_XSlash,EVENT_PLAYER_UNIT_SPELL_EFFECT)
            call TriggerAddCondition(gg_trg_XSlash,Condition(function Trig_XSlash_Conditions))
            call TriggerAddAction(gg_trg_XSlash,function Trig_XSlash_Actions)
            endfunction


            7楼2018-12-22 17:59
            回复
              上边的J就是原技能的,我不懂J,求知懂J的,他这个特效是什么方法或算法?


              9楼2018-12-22 18:00
              回复

                这种的


                10楼2018-12-22 18:36
                回复(2)
                  2025-08-10 13:36:50
                  广告
                  不感兴趣
                  开通SVIP免广告
                  OK了筒子们,可喜可贺,谢谢以上几位的友情帮助

                  GA里真有高手把这段J翻译成T


                  12楼2018-12-23 21:19
                  回复
                    原来是创建两个单位,身上绑定球体技能,再交叉移动单位,形成十字效果,一直以为是创建特效然后各种算法(很复杂的那种,其实很简单),搜迪斯奈


                    13楼2018-12-23 21:22
                    回复