Trigger Problem with RPG map

Jeremy

Member!
Joined
Jan 4, 2003
Messages
27
Reaction score
0
Location
USA
Website
Visit site
Ive heard RPGs are a pain in the but to make but im doing it..All is turnin out good but I want to make a location follow a specific unit and its hard. Heres what im doing: When you start off, each player chooses a unit he wants to play through the game with. I want the location to stay on whatever unit that player picks (6 players, 1 for each player). It has to ONLY target that specific unit because you can recruit other units later and it would screw up if it tried to put a location between 2 players not close to eachother. I have done this to get it to work: (this is an example for one unit for the 1st player) Players: Player 1. Conditions: Current Player commands at least 1 ghost. Actions: Center Location labeled Player 1 on Ghost owned by Player 1. Preserve Trigger. This seems to work half the time (sometimes it places the location there, other times the location is in the middle of the screen) Any ideas?
 

Zmoney

BattleForums Senior Member
Joined
Oct 31, 2002
Messages
3,120
Reaction score
1
Location
Tonawanda BAby
Im oldood on aim or his name in this forum is crookedfoot
 

SmashBros.Pro

BattleForums Senior Member
Joined
Sep 5, 2002
Messages
1,159
Reaction score
0
Location
Bin Laden's Secret
Website
www.angelfire.com
This is a little complicated set a small location, but it has to be bigger than the unit. Go to triggers and set the condition as elapsed game time is 0 seconds, then go to the move location action and set it to something like center location 1 on terran marine for player 1 at anywhere. Its been a while since I made a map, so this probally isn't exactly right.
 

Jeremy

Member!
Joined
Jan 4, 2003
Messages
27
Reaction score
0
Location
USA
Website
Visit site
Hm..that could work..I wonder if it will scre up if I tell it to center location on a unit that doesnt exist. Thanks
 

Jeremy

Member!
Joined
Jan 4, 2003
Messages
27
Reaction score
0
Location
USA
Website
Visit site
Nah, that didn't work. It was first centered on the unit then it moved to the middle, thanks anyway though.
 

Zmoney

BattleForums Senior Member
Joined
Oct 31, 2002
Messages
3,120
Reaction score
1
Location
Tonawanda BAby
that should work!
 

Jeremy

Member!
Joined
Jan 4, 2003
Messages
27
Reaction score
0
Location
USA
Website
Visit site
No, because Id have to do one for 'terran marine', 'terran ghost' and all other units that the user can pick (theres 9 of em). That will make it so 1/9 of the time it finds your unit and centers the location on it, the other 8/9 of the time its looking for units you dont haven. What I did (and it works now), is :When player 1 gets terrain Marine, set switch (P1 Terrain Marine). Then: Always and when 'P1 Terran Marine' is Set, Center location labeled Player 1 on Terran Marine owned by current player at 'anywhere'. I had to do this for all 9 chars for each player. Thats a goos 108 triggers/modifications. Took an hour and a half but it was worth it.
 

Zmoney

BattleForums Senior Member
Joined
Oct 31, 2002
Messages
3,120
Reaction score
1
Location
Tonawanda BAby
lol what type of rpg r u makin what will it be called because for allthis time u spent makin it i wana own it!
 

Crookedfoot

Premium Member
Joined
Aug 6, 2002
Messages
1,077
Reaction score
0
Location
Middle of Nowhere
Website
www.battleforums.com
This is an adaptation of what SmashBros.Pro suggests, that may work, but no guarentees, since I have yet to use this trigger.

If I'm right on how this trigger is supposed to work,,,,,

Rather than try to use "location 1", and "location anywhere" 9 times, and it only working 1 out of nine times.......

Overlay 9 locations over the entire map in place of Location Anywhere), one for each unit, and also have the 9 other locations set for the units (in place of his Location 0).

This way, you could have nine specialized triggers and locations that should work 100 % of the time.

In theory

Maybe

I hope
 

Jeremy

Member!
Joined
Jan 4, 2003
Messages
27
Reaction score
0
Location
USA
Website
Visit site
Except that I would have a blue screen when I wanted it to work. This map will be done in 2 weeks (with luck). It is called Mithgar Open RPG. I will probably lock it so people cant change the name ans host it as their own (or add 'cheats' to it)
 

Master.America

Premium Member
Joined
Dec 2, 2002
Messages
4,225
Reaction score
0
Location
San Jose, CA
Website
www.soundclick.com
Because the player commands other units later, you just have to use SmashBros.Pro's idea on all the hero units. Yes, it takes a little work, but that's what mapmaking requires... a LOT of trigger copying and editing. So you would use....

Conditions:
Always

Actions:
Center location labeled 'Location 1' on Terran Marine owned by Player 1 at 'Anywhere'
Preserve Trigger

Then another trigger...

Conditions:
Always

Actions:
Center location labeled 'Location 1' on Terran Ghost owned by Current Player at 'Anywhere'
Preserve Trigger

and so on... for every hero. To make it work better, you make the location size bigger.
 

Jeremy

Member!
Joined
Jan 4, 2003
Messages
27
Reaction score
0
Location
USA
Website
Visit site
I Tried that. That was my first attempt. It still looks for all the units at once. Look, I got it to work using switches as I have said before. My switches took ALOT more work than what you are suggesting and they are alot more stable. WHat I mean by the blue screen is whenever I switch to 'location' on the map editor, the whle screen will be included in the location which will make it blue.
 

Crookedfoot

Premium Member
Joined
Aug 6, 2002
Messages
1,077
Reaction score
0
Location
Middle of Nowhere
Website
www.battleforums.com
I think Master_America might be on to something here, with a little editing though.

Where he has Location 1 being for Marine, and Ghost, make a change to this.

Location1 for marine
Location2 for ghost

Leave location anywhere as the other vaiable location for both units.

Location1 will follow the marine, and Location2 will follow the ghost independent of each other

I got to fooling with this trigger, I've always misunderstood what it does, it has some serious potential.

Thank You for starting the original post.



I Attached A Test Map To The Next Post To Show You
((for some reason it didn't attach to this one))



In it, a medic wonders around dropping flags, you go around with an SCV picking them up, and get 1 mineral for your troubles. It is also set up for 2 people, so I could show a friend, but I have yet to do a multiperson test.

Each unit has a very small location that has to follow them in order to work.

There is no point in what happens in it, except for being a template for parts of a game I am working on. And your trigger will be an important part of it. While saving hours of trigger setup.

Maybe the map can help give ideas to another game maker.
 

Jeremy

Member!
Joined
Jan 4, 2003
Messages
27
Reaction score
0
Location
USA
Website
Visit site
Just to let everyone know, I have solved this problem. It has worked for a while now (as I have stated before). Thanks for your help, but I think we can just let this thread die now
 

Master.America

Premium Member
Joined
Dec 2, 2002
Messages
4,225
Reaction score
0
Location
San Jose, CA
Website
www.soundclick.com
Good, problem solved. Earlier I meant different location on each unit but I copied and pasted and forgot to change it. The only problem with that is that extra units (recruited or whatever) might not be able to activate these events unless you made separate triggers for every one.
 

Jeremy

Member!
Joined
Jan 4, 2003
Messages
27
Reaction score
0
Location
USA
Website
Visit site
They will only be activated by the 'heros'. as in starting chars. I do actually have one more problem though...has nothing to do with this thread though..besides the fact that its for my RPG. You got me thinkin about it with 'recruiting units'. When I went to recruit one before, it said 'Terran Marine' instead of the name I chose for it. any idea how to change that?
 

Crookedfoot

Premium Member
Joined
Aug 6, 2002
Messages
1,077
Reaction score
0
Location
Middle of Nowhere
Website
www.battleforums.com
In the Scenario tab, choose Unit And Hero Settings.

Uncheck both boxes for the unit that you wish to rename.

Change the name, and any other setting you want changed.

DO NOT replace the check marks, if you do, it reverts to the default name, and settings.

Save your map.

This should do it, if it still doesn't, you may want to do a reinstall, something may be corrupt.
 

NewPosts

New threads

Top