How do I get my "HotKeys" to work?
Borg_DealerOfDeath
Member Posts: 79
Ive got spells I would like to trigger by "Hotkeys" but totally clueless as to how to go about assigning my spells to Hotkeys.
0
Comments
IF
Hotkey(D)
THEN
Do whatever
END
[Spoiler]
IF
HotKey(A)
THEN
RESPONSE #100
CutSceneId("Player1Fill")
CutSceneId("Player2Fill")
CutSceneId("Player3Fill")
CutSceneId("Player4Fill")
CutSceneId("Player5Fill")
CutSceneId("Player6Fill")
StartCutSceneMode()
DisplayStringHead(SecondNearest,4864)
SmallWait(20)
DisplayStringHead(ThirdNearest,4861)
SmallWait(20)
DisplayStringHead(FourthNearest,4864)
SmallWait(20)
DisplayStringHead(FifthNearest,4864)
SmallWait(20)
DisplayStringHead(Myself,59571)
ForceSpell(SecondNearest,FLASHY_3)
PlayDead(5)
CreateVisualEffectObject("SPROTECT",Myself)
CreateVisualEffectObject("SPRWRA2I",Myself)
CreateVisualEffectObject("SPRAISED",Myself)
CreateVisualEffectObject("SPRWRATI",Myself)
CreateVisualEffectObject("SPUNHOLY",Myself)
CreateVisualEffectObject("SPWIRBLA",Myself)
CreateVisualEffectObject("SPROTECT",Myself)
SmallWait(30)
DisplayStringHead(Myself,2844)
CreateVisualEffectObject("SPMAGMIS",SecondNearest)
CreateVisualEffectObject("SPCALLLI",SecondNearest)
CreateVisualEffectObject("SPFIREPI",SecondNearest)
SmallWait(5)
CreateVisualEffectObject("SPFLADOW",SecondNearest)
CreateVisualEffectObject("CGALTERA",SecondNearest)
CreateVisualEffectObject("CGILLUSI",SecondNearest)
SmallWait(5)
CreateVisualEffectObject("MMAGICH",SecondNearest)
CreateVisualEffectObject("SPBASEWT",SecondNearest)
CreateVisualEffectObject("SPBEHBLA",SecondNearest)
SmallWait(5)
CreateVisualEffectObject("SPCMWOUI",SecondNearest)
CreateVisualEffectObject("SPCCWOUI",SecondNearest)
CreateVisualEffectObject("SPCHLGT1",SecondNearest)
ActionOverride(SecondNearest,DestroyAllEquipment())
CallLightning(SecondNearest)
Kill(SecondNearest)
ActionOverride(SecondNearest,DropInventory())
ActionOverride(SecondNearest,DestroySelf())
ActionOverride(SecondNearest,Enemy())
ActionOverride(SecondNearest,Deactivate())
ActionOverride(SecondNearest,LeaveParty())
SmallWait(30)
DisplayStringHead(Myself,60501)
ForceSpell(SecondNearest,FLASHY_3)
PlayDead(5)
CreateVisualEffectObject("SPROTECT",Myself)
CreateVisualEffectObject("SPRWRA2I",Myself)
CreateVisualEffectObject("SPRAISED",Myself)
CreateVisualEffectObject("SPRWRATI",Myself)
CreateVisualEffectObject("SPUNHOLY",Myself)
CreateVisualEffectObject("SPWIRBLA",Myself)
CreateVisualEffectObject("SPROTECT",Myself)
SmallWait(5)
CreateVisualEffectObject("SPMAGMIS",SecondNearest)
CreateVisualEffectObject("SPCALLLI",SecondNearest)
CreateVisualEffectObject("SPFIREPI",SecondNearest)
SmallWait(5)
CreateVisualEffectObject("SPFLADOW",SecondNearest)
CreateVisualEffectObject("CGALTERA",SecondNearest)
CreateVisualEffectObject("CGILLUSI",SecondNearest)
SmallWait(5)
CreateVisualEffectObject("MMAGICH",SecondNearest)
CreateVisualEffectObject("SPBASEWT",SecondNearest)
CreateVisualEffectObject("SPBEHBLA",SecondNearest)
SmallWait(5)
CreateVisualEffectObject("SPCMWOUI",SecondNearest)
CreateVisualEffectObject("SPCCWOUI",SecondNearest)
CreateVisualEffectObject("SPCHLGT1",SecondNearest)
ActionOverride(ThirdNearest,DestroyAllEquipment())
CallLightning(ThirdNearest)
Kill(ThirdNearest)
ActionOverride(ThirdNearest,DropInventory())
ActionOverride(ThirdNearest,DestroySelf())
ActionOverride(ThirdNearest,Enemy())
ActionOverride(ThirdNearest,Deactivate())
ActionOverride(ThirdNearest,LeaveParty())
DisplayStringHead(Myself,60500)
ForceSpell(SecondNearest,FLASHY_3)
ActionOverride(SecondNearest,PlayDead(5))
CreateVisualEffectObject("SPROTECT",Myself)
CreateVisualEffectObject("SPRWRA2I",Myself)
CreateVisualEffectObject("SPRAISED",Myself)
CreateVisualEffectObject("SPRWRATI",Myself)
CreateVisualEffectObject("SPUNHOLY",Myself)
CreateVisualEffectObject("SPWIRBLA",Myself)
CreateVisualEffectObject("SPROTECT",Myself)
SmallWait(30)
CreateVisualEffectObject("SPMAGMIS",SecondNearest)
CreateVisualEffectObject("SPCALLLI",SecondNearest)
CreateVisualEffectObject("SPFIREPI",SecondNearest)
SmallWait(5)
CreateVisualEffectObject("SPFLADOW",SecondNearest)
CreateVisualEffectObject("CGALTERA",SecondNearest)
CreateVisualEffectObject("CGILLUSI",SecondNearest)
SmallWait(5)
CreateVisualEffectObject("MMAGICH",SecondNearest)
CreateVisualEffectObject("SPBASEWT",SecondNearest)
CreateVisualEffectObject("SPBEHBLA",SecondNearest)
SmallWait(5)
CreateVisualEffectObject("SPCMWOUI",SecondNearest)
CreateVisualEffectObject("SPCCWOUI",SecondNearest)
CreateVisualEffectObject("SPCHLGT1",SecondNearest)
ActionOverride(SecondNearest,DestroyAllEquipment())
CallLightning(SecondNearest)
Kill(SecondNearest)
ActionOverride(SecondNearest,DropInventory())
ActionOverride(SecondNearest,DestroySelf())
ActionOverride(SecondNearest,Enemy())
ActionOverride(SecondNearest,Deactivate())
ActionOverride(SecondNearest,LeaveParty())
SmallWait(30)
EndCutSceneMode()
END
[/Spoiler]
And my scripts are now running just fine by use of my HotKeys. The last time I did any scripting and editing was early in 2002.
Considering Im 66 - - and tend to forget stuff Ive not been active in for so long, Im rather pleased with myself in that with a bit of trial and error, I still able to write workable scripts, for casting spells and many other actions, including getting rid of "party killers" who just come in and try to kill the host.
Kinda reminded me of the days on GameSpy where we played the original BG2-Shadows Of Amn on Multi.
Ahh - the good ole days~!
I will say that the Enhance Version is miles better - all of the old bugs seem to have been "fixed".
Thanks for all the responses and suggestions to my posts - I appreciate each and everyone of you who respond.
HAPPY NEW YEAR to One and All~~~!!!