@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 ?
AI Scriptiing
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.
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]
[url="http://www24.brinkster.com/manveru"]Dagor Laureland[/url]
[url="http://groups.yahoo.com/group/IEEAIS"]Infinity Engine Enemy AI Scriptors Council[/url]
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 ]
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]
[url="http://www24.brinkster.com/manveru"]Dagor Laureland[/url]
[url="http://groups.yahoo.com/group/IEEAIS"]Infinity Engine Enemy AI Scriptors Council[/url]
_____________________________________________
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
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]
[url="http://www24.brinkster.com/manveru"]Dagor Laureland[/url]
[url="http://groups.yahoo.com/group/IEEAIS"]Infinity Engine Enemy AI Scriptors Council[/url]
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]
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]
[url="http://www24.brinkster.com/manveru"]Dagor Laureland[/url]
[url="http://groups.yahoo.com/group/IEEAIS"]Infinity Engine Enemy AI Scriptors Council[/url]