Trigger Problem

Ph[o]bia

New Member
Reaction score
7
My problem is: When the guy cast the spell, everything do like I want execpt one thing, a dummy randomly apear somewhere close to caster, how to fix it?
there's my trigger:
Trigger:
  • Poseidon Rage
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Poseidon Rage
    • Actions
      • Set PRAOE = 300.00
      • Set PRUnits[1] = (Triggering unit)
      • Set PRTempPoint[1] = (Target point of ability being cast)
      • If ((Level of Poseidon Rage for PRUnits[1]) Equal to 1) then do (Set PRDamage = (3.00 x (Real((Intelligence of PRUnits[1] (Include bonuses)))))) else do (Do nothing)
      • If ((Level of Poseidon Rage for PRUnits[1]) Equal to 2) then do (Set PRDamage = ((3.50 x (Real((Intelligence of PRUnits[1] (Include bonuses))))) + (2.00 x (Real((Strength of PRUnits[1] (Include bonuses))))))) else do (Do nothing)
      • If ((Level of Poseidon Rage for PRUnits[1]) Equal to 3) then do (Set PRDamage = ((4.00 x (Real((Intelligence of PRUnits[1] (Include bonuses))))) + ((3.00 x (Real((Strength of PRUnits[1] (Include bonuses))))) + (2.00 x (Real((Agility of PRUnits[1] (Include bonuses)))))))) else do (Do nothing)
      • Set PROwner = (Owner of PRUnits[1])
      • Set PRGroup = (Units within PRAOE of PRTempPoint[1] matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is Magic Immune) Not equal to True) and (((Matching unit) belongs to an enemy of PROwner) Equal to True))))
      • For each (Integer A) from 1 to 20, do (Actions)
        • Loop - Actions
          • For each (Integer B) from 1 to 10, do (Actions)
            • Loop - Actions
              • Set PRTempPoint[2] = (PRTempPoint[1] offset by PRAOE towards PRDegree degrees)
              • Set PRDegree = (360.00 x ((Real((Integer A))) / 20.00))
              • Unit - Create 1 Poseidon Rage[Border] for PROwner at PRTempPoint[2] facing PRTempPoint[1]
              • Unit - Add a 3.00 second Generic expiration timer to PRUnits[3]
              • Set PRUnits[3] = (Last created unit)
              • Set PRFlying[1] = (Real(((Integer B) x 100)))
              • Animation - Change PRUnits[3] flying height to PRFlying[1] at 0.00
      • For each (Integer PRLoops) from 1 to 10, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Poseidon Rage[Middle] for PROwner at PRTempPoint[1] facing PRTempPoint[1]
          • Set PRUnits[4] = (Last created unit)
          • Unit - Add a 3.00 second Generic expiration timer to PRUnits[4]
          • Set PRFlying[2] = (Real((PRLoops x 10)))
          • Animation - Change PRUnits[4] flying height to PRFlying[2] at 0.00
      • Unit Group - Pick every unit in PRGroup and do (Actions)
        • Loop - Actions
          • Set PRUnits[5] = (Picked unit)
          • Unit - Cause PRUnits[1] to damage PRUnits[5], dealing PRDamage damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup(udg_PRGroup)
      • Custom script: call RemoveLocation(udg_PRTempPoint[1])
      • Custom script: call RemoveLocation(udg_PRTempPoint[2])
 

sidove

Member
Reaction score
22
Is the dummy invisible or visible cause you do create a dummy in your trigger you know :rolleyes:
 

sidove

Member
Reaction score
22
Ok the dummy for your spell, have you set it's modelfile to none.mdl or something like that ;)?
 

Ph[o]bia

New Member
Reaction score
7
Ok the dummy for your spell, have you set it's modelfile to none.mdl or something like that ;)?

They are all visible whit a model file and the problem is: it make a circle made whit dummy and randomly a dummy apear like at a random place more far
 

sidove

Member
Reaction score
22
Hmm take your dummy for your spell then set the modelfile of it to none.mdl or none.mdx than turn it's shadow off (don't know what line it is but try searching (ctrl + f) for the random part i donnu but helped you as far as i could :)
 

sidove

Member
Reaction score
22
I think it's something that's wrong in your code. The blue dummy's that are in a circle are your dummy's that you have created, but it seems that the location messed up. Don't have time to check it now need to....Zzzzz.... sleep
 

Ayanami

칼리
Reaction score
288
These actions are in wrong order.

Trigger:
  • Actions
    • Unit - Add a 3.00 second Generic expiration timer to PRUnits[3]
    • Set PRUnits[3] = (Last created unit)


Should be

Trigger:
  • Actions
    • Set PRUnits[3] = (Last created unit)
    • Unit - Add a 3.00 second Generic expiration timer to PRUnits[3]
 

Ph[o]bia

New Member
Reaction score
7
These actions are in wrong order.

Trigger:
  • Actions
    • Unit - Add a 3.00 second Generic expiration timer to PRUnits[3]
    • Set PRUnits[3] = (Last created unit)


Should be

Trigger:
  • Actions
    • Set PRUnits[3] = (Last created unit)
    • Unit - Add a 3.00 second Generic expiration timer to PRUnits[3]


only because of that -.- , w/e THANKS!!!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top