DIRECT LINK TO VIDEO ::
this is what it should look like at long range with my new 'minimum range' system implemented.
So I got to looking around through some old maps and files and whatnot, and found my Hyper-Space map I had made, I posted a vid a while ago and I realise I never did end up fixing it up and posting the map... I went through it all, cleaned it up, and I'm "perfecting" the "minimum range" crap.
Hyperspace is a map wide range, but I want a minimum range of 48... and currently that is impossible(?) to set in an ability, which really peeves me off.
EDIT: Oh ya, the Reason I want a minimum Range, is that because the Ship moves so fast that I trigger the creation of the Exit Portal at a distance of 24 "units" before it's arrival point, with an offset of 20 to offset the fact that it moves a total of 4 units of distance by the time the Actor triggers/fires. If I cast this ability within a 24 range, the Exit Buff detects the fact that it is less than 24 range, removes the buff, then the Exit Portal is created off screen and the ship doesn't even "pass through it".
I've got the Speed Behavior, a Dummy Behavior that checks for proximity to target point(removal of this Behavior creates the exit portal once proximity is reached), and I have a Behavior that lasts 2 seconds when Hyperspace is first cast, which has a Validator in the Behavior - Validators (Remove) spot, and this field returns FALSE.
From what I can understand, it HAS to be a Triple AND combine, here's why.
Validator Type - Unit Compare Behavior Count
Name - Has Hyper-Space Entry Buff (False-Positive)
Validator - Behavior Hyper-Space Entry
Validator - Compare Equal To
Validator - Failure Result Must target unit
Validator - Ignore While Channeling 0
Validator - Other Unit + (None):e_effectUnitUnknown
Validator - Result - Failure Error
Validator - Unit + (None):Caster
Validator - Value 0
This Behavior, Hyper-Space Entry, must be on the unit. So, False of 1 = to 0, pretty simple. This behavior makes the unit move fast, be uncommandable, cloaked, and whatnot.
Validator Type - Unit Compare Behavior Count
Name - Has Hyper-Space Exit Buff (False-Positive)
Validator - Behavior Hyper-Space Exit Dummy
Validator - Compare Equal To
Validator - Failure Result Must target unit
Validator - Ignore While Channeling 0
Validator - Other Unit + (None):e_effectUnitUnknown
Validator - Result - Failure Error
Validator - Unit + (None):Caster
Validator - Value 0
This Behavior, Hyper-Space Exit Dummy, MUST be on the unit. This behavior auto-removes itself if within 24 Location Range of the Spell Target Point, and it's how I detect when to create the exit portal, So it is crucial until that time!
Validator Type - Location Range
Name - Hyper-Space Entry Proximity (False-Positive)
Target - Location + Hyper-Space (Persistent):Origin Point
Validator - Compare Greater Than Or Equal To
Validator - Ignore While Channeling 0
Validator - Pathing Disabled
Validator - Range 48
Validator - Result - Failure Error
Validator - Value + (None):Caster Unit
Um, Greater Than or Equal To 48, false makes that... Less Than or Equal to??
I threw these 3 validators into a Combine Validator of AND.
I had the ability working fine up until I tried making this 'Minimum Range not met = remove all buffs = fail' system...
Here is the current state(s) of my ability
If I cast my Ability at short range(on screen, definitely under 48 range), it opens the portal, then fails, and the unit has zero buffs, which is what I want to happen if it's cast at a short range. (WORKS PERFECT)
if I cast my Ability at long range(I test cross map, so definitely over 48), it opens the portal, then fails, but leaves the EXIT DUMMY behavior on the unit.(Should remove the Minimum Distance Buff only, while keeping the Exit Dummy and Entry behaviors on the unit).
To sleep I go, I work tonight! I will check back in about ... 8 hours?
Any insight will be greatly appreciate, Thanks Alot!
Depending on any insight, might post the map so that someone can take a closer look later.
I solved the LongRange Hyperspace not working, now it works fine. But now the Short Range almost works fine, except the ship will still Hyperspace to the on screen destination. Damnit!
The Validator is NOT what was wrong, it worked (and works) fine!
Here's what I had...
Behavior Name - Minimum Range Checker
Behavior - Validators (Remove) :: Hyper-Space False Fail (Combine)
Effect - Effect - Final :: Hyper-Space (Set Unbuff)
Effect - Expire Effect :: Hyper-Space Min Range (Unbuff)
Stats - Duration :: 2.000
The (Set Unbuff) was unbuffing ALL 3 buffs, the Entry Buff(main buff), the Dummy Exit Buff(when this is removed, creates an exit portal) and the Minimum Range Checker Behavior(featured above)
All I did was removed the Main Buff from the Set Unbuff, and now I can warp at long distance... and at short distances :(
If I have the Main(Unbuff) in the Set Unbuff, I cannot Hyper-space at all, and any long range attempts leave the Exit Dummy behavior on the unit.
I cannot figure out why it leaves the Exit Dummy on when all 3 should get unbuffed.
and I cannot figure out why it retains the Speed Behavior when it shouldn't.
Is any of this understandable? My head is about to explode!
test this out real quick for me after you download the map.
A: Start the map up, grab any 1 of the ships, cast the Hyper-Space ability anywhere in the same screen, and look what happens.
portal opens, but it fails, ship does not go into HyperSpeed. PERFECT. I want it to fail at short ranges! No buffs(of a total 3 possible displaying on the unit)
B: then, grab the same ship or another one, and just cast it somewhere else on the map, far away.
portal opens, ship does not go into HyperSpeed. Exit Dummy buff remains on the ship while the main buff is removed. COMPLETE FAIL. This is bad!
now, go into the map editor, remove from the Hyper-Space (Set Unbuff) effect, the Hyper-Space (Unbuff) effect. Save it, then go back to play the map again, doing the same tests.
C: Cast Hyper-Space ability anywhere on the same screen.
Portal opens up, ship DOES go into HyperSpeed. BAH TOTAL FAIL!
D: Cast Hyper-Space far away on the map.
portal opens up, ship goes into HyperSpeed. Once near it's destination, the exit dummy behavior gets removed and an exit portal is created, ship passes through it, BINGO! Perfect!!
I want to combine result/test A with result/test D, yet it seems somewhere something just isn't quite meshing up and I've been trying to get it working properly.
I took a look and you incredibly overcomplicated it I think, here's how I would have done it. It's not adjusted so use some persistents to play with the delays.
DIRECT LINK TO VIDEO ::
this is what it should look like at long range with my new 'minimum range' system implemented.
So I got to looking around through some old maps and files and whatnot, and found my Hyper-Space map I had made, I posted a vid a while ago and I realise I never did end up fixing it up and posting the map... I went through it all, cleaned it up, and I'm "perfecting" the "minimum range" crap.
Hyperspace is a map wide range, but I want a minimum range of 48... and currently that is impossible(?) to set in an ability, which really peeves me off.
EDIT: Oh ya, the Reason I want a minimum Range, is that because the Ship moves so fast that I trigger the creation of the Exit Portal at a distance of 24 "units" before it's arrival point, with an offset of 20 to offset the fact that it moves a total of 4 units of distance by the time the Actor triggers/fires. If I cast this ability within a 24 range, the Exit Buff detects the fact that it is less than 24 range, removes the buff, then the Exit Portal is created off screen and the ship doesn't even "pass through it".
I've got the Speed Behavior, a Dummy Behavior that checks for proximity to target point(removal of this Behavior creates the exit portal once proximity is reached), and I have a Behavior that lasts 2 seconds when Hyperspace is first cast, which has a Validator in the Behavior - Validators (Remove) spot, and this field returns FALSE.
From what I can understand, it HAS to be a Triple AND combine, here's why.
Validator Type - Unit Compare Behavior Count
Name - Has Hyper-Space Entry Buff (False-Positive)
Validator - Behavior Hyper-Space Entry
Validator - Compare Equal To
Validator - Failure Result Must target unit
Validator - Ignore While Channeling 0
Validator - Other Unit + (None):e_effectUnitUnknown
Validator - Result - Failure Error
Validator - Unit + (None):Caster
Validator - Value 0
Validator Type - Unit Compare Behavior Count
Name - Has Hyper-Space Exit Buff (False-Positive)
Validator - Behavior Hyper-Space Exit Dummy
Validator - Compare Equal To
Validator - Failure Result Must target unit
Validator - Ignore While Channeling 0
Validator - Other Unit + (None):e_effectUnitUnknown
Validator - Result - Failure Error
Validator - Unit + (None):Caster
Validator - Value 0
Validator Type - Location Range
Name - Hyper-Space Entry Proximity (False-Positive)
Target - Location + Hyper-Space (Persistent):Origin Point
Validator - Compare Greater Than Or Equal To
Validator - Ignore While Channeling 0
Validator - Pathing Disabled
Validator - Range 48
Validator - Result - Failure Error
Validator - Value + (None):Caster Unit
I threw these 3 validators into a Combine Validator of AND.
I had the ability working fine up until I tried making this 'Minimum Range not met = remove all buffs = fail' system...
Here is the current state(s) of my ability
To sleep I go, I work tonight! I will check back in about ... 8 hours?
Any insight will be greatly appreciate, Thanks Alot!
Depending on any insight, might post the map so that someone can take a closer look later.
Again, Thanks for Reading! :P
22 hours and 13 views?
....
Bump.
Bumpy Bump, new problem, somewhat fixed.
Here's the problem!
I solved the LongRange Hyperspace not working, now it works fine. But now the Short Range almost works fine, except the ship will still Hyperspace to the on screen destination. Damnit!
The Validator is NOT what was wrong, it worked (and works) fine!
Here's what I had...
Behavior Name - Minimum Range Checker
Behavior - Validators (Remove) :: Hyper-Space False Fail (Combine)
Effect - Effect - Final :: Hyper-Space (Set Unbuff)
Effect - Expire Effect :: Hyper-Space Min Range (Unbuff)
Stats - Duration :: 2.000
The (Set Unbuff) was unbuffing ALL 3 buffs, the Entry Buff(main buff), the Dummy Exit Buff(when this is removed, creates an exit portal) and the Minimum Range Checker Behavior(featured above)
All I did was removed the Main Buff from the Set Unbuff, and now I can warp at long distance... and at short distances :(
If I have the Main(Unbuff) in the Set Unbuff, I cannot Hyper-space at all, and any long range attempts leave the Exit Dummy behavior on the unit.
I cannot figure out why it leaves the Exit Dummy on when all 3 should get unbuffed.
and I cannot figure out why it retains the Speed Behavior when it shouldn't.
Is any of this understandable? My head is about to explode!
To IRC I go, hopefully someone there can help.
uploading my map.
test this out real quick for me after you download the map.
A: Start the map up, grab any 1 of the ships, cast the Hyper-Space ability anywhere in the same screen, and look what happens.
B: then, grab the same ship or another one, and just cast it somewhere else on the map, far away.
now, go into the map editor, remove from the Hyper-Space (Set Unbuff) effect, the Hyper-Space (Unbuff) effect. Save it, then go back to play the map again, doing the same tests.
C: Cast Hyper-Space ability anywhere on the same screen.
D: Cast Hyper-Space far away on the map.
I want to combine result/test A with result/test D, yet it seems somewhere something just isn't quite meshing up and I've been trying to get it working properly.
Helps anybody??
I took a look and you incredibly overcomplicated it I think, here's how I would have done it. It's not adjusted so use some persistents to play with the delays.