User avatar
lodilefty
Posts: 7616
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

CheckAILevel = 0

Mon Mar 10, 2008 3:02 am

I want to write events that will occur only for a human player.

Will CheckAILevel = 0 limit the event to human only?

The script report for this seems to imply 'minimum AI of 0', rather than 'only 0'
Always ask yourself: "Am I part of the Solution?" If you aren't, then you are part of the Problem!
[CENTER][/CENTER]
[CENTER]Visit AGEWiki - your increasingly comprehensive source for information about AGE games[/CENTER]

[CENTER]Rules for new members[/CENTER]
[CENTER]Forum Rules[/CENTER]

[CENTER]Help desk: support@slitherine.co.uk[/CENTER]

User avatar
PhilThib
Posts: 13705
Joined: Tue Oct 18, 2005 5:21 pm
Location: Meylan (France)

Mon Mar 10, 2008 8:47 am

I am not sure this will work...for what I understood, that would work for both the Human and AI players, starting with the lowest AI level (i.e. 0)... :tournepas
Image

User avatar
dooya
Posts: 1311
Joined: Wed Nov 07, 2007 9:12 am
Location: Always near to Vicky Pollard.
Contact: Website

Mon Mar 10, 2008 9:19 am

PhilThib wrote:I am not sure this will work...for what I understood, that would work for both the Human and AI players, starting with the lowest AI level (i.e. 0)... :tournepas
If this logic applies, one could check for CheckAILevel = <maximumAIlevel>+1 to limit the event to humans?
No quote - No bullshit!

User avatar
Primasprit
Posts: 1614
Joined: Mon Jun 19, 2006 7:44 pm
Location: Germany

Mon Mar 10, 2008 9:59 am

lodilefty wrote:I want to write events that will occur only for a human player.

Will CheckAILevel = 0 limit the event to human only?

The script report for this seems to imply 'minimum AI of 0', rather than 'only 0'


CheckAILevel = 0 tests if the AI level is equal or bigger than the given number. So the events would work for both, human and AI.
You can however write an event which test for AI level > 0 and deactivates the events for the AI (ChgEvtOccurs)

Cheers
Norbert

User avatar
bigus
General
Posts: 599
Joined: Wed Oct 24, 2007 11:43 pm

Tue Oct 20, 2009 7:51 pm

Bump

This post applies to CheckAILevel and CheckISPlayer

Here was my situation.
I wanted the AI to only pick from certain draft and financial options. This was call for volunteers only etc. I wanted the human player to have full control.
I tried CheckIsPlayer [;NOT] thinking the "NOT" would make the AI true and in turn run the event.
For the life of me I could not get this "NOT" to reverse from false to true.
Then I tried CheckAILevel 1. It worked like a charm. In fact I can set the AI events to run at certain AI levels now.

To sum this up,

If you want the event to run by testing if the side is AI then use....
CheckAILevel (column C) and 1 (in column D)

Note: do not use < or> in column D. Just use 1,2,3 or 4 (1 being easy mode or Higher and 2 being normal level or higher etc)


If you want the event to run by testing if the side is Human then use....
CheckISPlayer(column C) and Null (in column D)

This sets the event to run for a human player by setting CheckISPlayer to true.


Hope this helps someone

newodvdo
Civilian
Posts: 0
Joined: Mon May 24, 2010 7:41 am

Cranford complete seasons 1 dvds box set

Mon Jun 07, 2010 8:10 pm

ImageCRANFORD COMPLETE SEASONS 1 DVDS BOX SET
  • Price:$9.99Purchasing CRANFORD COMPLETE SEASONS 1 DVDS BOX SET requires only $9.99, which is 40%-60% of the price on eBay even plus the postage, in addition, we will present three most popular DVD movies. It will be a not bad choice for you to enjoy them by yourself, present them to your friends, sell them out or dropship(dropshipping) them to your clients.
  • Image Image Image

Return to “AACW Mods”

Who is online

Users browsing this forum: No registered users and 4 guests