Shadowblade Posted September 2, 2022 Share Posted September 2, 2022 Are there any guides for writing scripts? I notice that BG EE has more scripts than I remember, but I want to try and improve on one I used to use. There is still the script where the characters use missiles, and withdraw to maintain distance from their targets, and then change to melee when they are attacked in melee. But I want them to stand their ground and use missiles and then change to melee when their target is within melee range. Is this possible? Cheers! Quote Link to comment
CamDawg Posted September 2, 2022 Share Posted September 2, 2022 Even though it's fairly dated at this point, I think the Ding0's Complete Scripting Guide is an excellent starting point. Quote Link to comment
Shadowblade Posted September 2, 2022 Author Share Posted September 2, 2022 27 minutes ago, CamDawg said: Even though it's fairly dated at this point, I think the Ding0's Complete Scripting Guide is an excellent starting point. Excellent, thanks for that. I want the party to switch to melee when strategically suitable, not wait until they get hit with a melee weapon. EG swapping from long bow to sword and shield should get the shield AC before they get hit and so on. And maybe they will get the first strike on the approaching gnoll or whatever. Cheers! Quote Link to comment
Shadowblade Posted September 2, 2022 Author Share Posted September 2, 2022 47 minutes ago, CamDawg said: Ding0's Complete Scripting Guide I recognise some names from the credits! Kensai Ryu, Xyx and others! Quote Link to comment
Guest morpheus562 Posted September 6, 2022 Share Posted September 6, 2022 Sorry if I am late, but these should do it for you: IF Range([EVILCUTOFF],3) IsWeaponRanged(Myself) THEN RESPONSE #100 EquipMostDamagingMelee() END IF !Range([EVILCUTOFF],3) !IsWeaponRanged(Myself) CanEquipRanged() THEN RESPONSE #100 EquipRanged() END Feel free to adjust the distance of "3" to whatever distance you want to set it at. This should get you from ranged to melee and then back to ranged depending on how far away enemies are from the character. Quote Link to comment
Shadowblade Posted September 7, 2022 Author Share Posted September 7, 2022 4 hours ago, morpheus562 said: Sorry if I am late, but these should do it for you: Excellent, thank you so much! Quote Link to comment
Guest morpheus562 Posted September 7, 2022 Share Posted September 7, 2022 19 minutes ago, Shadowblade said: Excellent, thank you so much! I didn't test them, so please let me know if you have any issues. Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.