Staredit Network > Forums > Modding Assistance > Topic: Help Mah Trigs!
Help Mah Trigs!
Feb 19 2009, 1:20 am
By: Syphon  

Feb 19 2009, 1:20 am Syphon Post #1



Alright, because building off this is crucial to IS, I need to know why these triggers aren't working.'

Trigger(All Players):
 Conditions:
  Always()
 Actions:
  EnableDebugMode()

Trigger(All Players):
 Conditions:
  Switch(Switch 1, Set)
 Actions:
  SetDeaths(Player 2, Start Location, Set To, 1)
  SetDeaths(Player 3, Start Location, Set To, 31)
  SetDeaths(Player 4, Start Location, Set To, 0)
  SetDeaths(Player 5, Start Location, Set To, 0)
  SetDeaths(Player 6, Start Location, Set To, 128)
  SetDeaths(Player 7, Start Location, Set To, 64)
  SetDeaths(Player 8, Start Location, Set To, 63)
  EnableDebugMode()


Trigger(Player 12):
 Conditions:
  Always()
 Actions:
  MoveLocation(Player 12, Vespene Geyser, Anywhere, Location 1)
  PreserveTrigger()

Trigger(Player 12):
 Conditions:
  Bring(Player 12, At Least, 1, Vespene Geyser, Location 1)
 Actions:
  RemoveUnitAtLocation(Player 12, 1, Vespene Geyser, Location 1)
  CreateUnit(Player 12, 1, Terran Refinery, Location 1)
  PreserveTrigger()


Trigger(Player 1):
 Conditions:
  Always()
 Actions:
  CreateUnit(Player 1, 1, Terran Wraith, Anywhere)




None.

Feb 19 2009, 1:20 am Syphon Post #2



Basically, the red ones don't work, the green ones do. Halp.



None.

Feb 19 2009, 1:22 am ForTheSwarm Post #3



On broodwarai's LocUnlock topic, modmaster said remove unit and move location don't work for him.



None.

Feb 19 2009, 1:28 am A_of-s_t Post #4

aka idmontie

There's no reason why they don't work. Use numbers instead of strings for the triggers? Other than that, I don't think you can move geysers. Try it with a regular map.



Personal GitHub
Starcraft GitHub Organization - Feel free to request member status!
TwitchTV

Feb 19 2009, 1:31 am Syphon Post #5



Quote from A_of-s_t
There's no reason why they don't work. Use numbers instead of strings for the triggers? Other than that, I don't think you can move geysers. Try it with a regular map.

I typed everything as numbers when I made it, PyTRG automatically converts.

I'm thinking that PyTRG may have a problem with MoveLocation(), because the documentation and program ask for it to be ordered differently.



None.

Feb 19 2009, 1:33 am A_of-s_t Post #6

aka idmontie

What size are the locations? Do you know what flags you set? Did you set the flags properly? Are Geysers able to be moved?



Personal GitHub
Starcraft GitHub Organization - Feel free to request member status!
TwitchTV

Feb 19 2009, 1:52 am Syphon Post #7



2x4, yes (all of them), yes, yes. And as far as I know they're also able to be removed. This is irrelevent, because I didn't get unit unplaceable errors, either.



None.

Feb 19 2009, 10:28 pm Syphon Post #8



Shit... It's looking like it's just not working because it can't create units for player 12?



None.

Feb 19 2009, 10:45 pm A_of-s_t Post #9

aka idmontie

Correct, you can't create units for extended players. However, I could have sworn you can create critters for P12...



Personal GitHub
Starcraft GitHub Organization - Feel free to request member status!
TwitchTV

Feb 19 2009, 10:49 pm Syphon Post #10



I'm trying to create geysers. I'll try critters.

Critters did not work.



None.

Feb 19 2009, 11:00 pm O)FaRTy1billion[MM] Post #11

👻 👾 👽 💪

Create for not player 12. Only pre-placed resources can be owned.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Feb 20 2009, 5:23 am bajadulce Post #12



Maybe you can use a unit other than a resource to achieve what you want? Maybe mind control the unit like wormholes in AA. If you can't create units for p12, maybe you can use an existing player and then give the units to player12? Even tho it would happen almost instantaneous, the revealed fog-of-war vision thing would remain the remainder of the game for that player and be quite unfair tho. Dunno... sounds like a good head scratcher.



None.

Feb 20 2009, 5:25 am A_of-s_t Post #13

aka idmontie

You could always try the super tricky make-a-new-unit-via-plugin method, which, from what I hear, is pretty hard.



Personal GitHub
Starcraft GitHub Organization - Feel free to request member status!
TwitchTV

Feb 20 2009, 5:30 am O)FaRTy1billion[MM] Post #14

👻 👾 👽 💪

-edit-
Nevermind, he isn't making resources.
You could create for like P8... Tohugh if anyone is in that slot they'll see stuff.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Feb 20 2009, 5:42 am bajadulce Post #15



Here's an idea that steals from my own mod.. but oh well.. :P

Create a few kakaus for each player at start of game and then promptly give these to player12. These kakarus will by nature fly all over the map and you must either hunt them down to obtain your desired reward (death count) OR mindcontrol them etc. Mindcontrolling them might give you some extra bonus that comes with the kakaru, like a free observer or a big supply bonus etc.. Now to add some fun to the chase, maybe make them permacloaked. Maybe even allow them to cast spells if you are at a certain place in your tech tree or morph to something uber. They should of course absolutely remain "critters" in their AI orders and have no controllable movement. They must remain "wild".

I just described PEAI familiars for the most part. Anyways, smoke some weed or drop some acid and maybe something will come to you. j/k of course... maybe.
Gluck.



None.

Feb 20 2009, 9:05 pm Syphon Post #16



Quote from O)FaRTy1billion[MM]
-edit-
Nevermind, he isn't making resources.
You could create for like P8... Tohugh if anyone is in that slot they'll see stuff.

As far as I can tell, if a player isn't in game, you can't create things for them ><

@Baja, the plan was to have you never need to make geyser buildings, but it looks like that's dead...



None.

Feb 21 2009, 4:05 am bajadulce Post #17



Oh, I was under the impression you were looking for a unit that could be scattered about the map that could be used in a way to procure resources. I use "wild" kakaru in my mod, but for another purpose, but now I'm kind of liking this idea of having locunlock spawn around 5-6 "wild" creatures per player and then give to player12 to fill up the map.

You can't create units for neutral players, but you can give units to them right? My mapping knowledge is pretty weak.



None.

Feb 21 2009, 5:10 pm Syphon Post #18



Ya, as far as I know giving works for anyone (That's how the defense redistribution works in old sunken d maps)



None.

Feb 21 2009, 5:43 pm ForTheSwarm Post #19



Then could you create refineries for players 1-8 and then give them to player 12?



None.

Feb 21 2009, 8:49 pm Syphon Post #20



I can try it, but I'd have to give them 0 vision.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
Please log in to shout.


Members Online: Roy