Ambrosia Software Web Board: AI Central - Ambrosia Software Web Board

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

AI Central

#1 User is offline   Talos 

  • Member
  • PipPipPipPip
  • Group: Members
  • Posts: 1,468
  • Joined: 19-June 00

Posted 06 August 2000 - 06:51 AM

There have been a number of posts about the AI features in Cythera, but I think it would be cool if there was a place where everyone could ask questions, post answers and comments. It's open! Posted Image

------------------
<font color=gold>Bronze: the other gold metal.</font>
Bronze: the other gold metal.   ||   And so the space toaster hardened the outer layers of the doughy, ooey-gooey ancient Earth...
Bacchus Publishing: [url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/show.pl?product=evo&category=guides&display=date&file=ChroniclesByJake101.sit.hqx"]Chronicles by Jake101: the unposted chapters[/url].

#2 Guest_Dan314159_*

  • Group: Guests

Posted 07 August 2000 - 03:37 PM

I wrote a simple AI that I hoped would prevent someone from throwing the mystic spear. Everything seems to work, except for the RunToward() statement. When the character gets to that command he just starts running away from the enemies. He just keeps running, and running, and running...

If you can help with this, or if you can provide an AI that causes a person to use the Spear as a melee weapon only, it would be greatly appreciated. Here is the code I have:

NAME "No Throw"

; Attack the attacker if he's close enough.
IF Exists(myself.LastAttacker) THEN
IF InRange(myself.LastAttacker,2) THEN
#100 SetTarget(myself.LastAttacker)
DoAttack()

; Or attack any enemy who is close enough.
IF Exists(enemy.ByRange.Pick) THEN
IF InRange(enemy.ByRange.Pick,2) THEN
#100 SetTarget(enemy.ByRange.Pick)
DoAttack()

; At this point, there may be enemies, but they are far away. Walk to them.
IF Exists(enemy.ByRange.Pick) THEN
#100 SetTarget(enemy.ByRange.Pick)
RunToward(enemy.ByRange.Pick, 2)
DoAttack()

; No enemies exist at this point.
IF True() THEN
#100 FinishCombat()

#3 User is offline   Talos 

  • Member
  • PipPipPipPip
  • Group: Members
  • Posts: 1,468
  • Joined: 19-June 00

Posted 08 August 2000 - 08:34 PM

I don't know the AI scripting language, but I'd reccomend thouroughly investigating your RunToward() statement. Also, I'm bringing this topic back to the top so it will get noticed.

------------------
<font color="gold">Bronze: the other gold metal.</font>
Bronze: the other gold metal.   ||   And so the space toaster hardened the outer layers of the doughy, ooey-gooey ancient Earth...
Bacchus Publishing: [url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/show.pl?product=evo&category=guides&display=date&file=ChroniclesByJake101.sit.hqx"]Chronicles by Jake101: the unposted chapters[/url].

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users