Item aura doesnt work

Prester

New Member
Reaction score
0
Hi

An Item is lying on the ground
A Hero picks it up
as long as its carried every 0.2 sec a random enemy in Range (512) of the Hero gets 50 dmg and small effect is created at the enemy to show who is hit.

But i dont get this working :-(

my problem is the event, i can either choose -a unit picks up item- which would be great cause i would have a "triggering unit" but now i can no longer choose -every 0.2 sec of the game- which i need to continue damaging enemys...

The best i managed is to damage ONE enemy right after picking it up -.-

Is there a way to trigger something every X secs not as event but as action (or maybe condition? sounds unrealistic) ?

this is my trigger so far

Trigger:
  • function Trig_Dmgaura_Conditions takes nothing returns boolean
    • if ( not ( IsItemOwned(gg_item_I006_0263) == true ) ) then
      • return false
    • endif
    • return true
    • endfunction
    • function Trig_Dmgaura_Func003Func002A takes nothing returns nothing
      • call AddSpecialEffectTargetUnitBJ( "overhead", GetEnumUnit(), "Abilities\\Spells\\Orc\\Disenchant\\DisenchantSpecialArt.mdl" )
      • call UnitDamageTargetBJ( GetManipulatingUnit(), GetEnumUnit(), 50.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_DEATH )
    • endfunction
    • function Trig_Dmgaura_Func003C takes nothing returns boolean
      • return true
    • endfunction
    • function Trig_Dmgaura_Actions takes nothing returns nothing
      • if ( Trig_Dmgaura_Func003C() ) then
        • call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRangeOfLocAll(512, GetUnitLoc(GetManipulatingUnit()))), function Trig_Dmgaura_Func003Func002A )
      • else
        • call DoNothing( )
      • endif
    • endfunction
    • //===========================================================================
    • function InitTrig_Dmgaura takes nothing returns nothing
      • set gg_trg_Dmgaura = CreateTrigger( )
      • call TriggerRegisterTimerEventPeriodic( gg_trg_Dmgaura, 0.20 )
      • call TriggerAddCondition( gg_trg_Dmgaura, Condition( function Trig_Dmgaura_Conditions ) )
      • call TriggerAddAction( gg_trg_Dmgaura, function Trig_Dmgaura_Actions )
    • endfunction


wtf ?
sorry somehow my trigger wasnt converted back :->
its totaly gui

To post a trigger i have to:
convert trigger to text
copy paste text here
set [wc3 ] and [/wc3 ] at end and beginning.
did i do something wrong ? -.-
not my day
 

jig7c

Stop reading me...-statement
Reaction score
123
1) to post a trigger, in its GUI form, just right click on the trigger, in the left column, and click on copy as text... then come to this forum, and paste it and put the
Trigger:
tags around it...

2) you trigger should look like this...in GUI

trigger
event
a unit acquires an item
conditions
item being manipulated equal to (your item)
actions
set Hero = (triggering unit)
trigger - turn on trigger1

trigger1
event
every .02 seconds of game time
conditions
Hero has item type of being manipulated equal to (your item) equal to true...?
actions
set point = position of Hero
set group = every enemy unit, not a building, within 512 of point
unit - damage random unit from group dealing 50 chaos damage
destroy group
destroy point

trigger2
event
a unit drops an item
conditions
item being manipulated equal to (your item)
actions
trigger - turn off trigger1
set Hero = no unit

-free handed-
 

Prester

New Member
Reaction score
0
i tried to make ur trigger
but because i m total nub i got stuck ;D
anyway here how far i got:

Trigger:
  • Trigger
    • events
      • unit - A unit aquires an item
    • conditions
      • (Item-type of (Item being manipulated)) equal to Ring der Regeneration
    • actions
      • Set Hero = (Triggering unit)
      • trigger - Turn on Trigger1 <gen>


Trigger:
  • Trigger1
    • events
      • time - Every 0.20 seconds of game time
    • conditions
      • (Hero has an item of type Ring der Regeneration) equal to True
    • actions
      • Set point = (Position of Hero)
      • Set group = (Units within 512.00 of point matching ((Matching unit) equal to (Targeted unit)))
      • unit - Cause Hero to damage (Random unit from group), dealing 50.00 damage of attack type Chaos and damage type death
      • specialeffect - Create a special effect attached to the overhead of (Random unit from group) using Abilities\Spells\Orc\Disenchant\DisenchantSpecialArt.mdl


Trigger:
  • Trigger2
    • events
      • unit - A unit loses an item
    • conditions
      • (Item-type of (Item being manipulated)) Gleich Ring der Regeneration
    • actions
      • trigger - Turn off Trigger1 <gen>
      • Set Hero = no unit


dammit, my editor is german so my text is totally messy in here :-(

it looks like : (trigger1)

Trigger:
  • Trigger1
    • Ereignisse
      • Zeit - Every 0.20 seconds of game time
    • Bedingungen
      • (Hero has an item of type Ring der Regeneration) Gleich True
    • Aktionen
      • Set point = (Position of Hero)
      • Set group = (Units within 512.00 of point matching ((Matching unit) Gleich (Targeted unit)))
      • Einheit - Cause Hero to damage (Random unit from group), dealing 50.00 damage of attack type Chaos and damage type Tod
      • Spezialeffekt - Create a special effect attached to the overhead of (Random unit from group) using Abilities\Spells\Orc\Disenchant\DisenchantSpecialArt.mdl

if i dont chance most of it into english :->
sorry

but i have some questions:
when setting the variables hero, point and group, are there variables arrays? and when yes what do i put in the index??

the line: set group = units within .... how can i choose enemy unit, not a building?? all i can choose from is: is a building, a hero, a peon, stunned ... where do i get the: ground, neutral, enemy ... from? which comparison?

and if i want to add an effect to the SAME unit from the group that is randomly picked, how do i do that ?

and why and how do you destroy unit and group? found nothing like destroy ... :-(

hope i dont get on ur nerves ;-)

but thx man i got the idea of ur trigger just cant figure out how to make it yet :-(
 

jig7c

Stop reading me...-statement
Reaction score
123
in your second trigger,

Set group = (Units within 512.00 of point matching ((Matching unit) equal to (Targeted unit))) needs to be changed to

Set group = (Units within 512.00 of point matching ((Matching unit) not equal to (building) and ((Owner of (matching unit) equal to enemy of (owner of (Hero)) and (matching unit.... etc...)

use Condition And Condition to specific your criteria

you can do this

set group = blah blah blah...
set unit = Random Unit from group
Unit - Cause Hero to damage unit, dealing 50 chaos damage
Special effect - Create a special effect attached to the overhead of unit using Abilities\Spells\Orc\Disenchant\DisenchantSpecialArt.mdl
set unit = no unit
-use custom script, and type the following out, exactly-
call DestroyGroup (udg_group)
call RemoveLocation (udg_point)

the variable are not arrayed, there are tutorial on what the indexes do and what arrays do, fairly simple to use them...

i don't have WC editor on this computer, if not I would make them for you
you don't get on my nerves
 

jig7c

Stop reading me...-statement
Reaction score
123
it is not MUI, so to let you know

meaning, if two heroes get the same item, it'll probably bug!!!
 

HydraRancher

Truth begins in lies
Reaction score
197
To make it MUI, add it to a Unit Group, then refer to wether it is in the unit group every 0.2 seconds and a unit is in range.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      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