Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: AI just doesn't want to work
AI just doesn't want to work
Jan 14 2008, 11:36 pm
By: DeProgrammer  

Jan 14 2008, 11:36 pm DeProgrammer Post #1



Okay, so... Hi, I'm not new, I've been here before, but it's been a while and my account seems to be lost. I've been mapmaking since around 2000, and I was sure I had this down. I spent about 45 minutes searching through the 17 pages of this forum and the rest of the internet via Google, and all I've found was affirmation that what I have should be working.

Anyway, here's the thing. I've tried to get this right more than twenty times in slightly different ways. I just can't get the Zerg in my expansion map to start acting on AI. I put a unit creation action in the same trigger as the AI, and it occurred, so I know the trigger is happening... But the AI just isn't wanting to kick in. (Note: you can't open the map properly with StarEdit.)

I've tried it with each player and combination of players, including All Players, Current Player, Force 1, and Force 2...

The action is simply "RunAIScriptAt(Expansion Zerg Campaign Insane, AI Area)." I tried changing the area and the script itself.

If you want to help, it's the All Players trigger whose comment is "Massacre Time!" I'm sure you'll see a funny thing or two in that trigger (and the other trigger that's also supposed to activate the AI, but let's focus on this one) like "If Elapsed Time = 5," but those were for debugging.

Attachments:
PushAndPullB.scx
Hits: 4 Size: 38.51kb

Post has been edited 1 time(s), last time on Jan 14 2008, 11:39 pm by DeProgrammer. Reason: Forgot to attach the file, duh.



None.

Jan 15 2008, 12:38 am Fwop_ Post #2



Try giving the trigger to Player 5 maybe? I mean, it's his AI.



None.

Jan 15 2008, 1:03 am DeProgrammer Post #3



I tried that. See?
Quote
I've tried it with each player and combination of players, including All Players, Current Player, Force 1, and Force 2...




None.

Jan 15 2008, 1:29 am NudeRaider Post #4

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

You defeat player 5 at game start.
You can notice that when you place map revealers:
All units turn bright blue (P12) and then back to red (P5 ghost player).




Jan 15 2008, 3:41 am DeProgrammer Post #5



Oh, dang, thanks a bunch. My Defeat triggers, based on probes, nexuses, and minerals, were set to apply to All Players rather than just Force 1 or players 1-4. I was going to say I couldn't believe I didn't realize it, but I can believe that, and I made this map a long, long time ago. I was just improving it. :P Geeze, I remember lots of times I couldn't figure out why I kept insta-winning or insta-failing... I should go check out all my old maps. This is what I had done in this one:
Trigger
Players

  • All Players
  • Conditions

  • Always
  • Actions

  • GiveUnits(All, AnyUnit, All Players, Sector1, P5);
  • GiveUnits(All, AnyUnit, All Players, Sector2, P5);
  • GiveUnits(All, AnyUnit, All Players, Sector3, P5);
  • GiveUnits(All, AnyUnit, All Players, Sector4, P5);
  • GiveUnits(All, AnyUnit, All Players, Sector5, P5);
  • GiveUnits(All, AnyUnit, All Players, Sector6, P5);




  • None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [05:02 am]
    Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
    [05: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
    [05: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
    [03: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
    [12:51 am]
    Oh_Man -- definitely EUD
    [09: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
    [09:35 pm]
    Vrael -- that is insane
    [09: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
    [2024-5-04. : 1:05 am]
    Vrael -- I won't stand for people going around saying things like im not a total madman
    Please log in to shout.


    Members Online: Ultraviolet, jun3hong, Roy