Jump to content

Recommended Posts

Posted

Is it possible in the mission editor to make it so i get - for example 20 cash every time i kill 1 unit?
I have not much experience with the newer versions of the editor since last time i created some maps was about 5 years ago.

Also while im at it, i was wondering if in the starport menu you can just blank out some slots, basicly having only like 6 slots to buy units in.
Would also be cool if you could buy more than just 6 units at once, but i suppose thats not possible.

Posted (edited)
On 8/30/2026 at 1:00 PM, Sylazzz said:

Is it possible in the mission editor to make it so i get - for example 20 cash every time i kill 1 unit?
I have not much experience with the newer versions of the editor since last time i created some maps was about 5 years ago.

although the Starport is very strict about what it allows, the 20 cash thing would actually be rather simple. you just need a unit loop :)

here ya go. this doesn't work perfectly, I just tried it with the new Drop Pods system and I guess cuz the pods are spawned via events the game doesn't really know what to do when they explode and kill inf. maybe need "Attacker is unit" criteria in the unit loop to make sure it doesn't give cash to side zero when something like this happens?

Spoiler

image.thumb.png.5213709b08849dcbf78e673e2c614e72.png

bounty.d2kevtbounty.ini

but anyway, it should still be a good example, even if it doesn't work perfectly. after the dropped sardaukar started killing stuff my cash went up by 20 each time. to import the above d2kevt, right-click the events rows and the import option will be there. the .ini is only there to give the variables the appropriate names

here's how it works...

Spoiler

image.png.a499a0da8c05f76de5a8fa1cbe4c5150.png

the unit loop checks for units belonging to any side which are dead and not tagged. no conditions on this, it can just run repeatedly as it will execute based off the criteria provided. if you're unfamiliar with unit loops, uhh... well, first, I should point out that these little help text pop-ups can be enabled for events, conditions, game rules, AI parameters... if you see a lil ? icon, click it and give that help text a look!
image.png.0a3d3ce7e90bd97de8aaaf9e80fc434e.png

anyway, for each dead and untagged unit it will tag said unit, check the attacker side, and if the attacker is not the same side as the unit that died (to prevent the player from exploiting this system with the player's own units lol), add 20 cash.

hope that helps, mate. if you need any more help, feel free to poke me any time. I frequent the Landsraad Discord server pinned on this forum, so you're welcome to drop by there too. otherwise, good luck and happy mapping!

Edited by Fey
typo xD
  • Like 1
  • 2 weeks later...
Posted (edited)

Thank you!

From the looks of it ... i have only scratched the surface of what is possible with the newer editor versions 😅

Also i didnt know about the ? icons, thank you.
Hold on, actually it looks different for me as it does for you, the overlay and everything when i import it, what version do you have there?
I downloaded the Gruntmods Studios which automatically included "D2K Editor (Map and Mis) Version 2.2" ...so i didnt test this yet so dunno if it still works, but the actual problem for me personally is, that i dont understand all that variable stuff, from the word alone i first thought its similar as how they work in warcraft 3, but i dont really get how to use them.

Screenshot_859.png

Edited by Sylazzz
Posted (edited)

my pleasure, mate!

On 9/9/2026 at 1:26 PM, Sylazzz said:

Hold on, actually it looks different for me as it does for you

ah, that's what the ini is for. the event import is one thing, that'll get you the events set up. the variable names, event notation, those kindsa thing are detailed in the associated ini. if you try exporting some events of your own, you'll notice the editor produces an ini of that too. at any rate, the names are irrelevant to the variables' functions; I've used variables called "MCVIndex" and "MCVHP" to get coordinates, for reasons

yep, I've worked with Warcraft 3's map editor too. nice one, that

the version I've got is v3.0. Klofkac just updated the editor & game exe over in his thread over here pretty recently:

but we're often testing even more new features over in the Landsraad Discord server pinned at the top of the "Dune 2000" section of this forum. new releases like this only occur when things are considered stable

anyway: basically, Klofkac's additions to the game weren't just new features we could make use of, but a new programming language of sorts that you can build your own new features on top of. it operates very logically too: you write variables to values with certain events and read variables as needed for other events. once you get an idea of it for the first time, it's not too difficult to come up with other systems!

to break this particular system down further...

On 8/31/2026 at 6:26 PM, Fey said:

image.png.a499a0da8c05f76de5a8fa1cbe4c5150.png

event 89 checks for dead, untagged units belonging to any side. the side is written to the [Player] variable, and the unit meeting the criteria is indexed at the [Index] variable

event 90 tags the [Index] belonging to side [Player] so the bounty can't be collected multiple times on one unit. event 91 uses a similar principle, checking the side whose unit attacked [Player]'s [Index] and writing that side's value to [Player2]

if [Player] is not the same as [Player2], so the player can't kill his own units to trigger the bounty...

...then add 20 cash to [Player2]'s coffers.

if you'd like some other examples, uhh... PsYcHo's been doing up a whole bunch of new maps, many of which which Cm has posted to this forum, that make use of new features like variables, I'm pretty sure. those would be good to have a glance at. my recent Arkanon-related maps also make liberal use of variables, though some of the systems are very complex, even if they are notated. feel free to ask for more info on a particular system if you'd like

hope that helps though. if you swing by that Discord server I mentioned, feel free to ping me any time and we could do some speedier back and forth :)

Edited by Fey

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.