Meanfred Posted September 15, 2007 Share Posted September 15, 2007 Greetings, I was directed here from the Bioware forums by a friend who said that when it comes to mods and scripts etc., then G3 is the place to go, =P. The reason I am here, is because even though I know a good bit about games and their mods, I am just not cut out for the whole... If this.... Then that... way of writing AI scripts for Baldur's Gate. Anyway, I was wondering if anyone here could help me out by writing me a script that will be compatible for BG 2, and BGTutu, for bards. It is a very simple script, as I found it to be very tedious constantly re-commanding my bard in game to do simple things. Here are the 3 specifications I have for the script. -Defensive Attack Mode -Always Playing Battle Song -If bard is ordered to attack, start playing song again after battle If anyone out there would be willing to take the time to make me a simple AI script that could run as close as possible to these specifications, I would be GREATLY appreciative. Since script files are fairly small in size, of course I will provide my email so that the file can be attached and sent to me there. Thanks again to everyone who took the time to read this, and to those who take the time to help me. Thanks a bunch. God Bless, and Later Days....... =P Link to comment
aVENGER_(RR) Posted September 16, 2007 Share Posted September 16, 2007 Here you go: // Retaliate if attacked by a melee opponent IF ActionListEmpty() // If I'm not doing anything currently AttackedBy([EVILCUTOFF],DEFAULT) // and an enemy just attacked me LOS(LastAttackerOf(Myself),4) // and the enemy who last attacked me is in melee range and I see him THEN RESPONSE #100 AttackReevaluate(LastAttackerOf(Myself),15) // Attack the opponent who last attacked me END // Sing Battlesong when idle IF ActionListEmpty() // If I'm not doing anything currently !ModalState(BATTLESONG) // and I'm not singing a battlesong already THEN RESPONSE #100 BattleSong() // start singing a battlesong END BTW, this is a very basic script. If you want some advanced player AI scripts check out Cirerrek's or Yovaneth's stuff. Link to comment
Meanfred Posted September 17, 2007 Author Share Posted September 17, 2007 Thank you sooooo much aVENGER_[RR]! I never thought I would actually find someone who would take the time to make this script for me. Thank you soo much! I owe ya one in the future for sure. Thanks again, and God Bless. Later Days....... =P Link to comment
aVENGER_(RR) Posted September 17, 2007 Share Posted September 17, 2007 Heh, no problem. BTW, learning the BG2 scripting basics is fairly easy. If you're interested, check out Sim's Scripting guide for example. It's very well written and equally suitable for beginners and veteran IE modders alike. Link to comment
Meanfred Posted September 18, 2007 Author Share Posted September 18, 2007 Thanks a ton. Being that I just discovered Baldur's Gate, and pretty much every other IE game made this year, at the age of 20. I have tons of exploring and learning to do. I have only completed SoA once, and have not even looked at ToB, nor completed BG1 yet. I also have a lot of work to do on IWD, IWD2, PS:T, and the Fallout Series. Thanks for pointing out that Scripting Guide to me. I will be sure to check it out. Hopefully soon enough, I will be contributing to the G3 Mod community and become a new fresh member who will create some great mod that will make the IE games of the past, once again popular with the modern day gamer. Anyway, thanks a bunch for your help. You really made my day. Thanks a bunch, and God Bless. Later Days....... =P Link to comment
chris Posted September 13, 2009 Share Posted September 13, 2009 sorry but can't it use in BG 1 ? it response that has no triggle modalstate found and no action battlesong... is it possible to let bard sings all day with script in BG 1 ? Link to comment
aVENGER_(RR) Posted September 13, 2009 Share Posted September 13, 2009 is it possible to let bard sings all day with script in BG 1 ? Unfortunately, I don't think that's possible. The relevant triggers and actions simply don't exist in the BG1 version of the Infinity Engine. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.