Well as you probably can assume, i got stuck while trying to make a new script for my game.
I've already done some research on this topic and did not find anything so i hope someone knowledgeable will find this thread, but now the questions:
1):
Is it possible to display more then one hud element at the same time(like two different bars which are not one picture with alpha channel in between), and how can it be done in a single script(not resetting the hud won't change a thing)
2):
I've been working with fpgcrawtext for some time now, but i did not find a way to display more then on line at the same time, what i can do is this:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
and not:
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
If there is anyone who knows how to solve at least one of these problems i would be very thankful.
And as a little "thank you" for everyone who reads this, there is a little weapon script for you because i can't stand the standard weapon script(this is the script i want to extend a little further as soon as these problems are resolved)
Daniel
;Artificial Intelligence Script by assaam
;
;License; feel free to pass along this script and use it in any way you like except selling itself or it in any other product than a FPS-game.
; Credits would be nice ;-)
;Header
desc = weapon Pickup, 2steps- investigate,Enter,Pick up(yes/no)(Enter/Backspace),yes-pickup,no-5 seconds not investigateable
;Triggers
:state=0,pickobject=1,plrdistwithin=60:hudreset,hudx=13,hudy=20,hudimagefine=gamecore\huds\Blackbox_sml.png,hudname=a,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=60:hudshow=a,hudfadeout=a
:state=1:fpgcrawtextsize=20,fpgcrawtextfont=Arial,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=12,fpgcrawtexty=19
:state=1:fpgcrawtext=Investigate (Enter)
:state=1,plrdistfurther=60:state=0
:state=1,pickobject=0:state=0
:state=1,plrusingaction=1:state=2
:state=2,plrusingaction=0:state=3
:state=3,plrdistwithin=60:hudshow=a,hudfadeout=a
:state=3:fpgcrawtext=Pick up Weapon (YES/NO)
:state=3,plrdistfurther=60:state=0
:state=3,pickobject=0:state=0
:state=3,scancodekeypressed=14:timerstart,state=4
:state=3,plrusingaction=1:state=5
:state=4,timergreater=5000:state=0
:state=5,plrusingaction=0:state=6
:state=6,cantake:state=7,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav
;End of Script
scripted by assaam
I'm not paranoid!