How to: Implement Terrain Modifier Bonuses

Oninuva

You can change this now in User CP.
Reaction score
221
Terrain Bonus Modifiers
By: Oninuva


previewvd2.jpg

What are they?
Terrain Bonus Modifiers are a way to give units bonus when in ditches or behind cover. This will add a lot to game play and strategy.

Is it hard?
No, not at all, with my tutorial you will learn to create your own!

Preparations

First create a unit based on the human farm. Set the values to:

Abilities: Locust
Ground: none
Model: none.mdl
Size: 0.10
Pathing: none
Collision Size: 0
Food Produced: 0

Copy and paste this newly created unit and rename them to:

Light Cover
Moderate Cover
Heavy Cover

Next create an ability based of Devotion Aurora. Set the values to:

Levels: 3
Hero Ability: False
Range: 100
Targets: Enemy

We will come back to this skill later on.

Now create 3 buffs called:

Light Cover
Moderate Cover
Heavy Cover

Go back to your newly created ability and change the buffs to:

Rank 1: Light Cover
Rank 2: Moderate Cover
Rank 3: Heavy Cover
Place the 3 custom units we created before on places where they are needed. The following is recommended:

Light Cover – Rocks, Trees, Shrubs, Low Height Changes, Other Small Doodads
Moderate Cover – Ditches, Trees, Rocks, Small Doodads
Heavy Cover – Holes, Ditches, Trenches, Cliff Edges, Buildings, Large Doodads

To the triggers!

Create this trigger:

Code:
Terrain Modifiers
    Events
        Time - Elapsed game time is 2.00 seconds
    Conditions
    Actions
        Unit Group - Pick every unit in (Units of type Low Cover) and do (Actions)
            Loop - Actions
                Unit - Add Cover  to (Picked unit)
        Unit Group - Pick every unit in (Units of type Moderate Cover) and do (Actions)
            Loop - Actions
                Unit - Add Cover  to (Picked unit)
                Unit - Increase level of Cover  for (Picked unit)
        Unit Group - Pick every unit in (Units of type Heavy Cover) and do (Actions)
            Loop - Actions
                Unit - Add Cover  to (Triggering unit)
                Unit - Increase level of Cover  for (Picked unit)
                Unit - Increase level of Cover  for (Picked unit)

You’re done! I hope this tutorial will help you create and design better maps.

To be added in version 2:
-Slow Terrain
-Miss
-Range Increase
-Range Decrease
-Cloudy

--Oninuva
 

hi_im_bob

......and you are?
Reaction score
44
I have been trying to figuer out how to give terrain bonus etc. this is very helpful. Can't wait for version 2!
 

Romek

Super Moderator
Reaction score
964
gj, this is very helpful

I can't give you ep since your the last person i gave rep :p
 

Tonks

New Member
Reaction score
160
The only reason I dislike this tutorial is because of a detail in your screenshot. I generally resent any map who's author signed it in a bluntly obvious way. I.e, on top of the multiboard. I makes it seem like you're desperate for credit, in my eyes. (But hey, I don't even sign maps, so I may be a little biased.)

It's somewhat useful, but it's one of those things you wouldn't think about unless someone told you about it. You don't really need it, but it's kinda neat when you see it.
 

Oninuva

You can change this now in User CP.
Reaction score
221
The only reason I dislike this tutorial is because of a detail in your screenshot. I generally resent any map who's author signed it in a bluntly obvious way. I.e, on top of the multiboard. I makes it seem like you're desperate for credit, in my eyes. (But hey, I don't even sign maps, so I may be a little biased.)

It's somewhat useful, but it's one of those things you wouldn't think about unless someone told you about it. You don't really need it, but it's kinda neat when you see it.

I do that because someone once ripped one of my maps and put thier name on it. It wasn't exactly a rip but they used the same name... So people don't know who created which. His was really bad and rigged so I don't want to get a bad name on Battle.net...
 
I

IKilledKEnny

Guest
I feel like tacos

That has abselutely no relevance to any intellegent topic. Please delete this post. I never -REP, but it's really hard to not -REP you...

By the way you should add:

Food Produced: 0

to the farms. :D Beside that, good job +REP.
 

Hero

─║╣ero─
Reaction score
250
Cool...but I recommend adding a trigger for removing the bonus...some people might not know this..example would be people new to triggering and GUI


+Rep

-Hero
 

chovynz

We are all noobs! in different states of Noobism!
Reaction score
130
Pretty cool.
I dont have any issues with the tutorial. Maybe a little light but overall quite good.
 

Corleone

New Member
Reaction score
44
Isn't the trigger you posted very, very leaky?
Nonetheless, I never thought of anything like this, so that's a +rep from me aswell.
 

Oninuva

You can change this now in User CP.
Reaction score
221
Isn't the trigger you posted very, very leaky?
Nonetheless, I never thought of anything like this, so that's a +rep from me aswell.

Would it really be much of a problem? It won't lag. Well on a 196 x 192 map with 8 players it don't.
 

AgentPaper

From the depths, I come.
Reaction score
107
Nice system, but you should really just have different versions of the ability, instead of using a trigger and setting ranks. Makes it much easier.
 

martix

There is no spoon
Reaction score
49
I just can't get you people... I remember the old days, where things were finished first and posted. And there you have - already bumpin' without having done even half of it.
 

Oninuva

You can change this now in User CP.
Reaction score
221
I just can't get you people... I remember the old days, where things were finished first and posted. And there you have - already bumpin' without having done even half of it.

What are you talking about? Your saying that my tutorial is half done?
 

martix

There is no spoon
Reaction score
49
Well, you got some "To be added later" in the end, and its not really a long one.
Kinda falls a wee bit too short for my expectation of a tutorial.
 

Oninuva

You can change this now in User CP.
Reaction score
221
The tutorial was made for Terrain Modifier Bonus, which gives units a bonus of defense.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top