Easy question :)

Grags_1977

Ultra Cool Member
Hi, I'm trying to add this...

Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Terrain type at (Point(x, y))) Equal to Underground - Grey Stones
    • Then - Actions
    • Destructible - Create a Line of Sight Blocker at (Point(x, y)) facing (Random angle) with scale 1.00 and variation 0
    • Else - Actions

To this...
JASS:
function Trig_Build_2_Actions takes nothing returns nothing
local real x = GetRectMinX(gg_rct_Cave_1)
local real y
loop
exitwhen x > GetRectMaxX(gg_rct_Cave_1)
set y = GetRectMinY(gg_rct_Cave_1)
loop
exitwhen y > GetRectMaxY(gg_rct_Cave_1)
HERE!!!!!!
set y = y + 128
endloop
set x = x + 128
endloop
endfunction


I've never tried to learn Jass and know NOTHING about it. But I was unable to find a way to do this in GUI.

Thanks in advance :)
 

Grags_1977

Ultra Cool Member
I think i've done it. Took all day!

But this is the result.

JASS:
function Trig_Build_2_Actions takes nothing returns nothing
local real x = GetRectMinX(gg_rct_Cave_1)
local real y
loop
    exitwhen x > GetRectMaxX(gg_rct_Cave_1)
    set y = GetRectMinY(gg_rct_Cave_1)
    loop
        exitwhen y > GetRectMaxY(gg_rct_Cave_1)       
            if ( GetTerrainTypeBJ(Location(x, y)) == 'Ggrs' ) then
                call CreateDestructableLoc( 'YTlb', Location(x, y), GetRandomDirectionDeg(), 1, 0 )
            endif
        set y = y + 128
    endloop
    set x = x + 128
endloop
endfunction


Don't know if it leaks or not. But it's working finally :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • tom_mai78101 tom_mai78101:
    Thanks for the context.
    +1
  • The Helper The Helper:
    Happy Hump Day!!!
  • Blackveiled Blackveiled:
    TH old fart gotta have a beer with me one of these days
  • The Helper The Helper:
    I am down anytime Blackveiled
  • Blackveiled Blackveiled:
    count on it then cause you don't live that far from me hah
  • The Helper The Helper:
    really that is cool!
  • The Helper The Helper:
    Hey Tom I added a new Weird tag to the News Prefixes
  • The Helper The Helper:
    What is up Blackveiled?
  • Blackveiled Blackveiled:
    Chillin', lurkin'. :D
  • The Helper The Helper:
    I am working on a bunch of site projects right now doing a bunch of behind the scenes stuff and trying to clean up some stuff that I let slide when I got lazy with the site for a few years...
  • The Helper The Helper:
    Are you in Houston Blackveiled or just in Texas?
  • Blackveiled Blackveiled:
    Houston
  • Blackveiled Blackveiled:
    I've been living here since 2014.
  • The Helper The Helper:
    OK banlord we need to get together soon! The only other member of the site I know in Houston is XXX Conan
  • The Helper The Helper:
    and he does not want none lol
  • The Helper The Helper:
    he put up a picture of his mom one time and she was HOT!
  • The Helper The Helper:
    I wish we still had that
  • Blackveiled Blackveiled:
    Lmao you scared him off I see.
  • The Helper The Helper:
    he will be back
  • The Helper The Helper:
    Conan was like 12 when he started here
  • The Helper The Helper:
    I literally think I was his male role model
  • Blackveiled Blackveiled:
    Yeah I was 12 when I started here as well.
  • The Helper The Helper:
    you guys were just kids
  • The Helper The Helper:
    I was in my 30s when i got the Blizzard MVP
  • The Helper The Helper:
    I am 53

    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