Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Problem with Triggers
Problem with Triggers
Dec 2 2009, 4:33 am
By: Mesden  

Dec 2 2009, 4:33 am Mesden Post #1



I've got so many Triggers I can't list them all in here, so I attached my Map to this Thread. Can someone look at the Triggers and tell me why I'm getting this problem?

Red takes his Civilian to the Crystal to start the first Round, which creates 1 Marine for Player 7. For some reason it creates the Marine for Player 8. What's supposed to happen is it creates the Unit for Player 7, the unit walks across the Map, then walks back as Player 8. When Player 8 reaches the starting position, it's Game Over for Red. But for some reason, Player 8 is starting instead of Player 7 and killing Red as soon as he starts the round

Attachments:
Lurker Defense S.scx
Hits: 3 Size: 55.59kb



None.

Dec 2 2009, 5:02 am rockz Post #2

ᴄʜᴇᴇsᴇ ɪᴛ!

Use order instead of move. Move is like a teleport.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Dec 2 2009, 10:28 pm Mesden Post #3



There has got to be an easier way to do Triggers, I did Players 1 and 2 already, still need to do Players 3 4 5 and 6, all of them have the same Triggers as Players 1 and 2, only different is changing their Tags from Player 2 to Player 3, Location 2 to Location 3, Etc.



None.

Dec 2 2009, 11:00 pm rockz Post #4

ᴄʜᴇᴇsᴇ ɪᴛ!

You can recycle locations, but that's not always a good thing. There's also text trigger duplicator and trigger duplicator you can use. Notepad++ makes things easy with find/replace and copy/paste.

I would go through on player 1, make all the triggers, then set a variable like "@" as the location name. find and replace everything with player 1's locations, then player 2's, then 3, etc...



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Dec 2 2009, 11:32 pm Mesden Post #5



Okay I got another Question for you. I currently have 14 Overlords and that's giving me only 115/200 Units. Is it possible to increase the amount the Overlords give so I can use one Overlord to give 200 Units?



None.

Dec 2 2009, 11:36 pm Jack Post #6

>be faceless void >mfw I have no face

Not without modding, no.



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Dec 2 2009, 11:43 pm JaFF Post #7



You can, however, have as many overlords as you need and constantly order them to move to one location. That way, they will all be nice and compact.



None.

Dec 3 2009, 12:00 am rockz Post #8

ᴄʜᴇᴇsᴇ ɪᴛ!

yggsdrasill adds 30 to supply.
http://www.staredit.net/wiki/Modifying_Supply_Limits
A battlecruiser owned by a particular player will add 600. There are many others.

http://www.staredit.net/files/609/
In my defense map, I've included this (look in bottom right). There's also a few other concepts in there. You find something in it helpful in your map, but I don't know.

Post has been edited 1 time(s), last time on Dec 3 2009, 12:10 am by rockz.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Dec 3 2009, 12:03 am NudeRaider Post #9

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

Or you could place extended units to modify supply limits.
You can even kill them (or let them burn down if you use terran buildings) after the map hast started, but the supply will stay. This way you can even exceed 200.




Dec 3 2009, 12:17 am Mesden Post #10



Hmm, I like the Yggdrassil idea, saves me from having to load the Map with a ton of Overlords :)

In regards to that Trigger Editor, I saved the Triggers with the Original Campaign Editor and tried opening it in Notepad, all I got were weird symbols. What do I need to use to open the .trg File?



None.

Dec 3 2009, 12:25 am rockz Post #11

ᴄʜᴇᴇsᴇ ɪᴛ!

staredit opens .trg files. You need to use SCMDraft to use text trigger duplicator. If you want to use trigger duplicator you don't have to do anything special, just open up the map.

I don't know which "trigger editor" you are talking about.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Dec 3 2009, 12:29 am Mesden Post #12



Quote from rockz
You can recycle locations, but that's not always a good thing. There's also text trigger duplicator and trigger duplicator you can use. Notepad++ makes things easy with find/replace and copy/paste.

I would go through on player 1, make all the triggers, then set a variable like "@" as the location name. find and replace everything with player 1's locations, then player 2's, then 3, etc...

You mentioned here something about using a Trigger Editor so I can just scroll through Notepad and "Replace All" rather than having to go through each Player individually.



None.

Dec 3 2009, 12:32 am Mesden Post #13



Nevermind. I'm and idiot.



None.

Dec 3 2009, 12:33 am fritfrat Post #14



Well, if you can use the same location for them all, you can use Current Player instead of P1, P2, etc.. if you want them in different spots, you can just follow this silly example...
Only have to do this 6 times:
P1: Current Player bring atleast 1 men to P1Buy: Move MasterBuy to P1Buy

And so forth for all the players. Then, for every "buy" trigger (or whatever action you want to do multiple times in different areas), you can just do it for Force1 or players1-6 (same thing) and just have
Force1: Current player brings atleast 1 men to MasterBuy: create 1 unit at Temp, move all men for current player at MasterBuy to temp

Then, for each player, do 12 more easy triggers.
P1: current player brings atleast 1 BuyPerson to Temp: Move back to P1SelectorArea.
P1: current player brings atleast 1 men to Temp: Move to fighting area.

That way, you have 18 triggers doing busy work, but it allows you to only have to make 1 instead of 6 for every action you want to do from now on using that location. Yay.

Also, use the action Comment at the end of all your triggers, it is extremely useful for organization sake. Anything you write in comment only shows up in the editor.


As far as using a text trigger editor to allow you to make those changes easily, you need to use SCMDraft, which is (in most people's opinions) the best editor out there for SC maps.
http://www.stormcoast-fortress.net/cntt/software/scmdraft/

I would recommend it, and it will in general make everything much easier for you :)

EDIT: People posted since I started writing :P Note that I would recommend using Notepad++, Wordpad, anything really except Notepad because notepad is very inefficient and slow when it comes to doing searches and replaces in big text files.



None.

Dec 3 2009, 12:54 am Mesden Post #15



Yeah I just tried using Notepad++, I'm not sure how to load the Triggers into it.



None.

Dec 3 2009, 12:58 am Mesden Post #16



I've been using SMCDraft but I've done all the Triggers manually up to this point. Not sure how to edit things "The easy way".



None.

Dec 3 2009, 1:08 am Vrael Post #17



http://www.staredit.net/169881/

Read the section on text triggers. To get to that, open up your map in SCMDraft2, click "Triggers" then instead of "Classic Map Triggers" click "Trigger Editor"

Also, please edit your older posts instead of double-posting in the future. That's what the edit button is for.



None.

Dec 3 2009, 2:19 am fritfrat Post #18



Most of the time, you will find that classic trigedit is easier for you. I still recommend the text trigedit for when you are copying lots of repetitive triggers and just changing a number or two each time.
Just open the text trigedit, highlight everything in there, cut, open notepad++, paste. Copy the triggers you need, changing the numbers you need to, making new lines. Once done, cut and paste everything back, and hit the little checkmark button to save :) Use cut instead of copy to avoid accidentally losing work.
Also, make sure you are using the most recent version of SCMDraft; under the triggers tab, the "classic map triggers" is what you should be used to, and the "trigger editor" is the text editor for the triggers.



None.

Dec 3 2009, 6:03 am Mesden Post #19



Something really weird is happening, I uploaded the Map to the Thread. Almost all the Triggers are working now, but when I start a game on Battle.Net with other Players, they all drop off one by one. I first just thought it was their internet connection, but when I started playing more Games, it kept happening. People began to drop like flies. What's going on?

Upon further investigation, it appears they are dropping due to an exception error, but no idea what's causing it.

Attachments:
Lurker Defense S.scx
Hits: 0 Size: 92.45kb

Post has been edited 1 time(s), last time on Dec 3 2009, 6:42 am by Mesden.



None.

Dec 3 2009, 6:50 am UnholyUrine Post #20



Quote
There has got to be an easier way to do Triggers, I did Players 1 and 2 already, still need to do Players 3 4 5 and 6, all of them have the same Triggers as Players 1 and 2, only different is changing their Tags from Player 2 to Player 3, Location 2 to Location 3, Etc.

Check all the players (p1, p2, p3 ...) .. and use "Current Player" in your triggers....

I feel that you should maybe try to edit other people's map first before trying one from scratch by yourself.
There're a lotta things that can crash people so I do not know your problem. Check out the Crash List in the tutorial...



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:30 am]
ClansAreForGays -- When you join a pub lobby because you see 7/8 players, but then realize host is bating you with computers. :flamer: :flamer:
[11:48 pm]
O)FaRTy1billion[MM] -- :wob:
[2024-10-30. : 6:24 pm]
Ultraviolet -- :wob:
[2024-10-29. : 4:33 pm]
Vrael -- :wob:
[2024-10-29. : 1:32 pm]
Zoan -- :wob:
[2024-10-28. : 5:21 pm]
Ultraviolet -- :wob:
[2024-10-27. : 4:34 pm]
jjf28 -- :wob:
[2024-10-27. : 9:01 am]
Zycorax -- :wob:
[2024-10-27. : 3:31 am]
RIVE -- :wob:
[2024-10-26. : 7:12 pm]
Ultraviolet -- :wob:
Please log in to shout.


Members Online: Andrea Rosa, Roy