Attacking

HubbubJub

New Member
Joined
Dec 30, 2002
Messages
4
Reaction score
0
Location
California
Website
boga.tk
Attacking (and other stuff)

How could you make it so a unit with a ranged attack will not attack enemies unless it has used the attack button (or hotkey a) and left-clicked on it? That means attack-moving will not work and neither will right-clicking...

Also, is there any way to organize players in a leaderboard?

Example:

Kills
Team 1
Player 1 6
Player 2 0
Player 3 1
Team 2
Player 4 2
Player 5 2
Player 6 1

Or something of that sort.

EDIT2: (I felt it more relevant in front of the first edit) If what I said above is not possible without sacrificing some players, then how can you make it so it swaps between two leaderboards (one for showing individual score, and then one for team score) every, say, ten seconds?

EDIT: Also, another thing. I used dialog boxes to choose your "class" at the beginning of the game, and it applies to all players. So when I have "a dialog button is clicked" how do I make it create the unit of the class he clicked for each player?

This is what I have so far:
Events
- Dialog - A dialog button is clicked for ClassDialog
Conditions
- (Clicked dialog button) Equal to DialogButton[1]
Actions
- Unit - Create 1 Scout for (Triggering player) at (Random point in Team1spawn <gen>) facing 45.00 degrees

Well, thanks in advance.

EDIT3: Yeah, I know, a lot of questions. Uhm, how do you make your view snap to your player and also point in the direction he is pointing?
 

US-Playboi-US

Member!
Joined
Nov 23, 2002
Messages
114
Reaction score
0
Website
Visit site
First Question : for making the untis not auto attack.. just make a trigger seeting the acquistion range to 0 that disallows it to auto aquire targets.....

Secobnds Question : Use the show and hide trigger.. teh trigger liek this...

Show Team

Event: Melee Initialization

Conditions : NONE

Action : Hide Individual (gen)
Show Team (gen)
Wait (10 seconds)
Hide Team
Show Individual
Wait (10 seconds)
Run this trigger

Thats simplier than 2 triggers

_________________________________________________

You need a Melee Init Trigger Edit

Events: Melee Initialization

Condition: NONE

Actions: Create a Dialogue Button Labeled Scout
Set DialogueButton[1] = to Last Created Dialogue Button
Show ClassDialogue

Events
- Dialog - A dialog button is clicked for ClassDialog
Conditions
- (Clicked dialog button) Equal to DialogButton[1]
Actions
- Unit - Create 1 Scout for (Triggering player) at (Random point in Team1spawn <gen> ) facing 45.00 degrees
 

HubbubJub

New Member
Joined
Dec 30, 2002
Messages
4
Reaction score
0
Location
California
Website
boga.tk
I'll try that, but I'm not sure I understand how to alternate between two leaderboards...with your method, wouldn't that make it only alternate once and that's it?

I have tried to look for maps where I can take it apart and get help but people like to lock their maps. :(

EDIT: I don't understand your dialog box explaination...there's the Event, Conditions, and Action, but after that you pasted my stuff too...could you clarify what that means?

EDIT2: I tried the acquisiton range thing. It works so long as they're moving, but as soon as they've stopped he'll attack anything in range, which is NOT what I want it to do.
 

US-Playboi-US

Member!
Joined
Nov 23, 2002
Messages
114
Reaction score
0
Website
Visit site
Ok..

The reason i copied.. ur message is because u need both of those triggers.... one to show it and the other to make it where u click it happens..

I dont know why the acquisition trigger didnt work.......
 

NewPosts

New threads

Top