OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SilentHunter on 08 Mar 2005, 00:52:01

Title: Dialogs
Post by: SilentHunter on 08 Mar 2005, 00:52:01
*momentarily comes back to life*

How do youâ€Â¦

have a constant text box on screen that doesn't interfere with game play
that is always selected so whatever numbers/letters are presses they are entered into that field

If it cant be done, closest thing to it will doâ€Â¦

SILENTHUNTER

*dies*
(if u don't get it don't worry, p*** poor attempt at joke)
Title: Re:Dialogs
Post by: The-Architect on 08 Mar 2005, 04:26:42
There's a really good dialogue tutorial in the ed depot.
Title: Re:Dialogs
Post by: General Barron on 08 Mar 2005, 07:22:54
Whenever you have a dialog up, the player loses "normal" controls; instead he gets a cursor, and his keypresses go into whatever control is up. So basically, he can't move around, shoot, or do anything while the dialog is up. I assume that is what you mean by "interfering with gameplay". Unfortunately there is no way around this.

I'm kind of unclear on what you want though, because how could you type stuff into a text box and play the game normally at the same time? Your character would move around while you try to type.... so I must not understand what you are asking.

Cut resources, however, look very similar to dialogs, and CAN be on the screen without interfering with the gameplay. Check out my tutorial on them here (http://www.ofpec.com/editors/resource_view.php?id=773). There is no way to "type stuff in to" a cut resource, though.
Title: Re:Dialogs
Post by: SilentHunter on 09 Mar 2005, 00:00:30
the plan was,

an invisable text box would be on screen, which would launch a script on reciept of certian key strokes,

(not for cheating, honestly)

SILENTHUNTER
Title: Re:Dialogs
Post by: General Barron on 09 Mar 2005, 20:46:35
Not possible, but you can detect when the player inputs certain movement keystrokes (for example, move forward, reverse, sidestep, etc). Check out this script here (http://www.ofpec.com/editors/resource_view.php?id=760).