Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: counting hallucinated units?
counting hallucinated units?
Dec 10 2007, 10:20 pm
By: who  

Dec 10 2007, 10:20 pm who Post #1



Is it possible?
e.g. when i make an "at least" trigger, the hallucinated unit is not counted.



None.

Dec 10 2007, 10:35 pm lil-Inferno Post #2

Just here for the pie

I think this map will help you as it has hallucination detection: http://www.maplantis.org/index.php?map=361




Dec 11 2007, 12:36 am NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

INIT: create a temp unit at the location of the questioned unit(s) (orig loc) and set dc 'hallu count' to 1.

LOOP1: Then make a loop - condition: brings no temp unit to 1x1 pixel and 'hallu count' is exactly 1 - which:
- removes all temp units
- centers 1x1 pixel on the hallucinated unit
- creates a temp unit at 1x1 pixel
- moves 1 of the hallus at 1x1 pixel to a temporary location
- adds 1 to your counter

AFTER LOOP1: When brings at least 1 temp unit to 1x1 pixel and hallu count is exactly 1
- set 'hallu count' to 2

LOOP2 (optional): If you have a mix of hallucinated and real units of the same type give all units at temp loc to temp player and make another loop - condition temp player brings at least 1 unit to temp loc and 'hallu count' is exactly 2:
- move 1 unit at temp loc owned by temp player to temp loc 2
- subtract 1 from your counter

END: When temp player brings at most 0 unit to templ loc and 'hallu count' is exactly 2
- Give all units from all players at temp loc 2 to orig player
- Move all units from temp loc 2 to orig loc
- Move all units from temp loc to orig loc
- Set 'hallu count' to 0




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
Please log in to shout.


Members Online: anoeth47, DarkenedFantasies