Please note that new user registrations disabled at this time.

AI Scriptiing

This forum is to be used for all discussions pertaining to BioWare's Baldur's Gate II: Shadows of Amn.
User avatar
Manveru
Posts: 656
Joined: Tue Feb 27, 2001 11:00 pm
Location: Lodz, Poland
Contact:

Post by Manveru »

@KensaiRyu : thanks for your help. I want to do this NPC more interesting - some poeple liked this challenge thing.

I suppose the problem could be with the order of the script sections (first two sections moved to the bottom of the script) - I don't know if script order has any influence on its execution.

One more suggestion that I didn't check - maybe cut scene mode would cause the desired result ?
So sayeh

Wise Manveru Telcontar,
The Mighty Wizard from Eregion


The Eregion Wizards
Elen sila Lumenn' Omentielvo
User avatar
KensaiRyu
Posts: 622
Joined: Sat Feb 03, 2001 11:00 pm
Contact:

Post by KensaiRyu »

Manveru I noticed a couple things that I figured were causing your problem.

1.The first if conditional is never coming true.(HPPercent)

2. You use the attack reeval. The problem with this is this action tells the actor to attack for a given period of time, thus he keeps attacking until that time is elapsed preventing any further script runs.

However even with a new attack command (attack one round, attack,etc) I could not get the first If conditional to come true.

I am not sure why exactly, as it should, however I have posted a question pertaining to this on the new scripting forum. Hopefully one of the more experianced scriptors will reply fairly soon.

Also I will continue experimenting with it, I wanted you to know that im still working on it.
Wizards Of Eregion Expansion Team Presents:
[url="http://www24.brinkster.com/manveru"]Dagor Laureland[/url]
[url="http://groups.yahoo.com/group/IEEAIS"]Infinity Engine Enemy AI Scriptors Council[/url]
User avatar
KensaiRyu
Posts: 622
Joined: Sat Feb 03, 2001 11:00 pm
Contact:

Post by KensaiRyu »

Okay Manveru I figured It out. The problem was not the script totally. Once I changed the attack reevaluate to (3) and changed the Sharte1.dlg file by removing the 2 attack commands on the end, it works now. It seems those commands were somehow not allowing the script to kick in.

I will be sending you the changed script and dialog file so you can take a look.

If you need help with anything else let me know.
Also did you get my previous email about npcs?

I said in that email that if you needed help scripting NPC quests for them to just email me.

[ 05-25-2001: Message edited by: KensaiRyu ]
Wizards Of Eregion Expansion Team Presents:
[url="http://www24.brinkster.com/manveru"]Dagor Laureland[/url]
[url="http://groups.yahoo.com/group/IEEAIS"]Infinity Engine Enemy AI Scriptors Council[/url]
User avatar
Craig
Posts: 4996
Joined: Fri Dec 29, 2000 11:00 pm
Location: England
Contact:

Post by Craig »

Kensai the stop 1 mil post cloging up your email box doesn't work and ken i just relized the pc won't goe to 50%hp but i still wan't them to run
I'm Devious

This is my Gift. This is my Curse. Who am I? I'm SpiderCraig
User avatar
KensaiRyu
Posts: 622
Joined: Sat Feb 03, 2001 11:00 pm
Contact:

Post by KensaiRyu »

_____________________________________________
Kensai the stop 1 mil post cloging up your email box doesn't work and ken i just relized the pc won't goe to 50%hp but i still wan't them to run
_____________________________________________


If you want him to run on hitpoints less than 50% add this.
IF
HPPercentLT(Myself,50)
THEN
RESPONSE #100
RunAwayFrom(LastAttackerOf(Myself,120))
END

For the Emails still being sent to you it wont be much longer cause the group is closing in 5 days.. :(

If you only want him to run when bad guys are present add this:

IF
Exists([EVILCUTOFF])
HPPercentLT(Myself,50)
THEN
RESPONSE #100
RunAwayFrom(LastAttackerOf(Myself,120))
END
Wizards Of Eregion Expansion Team Presents:
[url="http://www24.brinkster.com/manveru"]Dagor Laureland[/url]
[url="http://groups.yahoo.com/group/IEEAIS"]Infinity Engine Enemy AI Scriptors Council[/url]
User avatar
Craig
Posts: 4996
Joined: Fri Dec 29, 2000 11:00 pm
Location: England
Contact:

Post by Craig »

thanks
I'm Devious

This is my Gift. This is my Curse. Who am I? I'm SpiderCraig
User avatar
Rubic
Posts: 1
Joined: Thu May 24, 2001 10:00 pm
Contact:

Post by Rubic »

Can anyone tell me where I can get already made ai scripts?
User avatar
KensaiRyu
Posts: 622
Joined: Sat Feb 03, 2001 11:00 pm
Contact:

Post by KensaiRyu »

Click on BG scripts in my signature and It will take you to the realm of advanced scripts that do eveything.

You have to be a member but its free and only takes 3 minutes to do. Go to the files area and check out Sarkyns G-series scripts they are outstanding.

Also you might want to join BWScipts or Infintiy Scriptors, two other Free scripting groups on the web.
[url="http://groups.yahoo.com/group/bgscripts/files/"]http://groups.yahoo.com/group/bgscripts/files/[/url]
[url="http://groups.yahoo.com/group/InfinityScripters"]http://groups.yahoo.com/group/InfinityScripters[/url]
[url="http://groups.yahoo.com/group/bwscript"]http://groups.yahoo.com/group/bwscript[/url]
Wizards Of Eregion Expansion Team Presents:
[url="http://www24.brinkster.com/manveru"]Dagor Laureland[/url]
[url="http://groups.yahoo.com/group/IEEAIS"]Infinity Engine Enemy AI Scriptors Council[/url]
Post Reply