Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: through caves with just two locations
through caves with just two locations
Mar 11 2008, 4:48 am
By: Saucon  

Mar 11 2008, 4:48 am Saucon Post #1



it is three triggers that look like this:
Conditions:
Switch("Tele", not set);
Bring("Current Player", "Any unit", "Cave Right", At least, 1);

Actions:
Move Unit("Current Player", "Terran Civilian", 1, "Cave Right", "Cave Left");
Set Switch("Tele", set);
Minimap Ping("Cave Left");

Preserve Trigger();
then:
Conditions:
Switch("Tele", not set);
Bring("Current Player", "Any unit", "Cave Left", At least, 1);

Actions:
Move Unit("Current Player", "Terran Civilian", 1, "Cave Left", "Cave Right");
Set Switch("Tele", set);
Minimap Ping("Cave Right");
Preserve Trigger();

and finally:
Conditions:
Bring("Current Player", "Any unit", "Cave Left", Exactly, 0);
Bring("Current Player", "Any unit", "Cave Right", Exactly, 0);
Switch("Tele", set);

Actions:
Set Switch("Tele", clear);
Preserve Trigger();


thats all fine and good, it works...but only for one unit at a time. cant send groups of units throuh it.
help very much appreciated.

Attachments:
Single Loc Tele Test.scx
Hits: 0 Size: 44.06kb

Post has been edited 1 time(s), last time on Mar 11 2008, 4:54 am by Saucon.



None.

Mar 11 2008, 6:01 am Ryan Post #2



Locations will only be centered on the (southwestern most is it?) unit. So unless you make more than 1 location, there's no other way to avoid it. Why do you need a location centered on multiple units in a cave in the first place?



None.

Mar 11 2008, 9:15 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

Hes not centering a location. This is a teleport trigger set in and out of the cave.

Firstly your trigger only transports 1 unit at a time. You have to change it to all.
Secondly when you use hyper triggers it will be hard to bring two or more units to that beacon before the trigger fires.
Set the switch immediately but then add a wait(2000) (or other value) before you actually teleport the unit. So the player has time to gather some.

But anyways I find it strange that you have to leave the target location before the next unit(s) can be sent through. I recommend adding 2 exit locations and you wouldn't need the switches and only 2 triggers and it would be more convenient for the player.




Mar 11 2008, 4:09 pm Impeached Post #4



Put a cloaked unit of some sort where you want people to exit when teleporting (on both sides).

Then, just have a simple
Condition: Bring at least 1 unit to "Cave Entrance"
Action: Create 1 [air unit] at Cave Inside
Action: Move location labeled "Cave Inside" to "Invisible Unit" (marking cave exit)
Action: Move all units at Cave Entrance to Cave Inside
Action: Move location labeled Cave Inside on the air unit you just created in action 1
Action: remove the air unit.



None.

Mar 11 2008, 6:45 pm Saucon Post #5



thanks for feedback, i'll just scrap this and work on it from the start.



None.

Mar 11 2008, 8:44 pm Saucon Post #6



ok i scrapped that first one, heres a new one...works quite well, but something is wrong with the trigger that goes from tele2 loc 2 to tele2 loc 1. i cant find it...maybe you guys can?

too lazy to copy the triggers, heres map.

Attachments:
user placeable tele test.scx
Hits: 0 Size: 39.33kb



None.

Mar 12 2008, 3:25 am Vrael Post #7



Here's a two way system that only goes one direction at a time, if it helps.

Conditions:
Current Player Brings At Least 1 men to Location 1
Current Player Has suffered exactly 0 Deaths of X
Actions:
Move all men at Location 1 to Location 2
Set Deaths for Current Player to 1 for Y
Preserve Trigger

Conditions:
Current Player Brings At Least 1 men to Location 2
Current Player Has suffered exactly 0 Deaths of Y
Actions:
Move all men at Location 2 to Location 1
Set Deaths for Current Player to 1 for X
Preserve Trigger

Conditions:
Current Player Brings Exactly 0 men to Location 2
Current Player has suffered at least 1 deaths of Y
Actions:
Set Deaths for Current Player to 0 for Y
Preserve Trigger

Conditions:
Current Player Brings Exactly 0 men to Location 1
Current Player has suffered at least 1 deaths of X
Actions
Set Deaths for Current Player to 0 for X
Preserve Trigger

In this case, the units X and Y represent directions rather than just a switch
If you are going from 1 --> 2, that's the Y direction, and 2 --> 1 is the X direction
Only problem is, you can only go one direction at a time
If you want to go back, you need to exit the destination location and it resets
To it's advantage, the system can be created for individual players easily so 2 different players can go 2 different directions



None.

Mar 12 2008, 7:54 am NudeRaider Post #8

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

It seems this is the best system so far.
But it can be improved by combining the 2 dcs. Use value 1 for x direction and value 2 for y direction.




Mar 18 2008, 3:10 am Saucon Post #9



thanks guys, much appreciated. ^^

oh and by the way, how do i do lights? ... its been awhile.

Post has been edited 1 time(s), last time on Mar 18 2008, 3:55 am by Saucon.



None.

Mar 18 2008, 9:26 am NudeRaider Post #10

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

Depends on what you want to achieve. If you want a additional sight, without having a unit there, place map revealers or constantly create/remove a unit there.
If you ONLY want these parts to be visible (units "blind") unvision the player to himself by switching OFF the vision to his player # (ai script).




Mar 18 2008, 2:47 pm Saucon Post #11



ah yes now i remember its an AI script, silly me. thanks again :blush:

basically i want the player to unvis himself everywhere except where the light switch is.

Post has been edited 2 time(s), last time on Mar 18 2008, 2:56 pm by Saucon.



None.

Mar 18 2008, 5:25 pm Saucon Post #12



ok i tried that its not working though?!

the triggers look like so:

Trigger("Player 1")
Conditions:
Bring("Current Player", "Zerg Zergling", "Lights OFF", Exactly, 1);

Actions:
Set Deaths("Current Player", "Unused Terran Bldg type 2", Set To, 1);
Move Unit("Current Player", "Zerg Zergling", All, "Lights OFF", "Lights Return");
Run AI Script("-Vi0");
Preserve Trigger();
Comment("Lights OFF");


Trigger("Player 1")
Conditions:
Bring("Current Player", "Zerg Zergling", "Lights ON", Exactly, 1);

Actions:
Move Unit("Current Player", "Zerg Zergling", All, "Lights ON", "Lights Return");
Run AI Script("+Vi0");
Set Deaths("Current Player", "Unused Terran Bldg type 2", Set To, 0);
Preserve Trigger();
Comment("Lights ON");


Trigger("All players")
Conditions:
Deaths("Current Player", "Unused Terran Bldg type 2", Exactly, 1);
Actions:
Create Unit("Current Player", "Protoss Observer", 1, "Lights Return");
Remove Unit At Location("Current Player", "Protoss Observer", All, "Lights Return");
Preserve Trigger();


:><:



None.

Mar 18 2008, 6:25 pm NudeRaider Post #13

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

Remember that you have to make 1 trigger for each player and then choose the right player # in the ai script "... vision OFF/ON ..." list.




Mar 18 2008, 8:03 pm Saucon Post #14



yeah i did that.
here look, :/

Attachments:
LIGHTS.scx
Hits: 1 Size: 35.75kb



None.

Mar 20 2008, 4:06 am fritfrat Post #15



Remember to keep in mind that when you are doing "turn ON shared vision for Player 8" it means that that player can now see player 8. Enjoy.

Also, I added hyper triggers into the map. These are not necessary.

Attachments:
Lights.scx
Hits: 1 Size: 35.8kb



None.

Mar 20 2008, 6:03 am Rantent Post #16




Locations are for wussies.



None.

Mar 20 2008, 2:25 pm Falkoner Post #17



Massive amounts of sprites are for wussies. Real men blend their terrain! :P



None.

Mar 20 2008, 4:14 pm Saucon Post #18



ah i see now. thanks frit ^^



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:59 am]
NudeRaider -- *is
[05:17 am]
NudeRaider -- despite all its flaws the sound design its fantastic
[10:29 pm]
Oh_Man -- homeworld 3 = massive disappointment
[2024-5-14. : 10:05 am]
Moose -- ya
[2024-5-14. : 5:23 am]
zsnakezz -- yes
[2024-5-12. : 8:51 pm]
l)ark_ssj9kevin -- Are you excited for Homeworld 3?
[2024-5-12. : 8:44 pm]
l)ark_ssj9kevin -- Hi Brusilov
[2024-5-12. : 4:35 pm]
O)FaRTy1billion[MM] -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
my server that was hosting it died
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
Please log in to shout.


Members Online: newageofpower, Roy