Skip to content

Current questions and answers regarding the map editor.

User Avatar
#4254
Auto-translated
User01322342, regarding lighting, including what you asked about in a private message, it's done approximately like this: 1) You create your own set of lighting files. I don't remember exactly how I did it, but probably in the editor, in the map settings tree, in the GroundAmbientLights section, add it using "add" and create a new one using "new." 2) In the same place, go to the lighting properties and configure it as you want (you can set the sun's angle of inclination, color, and saturation for different surfaces, the presence of fog, and so on). 3) Change the lighting using the following functions: SetAmbientLight() - lighting on the map. SetCombatLight() - lighting in combat. Pass a string with the name of the lighting that you gave it in the first step to the function. If you want the lighting to change smoothly, set the third parameter to true and the fourth parameter to the transition duration in SetAmbientLight(). You can find examples of lighting files in my map in Lights/_(AmbientLight)/Sword_and_Sorcery_3/, and examples of how to use the functions in ambient.lua.
Another question. Let's say I want to create a quest to kill wolves. But they will be scattered across the map. Let's say 5 wolves, grouped. The same applies to cities. I don't know if you understood me.
Did you happen to forget to write the question itself? ;)