okay so I'm using fpgcrawtext in my game to the fullest, cause it's convenient and less lag-inducing than the few hundred HUD's I'd require otherwise. Except a few problems, I can't seem to get it to work for me at all.
;Artificial Intelligence Script
;Header
Desc = Weapon gained at startup
;Triggers
:state=0:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=255,fpgcrawtextb=255,fpgcrawtextg=255,fpgcrawtextx=50,fpgcrawtexty=80
:state=0,plrdistwithin=100:playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,fpgcrawtext=You sense danger and pull out your handgun,timerstart,state=1
:state=1,timergreater=3000:fpgcrawtext=You only have 2 clips,state=2
:state=2,timergreater=6000:NONE
;End Script
This script is for a gun I place directly underneath the player's spawn point.
The text is supposed to appear for 3 seconds, then change into another text line. So:
1. First line of text appears
2. 3 seconds later, second line appears
3. 3 seconds later, second line vanishes.
What happens is, the player enters the zone, equips the gun, then the first line of text flashes past. I don't even see the second line appear.
What am I doing wrong there?
Also I have another one set up for a Radio in the room.
;Artificial Intelligence
;Header
Desc = Make noise when player is within range
;Trigger
:state=0:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80
:state=0,plrdistwithin=500:state=1,sound=audiobank\misc\steam.wav
:state=1:fpgcrawtext=This old radio has a lot of static,timerstart,plrdisable=10000
:state=1,timergreater=5000:stopsound,fpgcrawtext=The radio static stopped...
:state=1,timergreater=10000:state=2
;End Script
The radio is supposed to play the steam noise (which sounds like static) for 5 seconds. While the steam noise is playing and the text is going the player is supposed to be disabled (frozen). The first line of text is supposed to appear when the radio starts playing, the second line after 5 seconds, and the player regains control after 10.
Instead of all this, the first line of text flashes on and off over and over again, the steam plays for 5 seconds, and the player can't move at all, indefinately.
What's going on with these two scripts ;c
[WIP] Paranorma Chapter 1, The Horror at Silent Inn
Level 1 - Suspended