Need help with expected errors

mrpwn

New Member
Reaction score
0
JassCraft says the syntax is fine but when trying to enable it in WE Trigger file i made called main it gives me expected errors up and down.

Code:
globals
    unit udg_Kisame=null
    location udg_point=null
    group udg_group=null
    effect udg_Effect=null
    soundtype udg_Effect2=null
    unit udg_Target=null
    unit udg_Kakashi=null
    trigger gg_trg_Main=null
    trigger gg_trg_Untitled_Trigger_001 = null
    location tp1=null
    location tp2=null
    location tp3=null
    trigger udg_trigger_raikiri=null
    unit udg_unit01=null
    group tg=null
    real dx=0
 
endglobals
 
function InitGlobals takes nothing returns nothing
    local integer i = 0
    set udg_group = CreateGroup()
endfunction
 
    function Trig_Main_Actions takes nothing returns nothing
        call DisplayTextToForce( GetPlayersAll(), "NAruto Test Map" )
endfunction
 
function Trig_raikiri_Conditions takes nothing returns boolean // the condition, that spell cast=raikiri
    return (GetSpellAbilityId()=='A001')
endfunction
 
function trigenemy takes nothing returns boolean //a condition to determine which types of units are targeted, invoked later in trigger
    return IsUnitAliveBJ(GetFilterUnit()) and IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())) //chooses only living enemies as targets, can be expanded to disallow buildings or heroes, etc.
endfunction
 
function raikiri_dam takes nothing returns nothing // damage section of spell
    call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),dx,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC) // target damage use triggerunit to do damage, the chaos type tends to make it "pure" aka not affected by armor type
    set tp2=GetUnitLoc(GetEnumUnit()) //get location of unit, has to be defined beforehand to avoid causing leaks
    call AddSpecialEffectLocBJ(tp2,"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl") //makes the effect at location of unit
    call DestroyEffect(GetLastCreatedEffectBJ()) //stop effect
    call RemoveLocation (tp2) //cleans up the location once not needed anymore
endfunction
 
function Trig_raikiri_Actions takes nothing returns nothing
    local unit u=GetTriggerUnit() //trigger unit, because "u" is easier to type later on then "GetTriggerUnit()"
    set udg_unit01=GetSpellTargetUnit() // unit that is targeted by spell
    set tp1=GetUnitLoc(udg_unit01) //get location
    set tp3=PolarProjectionBJ(tp1,80.00,GetUnitFacing(u)) //actually this defines the spot to which the unit will be moved, to be about arm's length from enemy
    call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),tp3,tp1) // move to tp3, a spot next to enemy and face tp1 - the spot enemy is standing
    call RemoveLocation (tp3) //remove location since not needed anymore
    set dx=I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,u,true)+50)*(GetUnitAbilityLevel(u,'A001'))) // formula for dmg, I define it here to avoid having to calculate when damaging every enemy in range
    set tg=GetUnitsInRangeOfLocMatching(300,tp1,Condition(function trigenemy)) //creates unit group to be his, based on range 300 from spot cast (tp1) and matching the condition trigenemy (written higher up in trigger)
    call ForGroupBJ(tg,function raikiri_dam) // execute dmg
    call DestroyGroup (tg) //gets rid of the group once not needed, trigger would function even without this line but as the leak builds up it would eventually contribute to lag
    call RemoveLocation (tp1) // location not needed anymore
endfunction
//===========================================================================
function InitTrig_Main takes nothing returns nothing
    set gg_trg_Main = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Main, function Trig_Main_Actions )
endfunction
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    that sucks i bet they are expensive
  • Varine Varine:
    Not really
  • Varine Varine:
    The entire hot end is like 20 dollars, I just can't get anymore until next week
  • Varine Varine:
    I ordered like five blocks for 15 dollars. They're just little aluminum blocks with holes drilled into them
  • Varine Varine:
    They are pretty much disposable. I have shitty nozzles though, and I don't think these were designed for how hot I've run them
  • Varine Varine:
    I tried to extract it but the thing is pretty stuck. Idk what else I can use this for
  • Varine Varine:
    I'll throw it into my scrap stuff box, I'm sure can be used for something
  • Varine Varine:
    I have spare parts for like, everything BUT that block lol. Oh well, I'll print this shit next week I guess. Hopefully it fits
  • Varine Varine:
    I see that, despite your insistence to the contrary, we are becoming a recipe website
  • Varine Varine:
    Which is unique I guess.
  • The Helper The Helper:
    Actually I was just playing with having some kind of mention of the food forum and recipes on the main page to test and see if it would engage some of those people to post something. It is just weird to get so much traffic and no engagement
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • 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

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top