Ironworks Gaming Forum

Ironworks Gaming Forum (http://www.ironworksforum.com/forum/index.php)
-   Baldurs Gate II: Shadows of Amn & Throne of Bhaal (http://www.ironworksforum.com/forum/forumdisplay.php?f=12)
-   -   AI scripts (http://www.ironworksforum.com/forum/showthread.php?t=10423)

Zarr 11-14-2002 11:51 AM

I'm just wondering wether everyone here plays with the AI turned on or off. Personally I play with it off and pause and give everyone a command then unpause and watch the action unfold pausing again if needed . Would I be more effective if I give my characters scripts? And do you play with the AI off or on?

[ 11-14-2002, 11:52 AM: Message edited by: Zarr ]

Dundee Slaytern 11-14-2002 11:55 AM

I make my own AI scripts. [img]tongue.gif[/img]

*GASP!* They now have enough brains to drink healing potions! Amazing! Mages no longer cast Flame Arrows on Fire Elementals/Dragons! Etc... ...

[img]tongue.gif[/img] [img]tongue.gif[/img] [img]tongue.gif[/img] [img]tongue.gif[/img]

Zarr 11-14-2002 11:58 AM

Really, that's pretty impressive Dundee. [img]smile.gif[/img] I won't ask how it's done it's probably pretty complicated ;)

Balhifet 11-14-2002 12:00 PM

I like it off and I dont asign scripts on my npcs bcoz I like it when I give the commands.

Dundee Slaytern 11-14-2002 12:34 PM

Quote:

Originally posted by Zarr:
Really, that's pretty impressive Dundee. [img]smile.gif[/img] I won't ask how it's done it's probably pretty complicated ;)
Actually, it is quite simple, so long as you are willing to sit down for an hour or two to type it all out. [img]smile.gif[/img]

I am using Infinity Script Editor, which also allows you to view the code of the default AI scripts. You will be shocked at how flimsy some of them are... ...

There is also a Scripting Quick Reference document( in your "script compiler" subfolder) for you to refer to when you want to know how a command is used. It is not complete, but most of the commands are in there.

The whole process is basically nothing but IFs, THENs and ENDs. IF this happens, THEN this is the result, END.

If only I knew how to program a Project Image illusion though... ...

Alson 11-14-2002 02:20 PM

Dundee is right - scripting is pretty simple if you have the patience to learn it. [img]smile.gif[/img]
It's very similar to Turbo Pascal and C++ programming.

Dundee, i thought you only make IWD scripts... If you have any BG2 scripts, i'll be happy if you could mail them to me. [img]smile.gif[/img]

Sir Exxon 11-14-2002 02:22 PM

Quote:

Originally posted by Alson:
Dundee, i thought you only make IWD scripts... If you have any BG2 scripts, i'll be happy if you could mail them to me. [img]smile.gif[/img]
<font color="gold">Ditto. [img]smile.gif[/img] </font>

Dundee Slaytern 11-14-2002 11:04 PM

It is still a work in progress, but I suppose this will be a chance to let other people test it out.

I currently have 3 BG2 AI Scripts. Basic, Archer and Mage.

The Basic is really Basic. It merely handles potion drinking and favours ranged combat over melee.

The Archer is an expanded version of the Basic script, and currently handles level one Druid spells and Call Shot( still in testing phase).

The Mage script is a work in progress. So far I have only implemented level 1-5 spells. Not all spells are handled though, such as Fireball or Skull Trap, as these are not party friendly. Neither will you see them use Grease or Charm Person, because seriously... you have better spells to fill up your slots with.

Click Here

antryg 11-14-2002 11:33 PM

Quote:

Originally posted by Alson:
Dundee is right - scripting is pretty simple if you have the patience to learn it. [img]smile.gif[/img]
It's very similar to Turbo Pascal and C++ programming.

Dundee, i thought you only make IWD scripts... If you have any BG2 scripts, i'll be happy if you could mail them to me. [img]smile.gif[/img]

Thanks. Now I know that I won't be doing any editing. "It's simple all you need to do is become a programmer." :D I just like to play the games. If I learn how to do all this I won't be playing games for the next few years.
I really did want to make a clown paladin.

weimer 11-15-2002 12:45 AM

One of the most famous groups of scripts (along with the GScript and UScript series) was done by Gebhard Blucher. You can find his scripts at http://www.fortunecity.com/boozers/winelodge/79/ . They are quite intelligent and will make use of almost every memorized spell and carried object in the game (with checks to make sure that you're not wasting wiltings on goblins), the clerics will heal if nothing else is going on, etc. Their disad is that they more or less run themselves, and no user input is required or accepted. People have joked that these scripts could play the game by themselves. :) They also serve as a nice learning tool once you've passed all of the "trivial" scripting introductions.


All times are GMT -4. The time now is 03:48 AM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved