Long live and prosper to you, mighty wizards of IE modding&scripting 'n stuff.
I shouldn't even be here for my misery of appropriate skills and language. But!
I humbly ask you to help me with embedding a certain script in BG:EE which should make my main character Rest() (restore spells without movie and game time advanced) on demand with a hotkey.
In this case I have absolutely no competence or knowledge and skills to rely on.
My aspiration is based on this post: https://forums.beamd...ustomization/p1 section 3 - Using Custom Scripts, also I suggest involving script action Rest()
...somehow and make it automated with hotkey, but I have no useful ideas about it and my 15-minute experience of using DLTCEP ended fiasco.
So, please, can I get any "step by step" help?
0x0021 HotKey(I:Key*HotKey)
Returns true only if the specified key was pressed in the last script round. Hotkeys defined in keymap.ini take precedence over hotkeys expected by this trigger.
96 Rest()
This action applies the benefits of resting (i.e. healing, restoring spells and restoring abilities) to the active creature. The action does not play the rest movie or advance game time.
IF
HotKey(X)
THEN
RESPONSE #100
StartCutScene("MyRest")
END
where MyRest.baf is this
IF
True()
THEN
RESPONSE #100
CutSceneId(Player1)
StorePartyLocations()
FadeToColor([20.0],0)
Wait(1)
Rest()
ActionOverride(Player2,Rest())
ActionOverride(Player3,Rest())
ActionOverride(Player4,Rest())
ActionOverride(Player5,Rest())
ActionOverride(Player6,Rest())
Wait(1)
RestorePartyLocations()
Wait(2)
FadeFromColor([30.0],0)
EndCutSceneMode()
END
Just a starting point, you need to test and modify it to your needs.
I have no idea where you want to put that first script that triggers the cutscene? Some NPC that must be in party, some creature you create in the area you are in? Baldur,bcs? It must be a script that already runs in the active area,
Edited by Roxanne, 22 February 2018 - 02:29 PM.