Skip to content

Current questions and answers regarding the map editor.

User Avatar
#5590
Auto-translated
}{0TT@6bI4
Ah, and yes. You don't need to name the mines; GetObjectNamesByType creates them all without any issues.

Jewill, I asked our friend Dolgiy to write a script only because I know it's not just a couple of lines, and the advice "just select resources in the trigger for a new day" might not help someone who's not familiar with it.
Thanks for the tip about the names – I didn't know that, and I've been struggling to name objects on the map myself . Well, let Dolgiy write a script too – the person who asked the question will have a whole zoo of options to choose from!
And it's true, it's definitely not just a couple of lines. Although I perfectly understand that sometimes people want to show off their knowledge, but they don't want to spend too much time on it.

Added 1 minute ago
}{0TT@6bI4
Everything looks good. I can suggest a simplification:
Create a table with resource coefficients based on the weeks:
multiplies={[UNION_WEEK_ID]=3, [IDLE_WEEK_ID]=0.5}
weekMultiplier=multiplies[GetCurrentMoonWeek()] or 1

 

That's a good improvement; it's generally better to avoid these silly checks. Going back to my small comment: do you know which triggers run "first"? Nival's triggers, or custom ones?


Не уходи безропотно во тьму,
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!

Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.