Jump to content


Problem with Diplomacy


  • Please log in to reply
1 reply to this topic

#1 Guest_Sc4Freak_*

Guest_Sc4Freak_*
  • Guests

Posted 19 July 2004 - 10:59 AM

I'm pretty new to AI scripting, and I have a problem with one of my scripts. It is a very simple one but it frustrates me. I want it to set you as an enemy if you destroy 2 or more of the AI's buildings. Here is my script:

*** IF ***
Player Player '<Local Player>' destroyed 2 or more buildings owned by Player '<This Player>'.
*** THEN ***
Player '<This Player>' considers Player '<Local Player>' to be Enemy

I don't get why it doesn't work :unsure:

#2 Mithril

Mithril

    496

  • Hosted
  • 1,386 posts
  • Location:UK
  • Projects:Heh! You're not going to ask me that question.

Posted 19 July 2004 - 03:11 PM

If this script is in a player folder it won't work. <Local Player> will only work in either the PlyrCivilian folder or the neutral folder.. I also suggest you make it look like this:

***IF***
Player Player '<Local Player>' destroyed 2 or more buildings owned by Player '<This Player>'.
***THEN***
Player '<Local Player>' considers Player '<Local Player>' to be Enemy


since <This Player> will point to no relevant player if the script isn't in a player specific folder.
Command & Conquer: Red Alert - ReGeneration

"Not the faintest clue =\"

-ComradeJ




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users