![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1 |
Symbol of Moradin
![]() Join Date: June 5, 2002
Location: Slovenia,Ljubljana
Age: 37
Posts: 8,554
|
Ok.Weimer has good mods but I have this Q about smarter liches&mages.If they are so smarter why are they using ADHW(s)?Would a real player cast such a powerful spell on creatures that are summoned by Wand Of monster Summoning?
EDIT:level up!Weheee [img]smile.gif[/img] [ 06-04-2003, 11:10 AM: Message edited by: Xen ] |
![]() |
![]() |
![]() |
#2 |
Ironworks Moderator
![]() Join Date: June 10, 2001
Location: Pasir Ris, Singapore
Age: 42
Posts: 11,063
|
It's called AI Script limitations. True... a check for target's XPVALUE can be done... but as Alson and I found out not too long ago... a really smart AI Script for a Mage will be more than 1MB in size.
This includes memory, limited selective targeting and selective casting among other minor details. Note the limited selective targeting. If we made it as best as possible... the filesize would be a whopping 9MB in size. Running a few of these babies will slow your machine to a crawl unless you have a hyperfast processor. |
![]() |
![]() |
![]() |
#3 |
Symbol of Moradin
![]() Join Date: June 5, 2002
Location: Slovenia,Ljubljana
Age: 37
Posts: 8,554
|
I think i have it...=> 1.2 GhZ [img]smile.gif[/img]
[ 06-04-2003, 11:20 AM: Message edited by: Xen ] |
![]() |
![]() |
![]() |
#4 | |
Drizzt Do'Urden
![]() Join Date: August 30, 2002
Location: Australia
Age: 39
Posts: 628
|
Quote:
Still, that would be a VERY comprehensive script, i dont suppose you kept it did you? I wouldn't mind having a look.
__________________
It deons\'t mttaer waht oredr the ltteers in a wrod are, it olny mtaetrs taht the frsit and lsat ltteer be croecrt. The rset can be a tatol mses and you can sitll raed it. The huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. |
|
![]() |
![]() |
![]() |
#5 |
Ironworks Moderator
![]() Join Date: June 10, 2001
Location: Pasir Ris, Singapore
Age: 42
Posts: 11,063
|
Let's just say that... after making a basic template for a spell, I copied, pasted and modified over and over again, paragraphs after paragraphs. The 9MB is an estimate, because halfway through the project, I realised that to cater to 10 targets would be madness after calculating the current filesize and mulitplying it. We reduced it to 4 targets, making it much more manageable. I only completed up to level 3 spells/potions/wands/melee combat... and the script was already 30,000 lines over.
Still... it was a pretty good script, if a tad big. I do however... have some complete AI Scripts for BG1 characters. Not Mage or Cleric though. I still get brain-freeze thinking of all those lines of text. |
![]() |
![]() |
![]() |
#6 |
Elite Waterdeep Guard
![]() Join Date: April 14, 2003
Location: UK
Age: 29
Posts: 20
|
You can, generally, play around with targetting blocks a bit to get the size of things down slightly. On the other hand, decent targetting generally has to be pretty big (I've got a 30KB block around somewhere to target Domination, for example).
I've looked at Weimer's AI scripts, and while I think they do leave a bit to be desired in terms of intelligence in some respects, they're pretty decent for "generic" enemy scripts, and aren't going to cause horrific performance problems.
__________________
[url]\"http://www.dragonlancetc.com\" target=\"_blank\">The Dragonlance TC</a> - a total conversion for Throne of Bhaal |
![]() |
![]() |
![]() |
#7 |
Ironworks Moderator
![]() Join Date: June 10, 2001
Location: Pasir Ris, Singapore
Age: 42
Posts: 11,063
|
Introducing... Melf's Acid Arrow.
This one caters to six targets, and takes the scroll into account too. Note that some spells, like Magic Missile has twice the coding due to its' ability to get rid of Mirror Image( selective casting so to speak). WARNING - Excessive Text, code:// Melfs Acid Arrow[/QUOTE] |
![]() |
![]() |
![]() |
#8 |
Ra
![]() Join Date: March 26, 2002
Location: Finland
Age: 37
Posts: 2,323
|
[img]graemlins/wow.gif[/img] wow, starting to feel a bit dizzy [img]graemlins/1dizzy.gif[/img]
__________________
If the radiance of a thousand suns were to burst forth at once in the sky, that would be like the splendor of the Mighty One. "I am become death, the destroyer of worlds." |
![]() |
![]() |
![]() |
#9 |
Harper
![]() Join Date: October 2, 2001
Location: Aberdeen, Scotland
Age: 43
Posts: 4,774
|
Bloody hell, but thats one inefficient scripting language. One thing that springs to mind should this project ever get going again, if you can nest if statements you can do something like
code:if (nearest enemy is a valid target)[/QUOTE]which cuts the melfs acid arrow script in half, give or take.
__________________
[img]\"http://www.sighost.us/members/Zvijer/andrewas.gif\" alt=\" - \" /> |
![]() |
![]() |
![]() |
#10 |
Dracolisk
![]() Join Date: September 16, 2001
Location: Bellingham, WA, USA
Age: 47
Posts: 6,901
|
The biggest flaw of the Infinity Engine is that it has no capacity for functions like (determine if creature X is a valid target for spell Y). It doesn't even have the most basic things that most programmers take for granted, such as arrays, subroutines, 'until' statements--hell, the damn language doesn't even have 'FOR' loops. Take another look at Dundee's code: It's all IF, THEN, END. Not even a single ELSE in the whole damn thing.
And I thought C++ was ugly.
__________________
Volothamp's Comeuppance Everything you ever needed to know about the entire Baldur's Gate series......except spoilers. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
tactics, mages, and introduction *minor spoiler* | perlninja | Icewind Dale | Heart of Winter | Icewind Dale II Forum | 12 | 06-09-2003 03:39 PM |
(Slightly) Smarter Mages mod | Olorin | Baldurs Gate II: Shadows of Amn & Throne of Bhaal | 6 | 04-29-2003 12:59 PM |
Battle Tactics For Solo Mages | DJG | Baldurs Gate II: Shadows of Amn & Throne of Bhaal | 2 | 09-13-2002 05:22 AM |
Getting smarter? | gutplumbr | Wizards & Warriors Forum | 1 | 06-22-2001 10:12 AM |
Liches - Without cheesy tactics | G.W. | Baldurs Gate II Archives | 22 | 12-23-2000 08:55 PM |