Staredit Newtork
Community
StarCraft
Games
Site
Favourites
Can't attack allies? [SOLVED]

Creator: FatalException
Time: Sep 2 2008, 2:52 am
Topic Locked Topic Locked This topic has been locked!
Reason: Solved.
Closed by: Mini Moose 2707

Post #1     FatalException Sep 2 2008, 2:52 am

[Avatar]
Resident ninja
 offline contact
So, my map is going to be kind of a shooter (think sniper maps) where the players are allied with the enemy computer. The problem is, I can't get Raynor (marine) to shoot an ally. The trigger for allying to the enemy is as follows:
[TRIGGER]
[PLAYERS]
[*]Force 1
[/PLAYERS]
[CONDITIONS]
[*]Force 1 has at least 1 opponents remaining in the game.
[/CONDITIONS]
[ACTIONS]
[*]Set Force 1 to Ally.
[*]Set Force 2 to Ally.
[*]Set Force 3 to Ally.
[*]Set Force 4 to Ally.
[*]Preserve trigger.
[/ACTIONS]
[/TRIGGER]
When I try to attack, he'll get through the shooting animation, but no shots hit. Who knows what's up?
This post was edited 1 time, last edit by FatalException: Sep 7 2008, 4:20 am.
Quote of the week: Squad Tactics! -FatalException
Top

Post #2     Kaias Sep 2 2008, 2:57 am

[Avatar]
Thats not going to happen
 online contact
When a player is constantly allied like that the shots (almost all everytime) don't hit, it has the same effect as a unit trying to hit a unit that's being constantly moved where he can't go. Try allying less frequently.
Top

Post #3     FatalException Sep 2 2008, 3:02 am

[Avatar]
Resident ninja
 offline contact
I know, the condition should only re-ally when they set someone to enemy, but I'll try delaying the preserve anyway... It even did this when it only allied ONCE.

Which is why delaying the preserve is just about the weirdest working solution ever. :dontgetit: Thanks, I guess? LOCK PL0X.
Quote of the week: Squad Tactics! -FatalException
Top

Post #4     Mini Moose 2707 Sep 2 2008, 3:05 am

[Avatar]
 offline contact
It would seem to me that the trigger is running too often.
Try having the trigger set the alliance status whenever FOES commands 1 whatever the target is to force locks. (the condition becomes true because the person unallied.)

EDIT: This might be helpful for using the opponents condition:
Quote
This condition evaluates how many of the players are opponents of the trigger owner. By default, all of the other players are considered opponents. A player does not count as an opponent if either of the following conditions are met:

· The player has been defeated. This condition only counts players that are still in the game.
· The player is set for allied victory with the trigger owner, AND the player is set for allied victory with all other players set for allied victory with the trigger owner. (The enemy of an ally is still an enemy.)

As a result, if opponents equals zero, all of remaining players are set for allied victory with each other. Use this condition with the Victory action to create a scenario that allows for allied victory.

It would appear that you have to either use Allied Victory or Foes commanding conditions. Allying without allied victory is still considered an opponent, which causes the trigger to run.
This post was edited 1 time, last edit by Mini Moose 2707: Sep 2 2008, 3:12 am.
Top

Post #5     Kaias Sep 2 2008, 3:05 am

[Avatar]
Thats not going to happen
 online contact
Quote from FatalException
I know, the condition should only re-ally when they set someone to enemy, but I'll try delaying the preserve...

It even did this when it only allied ONCE.
That wouldn't be caused by allying then and therefore be likely caused by constant moving, maybe you're just mistaken?.
Top

Post #6     FatalException Sep 7 2008, 4:20 am

[Avatar]
Resident ninja
 offline contact
This problem has been solved since Sept. 1 at 8:02 PM.
Quote of the week: Squad Tactics! -FatalException
Top
Topic Locked Topic Locked This topic has been locked!
Reason: Solved.
Closed by: Mini Moose 2707
0 members in this topic: None
+ 1 guest(s)


[02:25 am]
Deathman101 -- http://www.staredit.net/?p=modnight read and you can go to SF's Realm
[02:16 am]
[lil-Inferno]:] -- Epic phail.
[02:16 am]
[lil-Inferno]:] -- I don't know how to get SF realm, and my brother is on my comp with SC :P .
[02:14 am]
[Vi3t-X]:] -- Inferno @ SF Realm. Come test something quickly nub.
[02:05 am]
[lil-Inferno]:] -- I need you to go into the enemy base and killz tehm awll bai yuorslef.
[02:04 am]
[lil-Inferno]:] -- Be quiet Privatecake!
[02:01 am]
Generalpie -- i'm back from my pinful arm and leg injuries!!!
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions