Quote: "Is it possible to make a script that will call up a hud that could have a list of options that can be clicked on?"
Take a look at the "Titlepage.fpi" or "setuplevel.fpi" scripts that are located in your "\languagebank\english\gamebank\GAMEFOLDER" (where GAMEFOLDER is where your files for the development are). By default, the editor uses "languagebank\english\gamebank\mygame\". These scripts contain "buttons" that the user clicks. That should get you thinking in the direction. The section specific I am referring to is "; Game Menu" for these two files, and specifically the "hudselectionmade=x" command which refers to the huds that are defined in the beginning of the script.
For example, in a "titlepage.fpi":
;AIScript from Wizard
;Header
desc = Title Page Wizard
;Script
:state=0:music=audiobank\music\generic\title.wav
:state=0:hudreset,hudx=50,hudy=10,hudimage=languagebank\english\gamecore\backdrops\basic\gamemenu.tga,hudmake=display
:state=0:hudreset,hudx=50,hudy=45,hudimage=languagebank\english\gamecore\backdrops\basic\newgame.tga,hudtype=1,hudmake=button
:state=0:hudreset,hudx=50,hudy=55,hudimage=languagebank\english\gamecore\backdrops\basic\loadgame.tga,hudtype=2,hudmake=button
:state=0:hudreset,hudx=50,hudy=65,hudimage=languagebank\english\gamecore\backdrops\basic\exitgame.tga,hudtype=5,hudmake=button
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\pointer.tga,hudmake=pointer
:state=0:state=2
:state=2:backdrop=gamecore\backdrops\Basic\background.jpg
:state=2,hudselectionmade=1:destroy
:state=2,hudselectionmade=5:quitgame,destroy
:state=2,hudselectionmade=2:loadgame
In the third "state=0" line we have the "loadgame.tga" button defined and it uses hudtype 2. Notice in the fourth "state=4" line we have "hudselectionmade=2". That means the player clicked that hud, and therefore run the command(s0 specified.
NOTE- my above example is from my current version and may not be the same as the newer versions, but the concept still is the same.
One thing to keep in mind when doing things like this- if you want a script in the game to display a hud where players can click, you may need to use the "pausegame/resumegame" commands. otherwise, the game continues to run when they access this and they may miss out something important.
Quote: "Actually I want the script to be triggered when player steps into a building. I want the hud to come up and say you have entered such and such building. I am so and so what would you like to do? and then a list of options that they can do in that building."
You can do so by having the hud displayed and then the script has lines with the "scancodekeypressed=x" for each choice. When they select the key, this happens, etc.
There's no problem that can't be solved without applying a little scripting.