# 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 &gt; GetRectMaxX(gg_rct_Cave_1)
set y = GetRectMinY(gg_rct_Cave_1)
loop
exitwhen y &gt; 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.

#### 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 &gt; GetRectMaxX(gg_rct_Cave_1)
set y = GetRectMinY(gg_rct_Cave_1)
loop
exitwhen y &gt; 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

General chit-chat
Help Users
• No one is chatting at the moment.
• The Helper:
Friday Yay!
• mgarcia:
did you guys catch Carl's interview? https://www.youtube.com/watch?v=kuHiMXABkGs
• mgarcia:
he's the one that informed me about the DVD's working!
• mgarcia:
he also mentioned the progress on the controllers!
• The Helper:
I did actually it was cool to see the NUON mention
• The Helper:
https://discord.com/channels/985377399338332202/985377399950696481 you can still use this chat too we are two fisted now
• thewrongvine:
costs me \$80 to fill gas tank sad face
• Ghan:
Oof
• The Helper:
Yeah that gas is some expensive stuff
• The Helper:
ghan does not have to worry about it he has a tesla and I have a small tank so it does not cost me usually more than 50
• The Helper:
fyi Ghan we are getting an error trying to access stats or world editor tutorials Error 526 Ray ID: 72128c6bf99f6707 • 2022-06-26 02:35:15 UTCInvalid SSL certificate
• Ghan:
An artifact of switching to Cloudflare... the Let's Encrypt certs can't autorenew through Cloudflare.
• Ghan:
I got the forum updated before things expired but there were some other casualties.
• Ghan:
Everything should be fixed now....
• The Helper:
Thank you Ghan!
• The Helper:
Happy Monday!
• The Helper:
new NUON forum mod cubanral!
+1
• The Helper:
• tom_mai78101:
Started learning how to make tools-assisted speedruns, so I'm lately busy.
• tom_mai78101:
Here's my current project.
+3
that was pretty good!
• jonas:
really cool! I saw the game before but always thought it's just a half as good double dragon. Now I realize it actually has a lot of depth!
• The Helper:
I just saw a bunch of running and jumping past all the enemies look like it was scripted as he said I guess I should have watched the whole thing. I only got a couple of minutes in. You should post that video in the forum Tom
• Darthfett:
"Hi in the chat!"
+2
• tom_mai78101:
Currently busy with making the run even better, so I'll post that new one once I'm done. Right now, I had to modify the emulator itself, the tools that makes this video, and some RAM address disassembling / reverse-engineering to get the right values, and such.
+1

### Members online

No members online now.