[Solved]Designate area as 'High Ground' without using cliff tool?

Kanoobee

New Member
I would like to have the mechanics of high ground in an area without using the cliff tool.

Is this possible in the editor?

Example:
So because of the limitation on ramps(types of ramps) and also the shape and height of cliffs, I would like to make my own cliffs using the 'Height' tool. But I would still like these self made cliffs to have the high ground mechanics(the most desired one would be the effect of not being able to see up on the high ground while giving those on the cliff to see everything still.

Thanks,
Kanoobee
 

Varine

And as the moon rises, we shall prepare for war
You could use pathing and visibility blockers. But triggers would look better. Easy way, set up regions and define fields of high/low ground with the added effects you want.
 

Kanoobee

New Member
Thank-You!

So I am in the triggers now, looking for the right trigger and I had an idea since it doesn't look like setting a region specifically as 'high ground' is a built in feature.

This is my idea, could I make it so that fog covers a specific region UNLESS you are standing in that region? I am looking for a way to do this now, but I am new to this, so it might be a while. If I find out how, I'll come back and post it. But if anyone already knows how, I wouldn't be angry if you shared it with me.

Thanks!
Kanoobee
 

Varine

And as the moon rises, we shall prepare for war
No, its not a built in function. There is a visibility action I think, I don't have Warcraft installed so I can't go look at it. But it would be something along those lines. The Hive might have a system like that already built, I'm not sure but it would be worth checking.
 

Siretu

Starcraft 2 Editor Moderator
Staff member
I remember seeing a post on how to fake this behavior. I'm not sure how effective it was though. What they did was to have pathing blockers along the edge of the "cliff" and then invisible xel'naga towers with a much smaller radius along one side of the cliff (the high ground). This way, units can't move through the cliff and units on one side can see "down".
 

Kanoobee

New Member
Thank you for your reply, but I think I may have found a solution. I just need help getting it into a trigger.

There is a Unit_FlagArray that you can set it the Data editor called "Use Line of Sight" or "e_unitFlagUseLineOfSight". When checked, your vision is blocked by LOS blockers, when unchecked, you have unobscured vision(aka, 'Flying Vision').

The other option would be to set a unit's vision height via triggers.

Either way, I will have to use LOS blockers to get this done. There doesn't seem to be a trigger function that is able to 'hide' a region regardless of if you are near it. It seems to only have the ability to reveal regions.

Now to the part that I do not know and still need help with.
What "Actions" within a trigger do you use to set the unit vision height or to disable the 'Use Line Of Sight' flag?

Thanks,
Kanoobee
 

Varine

And as the moon rises, we shall prepare for war
This is getting a little more complicated than I'm going to be able to help you with, as I (nor do I think most of us) have had Warcraft installed for a long time. I am not entirely confident that you can change Use Line of Sight at runtime.

One thing I do remember that might help, under Visibility you should be able to emit a black mask visibility modifier over a region. I don't think it's exactly the same as the Fog of War but it might work, at the very least temporarily.
 

Siretu

Starcraft 2 Editor Moderator
Staff member
This is getting a little more complicated than I'm going to be able to help you with, as I (nor do I think most of us) have had Warcraft installed for a long time.
I might be confused, but we're in the SC2 editor help forum. I was assuming he wanted help implementing this in SC2? ^^
 

Kanoobee

New Member
Lol, yes, since I am posting in the SC2 forum, I am asking about the SC2 editor. When Varine first mentioned WC3, I thought that maybe they had just made a mistake. But I guess not. Sorry if i confused you somehow Varine, I am talking about SC2
 

Kanoobee

New Member
I have just figured it out.

I have named a region as 'High Ground'.

I have surrounded the region with LOS blockers and have used this trigger to gain the desired effect:

Events
TriggerAddEventUnitRegion(null, High Ground 1, true)
Actions
CatalogFieldValueSet(c_gameCatalogUnit, (UnitGetType((EventUnit()))), VisionHeight, (UnitGetOwner((EventUnit()))), ".5")


OR the non raw data version

Events
Unit - Any Unit Enters High Ground 1
Actions
Catalog - Set value of Units (Unit type of (Triggering unit)) VisionHeight for player (Owner of (Triggering unit)) to ".5"

Then to disable it, make a new trigger and set the event value to 'false' or 'Leaves' and the Actions value to "0" Bam, emulated High Ground.

What this does is grant increased "Vision Height", which is considered a 'stat' in the data editor for a unit. I used the CatalogFieldValueSet trigger to change it.

This could also be used to emulate a sort of League of Legends style grass.

By putting the Vision Height value at .5 it grants vision past LOS blockers AND it allows vision of lvl2 ground(lvl1 cliff), but does NOT allow vision of lvl3 ground(lvl 2 cliff)

Hope this helps someone else too.

One thing I will continue to try and figure out is setting a more specific variable for the 'Entry' section of the catalog trigger. The 'entry' part of this catalog trigger is specifically asking for a unit's 'Type', which is a unit's internal name. I'll give an example, General Warfield's Marine unit has an internal name/type of "MarineWarfield". A Unit's internal name can be easily found in the data editor(Detail View) for the unit, under the 'Unit' tab, near the bottom under (Basic)Unit: Name, Warfield's looks like this: "Unit/Name/MarineWarfield".

But it might actually be that you cannot get more specific since the 'Entry' part of the trigger is specifically demanding the unit's type and the type is shared across all of the same unit. The only work around I can immediately think of is if you made a bunch of duplicates, all with different internal names. But that is not really reasonable for most situations.
 
Last edited:

Varine

And as the moon rises, we shall prepare for war
Oh. Well fuck, I tried. I didn't even look, I'm sorry. I see you seemed to have gotten it working to your liking despite that though. Damn it, the fucking one time I try to help.
 

Kanoobee

New Member
No one is mad or bugged with you, man. I appreciated that someone was responding, in the end i was able to figure it out with a lot of Googling(I mean a lot). So no worries man.

So, something I have found in my journey accross the internet for information about the editor, there does not seem to be a comprehensive source, like a good wiki on it. There are like 5 wikis on the editor but they are all so incomplete.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    The old shoutbox wasn't supported anymore. We updated xenForo, so it had to be replaced.
  • jonas jonas:
    let's see if everyone finds it... the nice thing about the shoutbox was I could check on it even while logged out, but the existence of this one is hidden when you're not logged in
  • Ghan Ghan:
    We can fix that.
  • Ghan Ghan:
    Chat should show on the sidebar when not logged in now.
  • Ghan Ghan:
    (You'll still need to log in to post messages)
  • Ghan Ghan:
    Test!
  • tom_mai78101 tom_mai78101:
    I must be in a test server.
  • tom_mai78101 tom_mai78101:
    Nice, Twitter tweets embedding now works
  • Wizard Wizard:
    Yup.
  • Ghan Ghan:
    Excellent.
  • Ghan Ghan:
    @tom_mai78101 Hello there.
  • Ghan Ghan:
    Tagging works in the chat too.
  • tom_mai78101 tom_mai78101:
    @Ghan Missed it.
  • Wizard Wizard:
    Still fixing things here and there. Added widgets to the portal, will make it match the ones here on the forum index tomorrow.
  • Ghan Ghan:
    The venerable World Editor Tutorials site has been converted to HTTPS at last.
  • jonas jonas:
    cool
  • jonas jonas:
    and I can even edit my messages, nice
  • seph ir oth seph ir oth:
    GENERAL CHIT CHAT, YOU ARE A BOLD ONE
  • Ghan Ghan:
    Hello there
  • The Helper The Helper:
    this new chatbox is great and the forum software update is great too
    +1
  • The Helper The Helper:
    upgrade has fixed forum registration spam problem
  • tom_mai78101 tom_mai78101:
    Something tells me we might be able to customize the chatbox a bit, considering that there's a gap under every message.
  • Wizard Wizard:
    Going to deploy a fix soon, just had to take some time for myself this weekend.
  • Varine Varine:
    Unbelievable. Time for yourself? How dare you!

    Members online

    No members online now.

    Affiliates

    Hive Workshop
    Top