Hi guys,
We've managed to start doing something. I'll post it here in case it may be of interest for anyone..
It is an inelegant "hack" to the gemRB.
bg1/GUIINV.py
import time
import MessageWindow
...
def UpdateInventoryWindow ():
"""Redraws the inventory window and resets TopIndex."""
Window = InventoryWindow
pc = GemRB.GameGetSelectedPCSingle ()
GemRB.CreateCreature(pc, "KOBOLD", 1, 1) # KOBOLD 122
GemRB.SetPlayerStat (pc, IE_XP, 330)
MessageWindow.TMessageTA.Append("[p][color=f1f28d]Q'apla[/color][/p]\n")
time.sleep(1)
MessageWindow.TMessageTA.Append("[p][color=ff00ff]magenta!![/color][/p]\n")
time.sleep(1)
MessageWindow.TMessageTA.Append("[p]adeu[/p]\n")
The time.sleep is not working sequentially as expected, maybe we need a wait or something.. it's all work in progress.
Basically when pressing the inventory button, you get more exp, and a Kobold is created. Then some colored messages apprear in the console.
We wanted to trigger it by pressing the space bar or some combination of keys. Any ideas on how to do that?
Same for text, is there any more "gameplay oriented" way to do it (including color circle of the player flashing when talking and so on)?
But in case we can get the timing under control and being able to work with other party members we feel this may be a good way to go!