How to create a Voodoo Aura?

rafaxik

New Member
Reaction score
2
Hi!
I was thinking about make an aura that gives chance to transform nearby enemies into sheep or whatever else. I have no idea how to create it :D.
Thanks!:thup:
 
It would have to be a periodic trigger, that picks up every unit every second around the unit that has the aura. Then, you would have to create a dummy unit that would cast polymorph, but i'm unsure, do you want it to be permanent (until the unit leaves the aura) or temporary (like a regular polymorph)?

Explain please ^^
 
Hi!
I was thinking about make an aura that gives chance to transform nearby enemies into sheep or whatever else. I have no idea how to create it :D.
Thanks!:thup:

Like a regular polymorph, not permanent
 
Do something like this:

Trigger:
  • Voodoo Aura
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set TempGroup = (Units in (Playable map area) matching (((Matching unit) has buff Voodoo Aura) Equal to True))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy for Neutral Hostile at (Position of (Picked unit)) facing Default building facing degrees
          • Unit - Add a 2.50 second Generic expiration timer to (Last created unit)
          • Unit - Add Polymorph to (Last created unit)
          • Unit - Order (Last created unit) to Human Sorceress - Polymorph (Picked unit)
      • Custom script: call DestroyGroup(udg_TempGroup)
 
Wow great! When I get home I'll try it! I'll post how it was.:thup:
Thanks a lot!
 
Do something like this:

Trigger:
  • Voodoo Aura
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set TempGroup = (Units in (Playable map area) matching (((Matching unit) has buff Voodoo Aura) Equal to True))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy for Neutral Hostile at (Position of (Picked unit)) facing Default building facing degrees
          • Unit - Add a 2.50 second Generic expiration timer to (Last created unit)
          • Unit - Add Polymorph to (Last created unit)
          • Unit - Order (Last created unit) to Human Sorceress - Polymorph (Picked unit)
      • Custom script: call DestroyGroup(udg_TempGroup)

this trigger in its current form will most likely end up in mass lagg.

you call it every 1.00 seconds but the dummys stay for 2.50 seconds.

it does also create dummys for units which are already hexed.

there is much to be improved. (of course i know you just quickly wrote something done as an example, i just want to state clearly that this is not the trigger in its final form)
 
Do something like this:

Trigger:
  • Voodoo Aura
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set TempGroup = (Units in (Playable map area) matching (((Matching unit) has buff Voodoo Aura) Equal to True))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy for Neutral Hostile at (Position of (Picked unit)) facing Default building facing degrees
          • Unit - Add a 2.50 second Generic expiration timer to (Last created unit)
          • Unit - Add Polymorph to (Last created unit)
          • Unit - Order (Last created unit) to Human Sorceress - Polymorph (Picked unit)
      • Custom script: call DestroyGroup(udg_TempGroup)

You could reduce the dummy's expiration timer. And check only those units without the hex buff.
 
this trigger in its current form will most likely end up in mass lagg.

you call it every 1.00 seconds but the dummys stay for 2.50 seconds.

it does also create dummys for units which are already hexed.

there is much to be improved. (of course i know you just quickly wrote something done as an example, i just want to state clearly that this is not the trigger in its final form)

Yep, was quite a quickly written trigger ^^ and yep, do what Glenphir says:

i.e

Trigger:
  • Set TempGroup = (Units in (Playable map area) matching (((Matching unit) has buff Voodoo Aura) Equal to True) and ((Matching unit) has buff Polymorph)) equal to false)))


and
Trigger:
  • Add a 1 second Generic expiration timer to (Last created unit)


Just correcting my mistakes ^^

Also Use:

Trigger:
  • Unit Group - Pick every unit in TempGroup and do (Actions)
    • Loop - Actions
      • Set TempPoint = (Position of (Picked Unit))
      • Unit - Create 1 Dummy for Neutral Hostile at TempPoint facing Default building facing degrees
      • Unit - Add a 1 second Generic expiration timer to (Last created unit)
      • Unit - Add Polymorph to (Last created unit)
      • Unit - Order (Last created unit) to Human Sorceress - Polymorph (Picked unit)
      • call RemoveLocation(udg_TempPoint)

So you don't have any memory leaks ^^
 
I thought he wanted it chance based? Like maybe 10% chance to get hexed every second?

Trigger:
  • Unit Group - Pick every unit in TempGroup and do (Actions)
    • Loop - Actions
      • Set TempInt = Random integer between 1 and 100
      • if-then-else
        • if
          • TempInt Less than or equal to 10
        • then
          • Set TempPoint = (Position of (Picked Unit))
          • Unit - Create 1 Dummy for Neutral Hostile at TempPoint facing Default building facing degrees
          • Unit - Add a 1 second Generic expiration timer to (Last created unit)
          • Unit - Add Polymorph to (Last created unit)
          • Unit - Order (Last created unit) to Human Sorceress - Polymorph (Picked unit)
          • call RemoveLocation(udg_TempPoint)
        • else


Sorry, freehanded the chance thingy.

Basically, create an integer variable to act as the chance, set it to a random number between 1 and 100 for every unit that has the aura and is not polymorphed. If the number is <= 10, hex it.
 
I thought he wanted it chance based? Like maybe 10% chance to get hexed every second?

Trigger:
  • Unit Group - Pick every unit in TempGroup and do (Actions)
    • Loop - Actions
      • Set TempInt = Random integer between 1 and 100
      • if-then-else
        • if
          • TempInt Less than or equal to 10
        • then
          • Set TempPoint = (Position of (Picked Unit))
          • Unit - Create 1 Dummy for Neutral Hostile at TempPoint facing Default building facing degrees
          • Unit - Add a 1 second Generic expiration timer to (Last created unit)
          • Unit - Add Polymorph to (Last created unit)
          • Unit - Order (Last created unit) to Human Sorceress - Polymorph (Picked unit)
          • call RemoveLocation(udg_TempPoint)
        • else


Sorry, freehanded the chance thingy.

Basically, create an integer variable to act as the chance, set it to a random number between 1 and 100 for every unit that has the aura and is not polymorphed. If the number is <= 10, hex it.
Simply, just FYI that would be a 10% chance. :)
 
Voodoo Aura Problem with trigger

Wow great! When I get home I'll try it! I'll post how it was.:thup:
Thanks a lot!

Guys, is there something wrong with this trigger? It's not working... Please help me!

I Made two triggers: VoodooAuraLearn and VoodooAuraCast
Here's the ss and the triggers:
First Trigger:
Trigger:
  • VoodooAuraLearn
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Voodoo Aura - MAIN
    • Actions
      • <span style="color: darkred">Set VoodooUnit = (Triggering unit)</span>
      • Trigger - Turn on VoodooAuraCast &lt;gen&gt;

Second Trigger:
Trigger:
  • VoodooAuraCast
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set VoodooGroup = (Units in (Playable map area) matching ((((Picked unit) has buff Voodo Aura - BUFF) Equal to True) and (((Picked unit) has buff Voodo Aura - BUFF POLYMORPHED) Equal to False)))
      • Unit Group - Pick every unit in VoodooGroup and do (Actions)
        • Loop - Actions
          • Set VoodooInteger = (Random integer number between 1 and 100)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VoodooInteger Less than or equal to (<span style="color: DarkRed">5 x (Level of Voodoo Aura - MAIN for VoodooUnit</span>))
            • Then - Actions
              • Set VoodooPoint = (Position of (Picked unit))
              • Unit - Create 1 fk.dummy03 for (Owner of VoodooUnit) at VoodooPoint facing Default building facing degrees
              • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
              • Unit - Add Voodoo Aura - DUMMY to (Last created unit)
              • Unit - Set level of Voodoo Aura - DUMMY for (Last created unit) to (Level of Voodoo Aura - MAIN for VoodooUnit)
              • Unit - Order (Last created unit) to Human Sorceress - Polymorph (Picked unit)
              • Custom script: call RemoveLocation(udg_VoodooPoint)
            • Else - Actions


Now the screen shot is attached to this message
 

Attachments

  • voodoo-aura.jpg
    voodoo-aura.jpg
    182.9 KB · Views: 124
Firstly, just to inform you. Its not MUI.

Second you might wanna check the target field.

Third you might wanna check the ur custom spell is based off polymorph.

Fourth, maybe try giving the ability to the unit beforehand in the object editor or increase the timer by just a little?

Try inserting messages in between the trigger like game: display to all players: Part 1 is working. So in game, you know what is working and what not. 5% chance is really low, so maybe, just maybe it just hasn't activated? Also are the units enemy of the caster?

Maybe post your map so we can check it out.
 
Trigger:
  • Set VoodooGroup = (Units in (Playable map area) matching ((((Matching unit) has buff Voodo Aura - BUFF) Equal to True)


This is all you need for your group, and it will work ^^

If the unit has the buff it automatically doesn't have it, as there is only two states: 1 and 0 ^^
 
Firstly, just to inform you. Its not MUI.

Second you might wanna check the target field.

Third you might wanna check the ur custom spell is based off polymorph.

Fourth, maybe try giving the ability to the unit beforehand in the object editor or increase the timer by just a little?

Try inserting messages in between the trigger like game: display to all players: Part 1 is working. So in game, you know what is working and what not. 5% chance is really low, so maybe, just maybe it just hasn't activated? Also are the units enemy of the caster?

Maybe post your map so we can check it out.

target field is the same it was before : Air, Ground, Non-hero, Organic and Neutral, you can see that the words ain't pink. I just added to the other levels.
Now, the percentage is not 5 %, its " VoodooInteger Less than or equal to (5 x (Level of Voodoo Aura - MAIN for VoodooUnit)) " wut means 5 %, 10 % and 15 % for Levels 1, 2 and 3, respectively. Even though I tried to make it random integer 1 to 1 and it didnt' work either.

But you made a really great observation: " Also are the units enemy of the caster? " I guess no, after all I created the dummy for neutral hostile. I will lean the trigger with giving the ability to the dummy in obj edit and I will " Set VoodooGroup = (Units in (Playable map area) matching ((((Matching unit) has buff Voodo Aura - BUFF) Equal to True AND ((((Matching unit) has buff Voodo Aura - POLYMORPHED) Equal to False). I guess those hints will work. I'll try it when I get home. Thank you all
 
My bad, i didn't see they were two different buffs ^^

I'm sure it will work now ^^
 
My bad, i didn't see they were two different buffs ^^

I'm sure it will work now ^^

Nevermind ^^

But you made a great observation when saying matching unit has buff. It got easy to understand instead of complicate with a long condition =))
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top