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

[Solved] Spell Problem

Status
Not open for further replies.
Level 12
Joined
May 12, 2012
Messages
631
Hi Hivers! :grin:
I've found a GUI version of the spells Juxtapose and Phantom Edge (Click Here for more Info about the spell) but it won't work, can someone tell me what the problem is?


  • Juxtapose
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Attacking unit) Equal to Juxtapose_Hero
      • ((Attacking unit) is an illusion) Equal to False
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Custom value of Juxtapose_Hero) Less than or equal to 7
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 100) Less than or equal to ((3 x (Level of Juxtapose for Juxtapose_Hero)) + ((Level of Phantom Edge for Juxtapose_Hero) x 2))
            • Then - Actions
              • Set Temp_point[2] = (Position of (Attacking unit))
              • Unit - Create 1 Juxtapose for (Owner of (Attacking unit)) at Temp_point[2] facing Default building facing degrees
              • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
              • Unit - Add Juxtapose illusion to (Last created unit)
              • Unit - Set level of Juxtapose illusion for (Last created unit) to (Level of Juxtapose for Juxtapose_Hero)
              • Custom script: call IssueTargetOrderById(bj_lastCreatedUnit, 852274, GetAttacker())
              • Custom script: call RemoveLocation(udg_Temp_point[2])
              • Unit - Set the custom value of Juxtapose_Hero to ((Custom value of Juxtapose_Hero) + 1)
            • Else - Actions
        • Else - Actions


  • Phantom Edge
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) is an illusion) Equal to True
      • (Owner of (Attacking unit)) Equal to (Owner of Phantom_Edge)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Custom value of Phantom_Edge) Less than or equal to 7
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 100) Less than or equal to ((Level of Phantom Edge for Phantom_Edge) x 2)
            • Then - Actions
              • Set Temp_point[3] = (Position of (Attacking unit))
              • Unit - Create 1 Juxtapose for (Owner of (Attacking unit)) at Temp_point[3] facing Default building facing degrees
              • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
              • Unit - Add Phantom Edge (Illusion) to (Last created unit)
              • Unit - Set level of Phantom Edge (Illusion) for (Last created unit) to (Level of Phantom Edge for Phantom_Edge)
              • Custom script: call IssueTargetOrderById(bj_lastCreatedUnit, 852274, GetAttacker())
              • Custom script: call RemoveLocation(udg_Temp_point[3])
              • Unit - Set the custom value of Phantom_Edge to ((Custom value of Juxtapose_Hero) + 1)
            • Else - Actions
        • Else - Actions

they are linked to one another btw :grin:
 
Last edited:
Level 25
Joined
Jul 10, 2006
Messages
3,315
Hi, paste the code in
  • tags so it appears like it would in WorldEdit, makes it easier for us to understand.
  • One thing I can already pick up:
  • [TRIGGER](Attacking unit) Equal to Juxtapose_Hero
Did you set the Juxtapose_Hero variable?

I see it is being set in the trigger:
  • Set Juxtapose_Hero = Azwraith 0001 <gen>
this should probably be outside of the trigger
 
Level 12
Joined
May 12, 2012
Messages
631
lol, forgot to add the "[/TRIGGER]" wrap XD
Gonna try it :grin:
EDIT: IT LIVES!! :grin: Thanks +Rep
EDIT 2: ok, the spell works but It causes some errors, I think that the spell is being spammed
 

Attachments

  • Error.png
    Error.png
    12 KB · Views: 99
Last edited:
Status
Not open for further replies.
Top