I'm only guessing since I don't have the editor with me here. But try to search for functions which either return the cliff level or the height of a point. Since cliffs offset the height by quite a big amount you can detect the delta between the target point and the startpoint.
Out of bounds? What exactly do you mean? Units can be placed outside of bounds, but not walk there by themselves. And where exactly these bounds are can be detected by getting the max X and Y of the playable map region.
On the part about out of bounds: A rapid firing trigger that checks the position of any units using its x/y position could do it, ie if it finds a unit at an x/y that's lower, 'lefter', 'righter' or above the map's play area could detect this and then you have it do what it needs to do to correct the situation. This could also be accomplished if you're willing to sacrifice your 2nd lvl cliffs to represent your border lands, ie if that same style trigger finds a unit is currently over terrain that's above 'x' height threshold it could fire as well. I think the x/y might be better though because you could at least get an idea of which way the unit went out of bounds too which would probably help in deciding how to deal with units that do.
...ED or just use four regions that are very long thin stripes along the edges works too now that I think about it. A nice quartet of events firing whenever any unit enters these regions would be probably a lot better then a rapid trigger searching every unit for the potential to be in that same space.
Iv been wondering this for a while. Is it somehow possible to detect when you are near/cross map bounds/camera bounds? and any way to detect cliffs?
I would prefer to do this with triggers, but I would like sollution even if it can only be done with data editor.
My jump spells can go over bounds and cliffs (if you jump to a cliff the jump looks really bugged, because the height difference...)
I'm only guessing since I don't have the editor with me here. But try to search for functions which either return the cliff level or the height of a point. Since cliffs offset the height by quite a big amount you can detect the delta between the target point and the startpoint.
Out of bounds? What exactly do you mean? Units can be placed outside of bounds, but not walk there by themselves. And where exactly these bounds are can be detected by getting the max X and Y of the playable map region.
the X, Y idea could work indeed. I mean the Units can jump out of bounds, since the I made the jump spell by moving the unit....
On the part about out of bounds: A rapid firing trigger that checks the position of any units using its x/y position could do it, ie if it finds a unit at an x/y that's lower, 'lefter', 'righter' or above the map's play area could detect this and then you have it do what it needs to do to correct the situation. This could also be accomplished if you're willing to sacrifice your 2nd lvl cliffs to represent your border lands, ie if that same style trigger finds a unit is currently over terrain that's above 'x' height threshold it could fire as well. I think the x/y might be better though because you could at least get an idea of which way the unit went out of bounds too which would probably help in deciding how to deal with units that do.
...ED or just use four regions that are very long thin stripes along the edges works too now that I think about it. A nice quartet of events firing whenever any unit enters these regions would be probably a lot better then a rapid trigger searching every unit for the potential to be in that same space.