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

Great Spell but Error

Status
Not open for further replies.
Level 4
Joined
Aug 8, 2008
Messages
64
I have a great spell which is called as rush wave
1st question: is he mui?
2nd question: sometimes he cause a wc3 error but i dunno why >.<
can someone help?
  • Rush Wave
    • Event
      • Unit - begins to cast a ability/skill
    • BCondition
      • Or - Any (Conditions) are true
        • Bedingungen
          • (Ability being cast) Gleich Rush Wave (assassain lvl 65)
    • Action
      • Set Caster = (Casting unit)
      • Set CasterLoc = (Position of Caster)
      • Set TempPoint = (Target point of ability being cast)
      • Unit - Make Caster Unverwundbar
      • Unit - Pause ein Caster
      • Animation - Change Caster's animation speed to 200.00% of its original speed
      • Animation - Change Caster's vertex coloring to (0.00%, 100.00%, 100.00%) with 50.00% transparency
      • Ausloeser - Turn on Rush Wave Move <gen>
      • Wait 4.00 seconds
      • Ausloeser - Turn off Rush Wave Move <gen>
      • Unit - Make Caster Verwundbar
      • Unit - Pause aus Caster
      • Animation - Change Caster's animation speed to 100.00% of its original speed
      • Animation - Change Caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
  • Rush Wave Move
    • Event
      • Time - Every 0.50 seconds of game time
    • Condition
    • Action
      • Unit - Move Caster instantly to ((Position of Caster) offset by 100.00 towards (Facing of Caster) degrees)
      • Spezialeffekt - Create a special effect attached to the head of Caster using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
      • Animation - Play Caster's attack slam animation
      • Unitgroup - Pick every unit in (Units within 350.00 of (Position of Caster)) and do (Actions)
        • Schleifen - Action
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • ((Owner of (Picked unit)) is an enemy of (Owner of Caster)) Gleich True
            • 'THEN'-Aktionen
              • Set Target = (Picked unit)
              • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 2000.00 damage of attack type Chaos and damage type Normal
              • Unit - Move Target instantly to ((Position of Target) offset by 25.00 towards (Facing of Caster) degrees)
              • Spezialeffect - Create a special effect attached to the head of Target using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
            • 'ELSE'-Aktionen
              • Do nothing
 
Level 9
Joined
Aug 21, 2008
Messages
533
some points you should improve:
1) remove leaks. There quite a lot.(myny temp points,unitgroups)This leaks could be the cause of the crashes
2)remove the do nothing... it does nothing but needs ressourses cause wc3 have to convert it into real script when playing
3)you dont have it to make mui cause evry player is only able to control 1 hero-but use arrays to make it that evry player is able to use it

P.S:Macht lopaki noch bei travel mit? Ich hab lange nichts mehr von ihm gehört. Ach ja gibts den Wald noch den ich gemacht habe?:grin: wenn ich dich verwechsle sry but ich kenne nur einen goldschakal der travel orpg macht:wink:
 
Level 4
Joined
Aug 8, 2008
Messages
64
some points you should improve:
1) remove leaks. There quite a lot.(myny temp points,unitgroups)This leaks could be the cause of the crashes
2)remove the do nothing... it does nothing but needs ressourses cause wc3 have to convert it into real script when playing
3)you dont have it to make mui cause evry player is only able to control 1 hero-but use arrays to make it that evry player is able to use it

P.S:Macht lopaki noch bei travel mit? Ich hab lange nichts mehr von ihm gehört. Ach ja gibts den Wald noch den ich gemacht habe?:grin: wenn ich dich verwechsle sry but ich kenne nur einen goldschakal der travel orpg macht:wink:


cuz this spell will reach at lvl 75 there is only a small chance that 2ppl use him at the same moment
so maybe you could show the leakless/"no-error" ver of it?

P.S: jo | der wald ist halb weg | hast mich nicht verwechselt | bin der eine goldschakal | es heißt travel rpg

edit: lopaki isnt often on cuz she^^ has some problems with her^^ parents
ne also in letzer zeit isser so 1-2h's on - wenn auch nur icq
 
Level 12
Joined
Apr 15, 2008
Messages
1,063
the crashing problem may be here:
  • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 2000.00 damage of attack type Chaos and damage type Normal
You see, at this point, there is no (Target unit of ability being cast), becaouse the trigger is triggered by Time event. Replace that with (Picked unit)
 
Level 9
Joined
Aug 21, 2008
Messages
533
  • Rush Wave Move
  • Event
  • Time - Every 0.50 seconds of game time
  • Condition
  • Action
  • Set TempPoint = (Position of Caster)
  • Set TempPoint2 = ((Position of Caster) offset by 100.00 towards (Facing of Caster) degrees)
  • Unit - Move Caster instantly to TempPoint
  • Custom script: call RemoveLocation(udg_TempPoint)
  • Custom script: call RemoveLocation(udg_TempPoint2)
    • Spezialeffekt - Create a special effect attached to the head of Caster using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
  • Animation - Play Caster's attack slam animation
  • Custom script: set bj_wantDestroyGroup = true
  • Unitgroup - Pick every unit in (Units within 350.00 of (Position of Caster)) and do (Actions)
  • Schleifen - Action
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • 'IF'-Bedingungen
  • ((Owner of (Picked unit)) is an enemy of (Owner of Caster)) Gleich True
  • 'THEN'-Aktionen
  • Set Target = (Picked unit)
  • Unit - Cause (Casting unit) to damage (Target(Comment=you saved this as variable and didnt used variable here?)), dealing 2000.00 damage of attack type Chaos and damage type Normal
  • Set TempPoint = (Position of Target)
    • Set TempPoint2 = ((Position of Target) offset by 25.00 towards (Facing of Caster) degrees)
    • Unit - Move Target instantly to TempPoint2
    • Custom script: call RemoveLocation(udg_TempPoint)
    • Custom script: call RemoveLocation(udg_TempPoint2)
      • Spezialeffect - Create a special effect attached to the head of Target using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
    • 'ELSE'-Aktionen
w8 shortly i have to look somethin gup...

@Mort he saved picked unit in a variable. Wy he should use "picked unit"?

PS omg canrt handle the [trigger) tag...
 
Level 12
Joined
Apr 15, 2008
Messages
1,063
@SlayerII: didn't notice that, i can see that now;
btw.
  • - just write spaces at beginning of each line, that will atomatically group lines with more spaces into the "superior" lines with less spaces. like this, you can't really see anything in the trigger code
  • your trigger transcribed:
  • [TRIGGER]
  • Rush Wave Move
    • Event
      • Time - Every 0.50 seconds of game time
    • Condition
    • Action
      • Set TempPoint = (Position of Caster)
      • Set TempPoint2 = ((Position of Caster) offset by 100.00 towards (Facing of Caster) degrees)
      • Unit - Move Caster instantly to TempPoint
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call RemoveLocation(udg_TempPoint2)
      • Spezialeffekt - Create a special effect attached to the head of Caster using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
      • Animation - Play Caster's attack slam animation
      • Custom script: set bj_wantDestroyGroup = true
      • Unitgroup - Pick every unit in (Units within 350.00 of (Position of Caster)) and do (Actions)
        • Schleifen - Action
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • ((Owner of (Picked unit)) is an enemy of (Owner of Caster)) Gleich True
            • 'THEN'-Aktionen
              • Set Target = (Picked unit)
              • Unit - Cause (Casting unit) to damage (Target(Comment=you saved this as variable and didnt used variable here?)), dealing 2000.00 damage of attack type Chaos and damage type Normal
              • Set TempPoint = (Position of Target)
              • Set TempPoint2 = ((Position of Target) offset by 25.00 towards (Facing of Caster) degrees)
              • Unit - Move Target instantly to TempPoint2
              • Custom script: call RemoveLocation(udg_TempPoint)
              • Custom script: call RemoveLocation(udg_TempPoint2)
              • Spezialeffect - Create a special effect attached to the head of Target using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
            • 'ELSE'-Aktionen
 
Status
Not open for further replies.
Top