I've been wracking my brain over this for a while now. I figured, rather than coming straight to the forums and asking for help first, I'd have a go at writing this script myself, try and learn something (even though I'm cheating by adapting someone else's script!)!
Trouble is I can't get it to work exactly how I want it to!
What I'm trying to achieve is this; Text is displayed on screen, followed, after a short delay, by a hud image. So, on screen, you have the text introducing Part 1 of the game, followed by a hud image showing the game's mission briefing.
Instead what I'm getting on screen is the text, then the hud image is displayed on top of it, before the text disappears. I want the text to disappear
before the hud image is displayed.
Here's the script I've written (by the way, it is partly based on Storyteller's adventure game scripts, so credit where credit's due);
:state=0:state=10
:state=10:hudreset,hudx=50,hudy=50,hudimagefine=languagebank\english\gamecore\huds\MISSION BRIEF.png,hudname=helphud,hudhide=1,hudmake=display,state=1
:state=1,plrwithinzone=1:timerstart,plrdisable=100000,state=2
:state=2:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=20
:state=2:fpgcrawtext=Part 1 The Facility.
:state=2,timergreater=500,plrusingaction=1:timerstart,state=3
:state=2,timergreater=6000:timerstart,state=3
:state=2,scancodekeypressed=14:plrdisable=0,state=11
:state=3:hudshow=helphud
:state=3,timergreater=500,plrusingaction=1:plrdisable=0,state=11
:state=3,timergreater=6000:plrdisable=0,hudunshow=helphud,state=11
:state=3,scancodekeypressed=14:plrdisable=0,state=11
Can anyone give me any pointers about what I'm doing wrong? I don't necessarily want the script re-written for me, just some hints to point me in the right direction. I am, after all, trying to learn scripting for myself!