Zirbiss Posted August 13, 2022 Hey, i would like the sector lighting to behave kinda like a slowly flickering candle, to use as a kind of lava glow effect. How would i script something like that? Any ideas? Perhaps someone already have a method? 0 Quote Share this post Link to post
Kan3 Posted August 13, 2022 You can script something using Light_RaiseByValue(x, y); Delay(random(1,15)); Light_LowerByValue(x, y); Restart; but remember that changing light levels to sectors will obviously change the lighting on also walls and ceilings (unless you set the "absolute" flag in "brightness" for the ceiling) 2 Quote Share this post Link to post
Zirbiss Posted August 13, 2022 Thanks, that looks promising. One other question. I'm just starting to learn about scripting for Doom. How and from where do i execute this script? I'm guessing i have to place a Thing in the sector (mapspot maybe?) and run the script from there? 0 Quote Share this post Link to post
Fraston Posted August 14, 2022 ACS. Download the libraries and look at the tutorials for getting started on ZDoom Wiki. 0 Quote Share this post Link to post
Nevander Posted August 14, 2022 If you map with UDMF you don't download any libraries. They are included. Simply open the Script Editor, type #include "zcommon.acs" at the top and then paste that code inside a script block. Script 1 OPEN { Paste here } 2 Quote Share this post Link to post
Fraston Posted August 14, 2022 13 hours ago, Nevander said: If you map with UDMF you don't download any libraries. They are included. Simply open the Script Editor, type #include "zcommon.acs" at the top and then paste that code inside a script block. Script 1 OPEN { Paste here } Im simply going off experience, since I do map with UDMF format in SLADE, and ACS didn’t work at all until I downloaded the libraries. 0 Quote Share this post Link to post
Kan3 Posted August 14, 2022 20 hours ago, Zirbiss said: Thanks, that looks promising. One other question. I'm just starting to learn about scripting for Doom. How and from where do i execute this script? I'm guessing i have to place a Thing in the sector (mapspot maybe?) and run the script from there? You have a quite long journey in front of you x) It's about 2 years that I'm working with ACS and I keep on learning new stuff almost every day. Anyhow, take a deep look at the wiki to find what you need. Running a script is just an "action" (action number 80), so you can simply run every script you want to via linedef triggers, dying things, special sector action things, or you can make a script to run when a player enter the map, or even when the map loads, or when the player dies etc. In this specific case, you can simply go for an OPEN script, exactly like Nevander said. ("pro" tip, you can actually name scripts instead of using numbers, so that you can have a more organized space, you just have to write the name you want between "" and you're done. To call a "string" script though, remember to check the string box when you select the action special 80 (script execute) or you won't find your script) 1 Quote Share this post Link to post
Nevander Posted August 16, 2022 On 8/14/2022 at 1:27 PM, Fraston said: in SLADE That's why. The Doom Builder family of editors includes them. 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.