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

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.