Hey guys, just been working on this new script for my upcoming game. See anything wrong with it? It combinds my PDA script with a new Computer script, which allows the player to "log-on" to a computer.
THIS CODE MAY BE DOWNLOADED
;ENE setuplevel.fpi
;Header
desc = Setup Wizard
; Setup Level Stats
:state=0:sky=skybankww2War
:state=0:music=audiobankenemusicmain.wav,musicvolume=50,soundscale=25
:state=0:fog=1,fogred=128,foggreen=128,fogblue=128
:state=0:ambience=10,ambiencered=255,ambiencegreen=255,ambienceblue=255
:state=0:hudreset,hudx=6,hudy=10.2,hudimage=gamecorehudshead0.tga,hudname=head0,hudmake=display,hudhide=1
:state=0:hudreset,hudx=7.5,hudy=10.2,hudimage=gamecorehudshead1.tga,hudname=head1,hudmake=display,hudhide=1
:state=0:hudreset,hudx=9,hudy=10.2,hudimage=gamecorehudshead2.tga,hudname=head2,hudmake=display,hudhide=1
:state=0:hudreset,hudx=16.5,hudy=10.2,hudimage=gamecorehudshead3.tga,hudname=head3,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=10.2,hudimage=gamecorehudshead4.tga,hudname=head4,hudmake=display,hudhide=1
:state=0:hudreset,hudx=13.5,hudy=10.2,hudimage=gamecorehudshead5.tga,hudname=head5,hudmake=display,hudhide=1
:state=0:hudreset,hudx=12,hudy=10.2,hudimage=gamecorehudshead6.tga,hudname=head6,hudmake=display,hudhide=1
:state=0:hudreset,hudx=10.5,hudy=10.2,hudimage=gamecorehudshead7.tga,hudname=head7,hudmake=display,hudhide=1
:state=0:hudreset,hudx=9,hudy=10.2,hudimage=gamecorehudshead8.tga,hudname=head8,hudmake=display,hudhide=1
:state=0:hudreset,hudx=7.5,hudy=10.2,hudimage=gamecorehudshead9.tga,hudname=head9,hudmake=display,hudhide=1
:state=0:hudreset,hudx=6,hudy=10.2,hudimage=gamecorehudshead10.tga,hudname=head10,hudmake=display,hudhide=1
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecorehudsfader.tga,hudhide=1,hudtype=3,hudmake=internal
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=0,hudblue=0,hudsizex=1024,hudsizey=768,hudimage=gamecorehudseyehud.tga,hudhide=1,hudtype=2,hudmake=internal
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=128,hudblue=128,hudsizex=1024,hudsizey=768,hudimage=gamecorehudszoom.tga,hudhide=1,hudtype=4,hudmake=internal
:state=0:hudreset,hudx=25,hudy=8,hudimage=gamecorehudshud_2c.dds,hudmake=display
:state=0:hudreset,hudx=4,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecorehudsblank.dds,hudtype=1,hudmake=numeric
:state=0:hudreset,hudx=92,hudy=4.8,hudimage=gamecorehudshud_3.dds,hudmake=display
:state=0:hudreset,hudx=19,hudy=10.1,hudsizex=16,hudsizey=16,hudimage=gamecorehudsnum_new2.dds,hudtype=2,hudmake=numeric
:state=0:hudreset,hudx=90,hudy=5,hudimage=gamecorehudsblank2.dds,hudtype=3,hudmake=status
:state=0:hudreset,hudx=10,hudy=4.5,hudsizex=16,hudsizey=16,hudimage=gamecorehudsnum_new2.dds,hudtype=3,hudmake=numeric
; Setup Game Menu
:state=0:hudreset,hudx=50,hudy=10,hudimage=languagebankenglishgamecorebackdropsbasicgamemenu.tga,hudname=gamemenutitle,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=40,hudimage=languagebankenglishgamecorebackdropsbasicloadgame.tga,hudtype=2,hudname=loadgame,hudhide=1,hudmake=button
:state=0:hudreset,hudx=50,hudy=50,hudimage=languagebankenglishgamecorebackdropsbasicsavegame.tga,hudtype=3,hudname=savegame,hudhide=1,hudmake=button
:state=0:hudreset,hudx=,hudy=,hudimage=,hudname=savingprompt,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=60,hudimage=languagebankenglishgamecorebackdropsbasicexitgame.tga,hudtype=5,hudname=quitgame,hudhide=1,hudmake=button
:state=0:hudreset,hudx=50,hudy=70,hudimage=languagebankenglishgamecorebackdropsbasicreturntogame.tga,hudtype=4,hudname=returngame,hudhide=1,hudmake=button
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecorehudspointer.tga,hudname=pointer,hudhide=1,hudmake=pointer
:state=0:state=1
; Main Game
:state=1,escapekeypressed=1:pausegame,state=2
:state=1,scancodekeypressed=197:pausegame,state=11
:state=1,scancodekeypressed=64:hudshow=savingprompt,quicksavegame,pausegame,state=21
:state=1,scancodekeypressed=67:quickloadgame,state=31
:state=11,scancodekeypressed=0:state=12
:state=12,scancodekeypressed=197:resumegame,state=13
:state=13,scancodekeypressed=0:state=1
:state=21,scancodekeypressed=0:hudunshow=savingprompt,resumegame,state=1
:state=31,scancodekeypressed=0:state=1
:state=1,plrhealthgreater=499:hudreset,hudshow=head10,hudshow=head9,hudshow=head8,hudshow=head7,hudshow=head6,hudshow=head5,hudshow=head4,hudshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=500,plrhealthgreater=437.5:hudreset,hudshow=head10,hudshow=head9,hudshow=head8,hudshow=head7,hudshow=head6,hudshow=head5,hudshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=437.5,plrhealthgreater=375:hudreset,hudshow=head10,hudshow=head9,hudshow=head8,hudshow=head7,hudshow=head6,hudshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=375,plrhealthgreater=312.5:hudreset,hudshow=head10,hudshow=head9,hudshow=head8,hudshow=head7,hudshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=312.5,plrhealthgreater=250:hudreset,hudshow=head10,hudshow=head9,hudshow=head8,hudshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=250,plrhealthgreater=187.5:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudshow=head2,hudshow=head1,hudshow=head0
:state=1,plrhealthless=187.5,plrhealthgreater=125:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudshow=head1,hudshow=head0
:state=1,plrhealthless=125,plrhealthgreater=62.5:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudshow=head0
:state=1,plrhealthless=62.5,plrhealthgreater=0:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=1:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
; Game Menu
:state=2,escapekeypressed=0:state=3
:state=3:hudshow=gamemenutitle,hudshow=loadgame,hudshow=savegame,hudshow=quitgame,hudshow=returngame,hudshow=pointer,state=4
:state=4,hudselectionmade=2:loadgame
:state=4,hudselectionmade=3:savegame,state=6
:state=4,hudselectionmade=5:continuegame,destroy
:state=4,hudselectionmade=4:state=6
:state=4,escapekeypressed=1:state=5
:state=5,escapekeypressed=0:state=6
:state=6:hudunshow=gamemenutitle,hudunshow=loadgame,hudunshow=savegame,hudunshow=quitgame,hudunshow=returngame,hudunshow=pointer,resumegame,state=1
;ENE-data master script *=check command
;desc= controls all of the setuplevel.fpi commands as well as "pda" and "computer" access.
;---PAGE CHANGERS---
;MAIN PAGE CHANGER (allows the player to acess the pda, objectives, and the computer)
:state=1,scancodekeypressed=199,plrsound=audiobank/ene/pda/openpda.wav,state=50
:state=1,scancodekeypressed=210,plrsound=audiobank/ene/computer/opencomp.wav,*runfpi=computermain.fpi*
:state=1,scancodekeypressed=201,plrsound=audiobank/ene/objectives/openobj.wav,*runfpi=objective.fpi*
;PDA MAIN PAGE CHANGER [converts the main pages (EX: Email to video)]
:state=50,scancodekeypressed=207,plrsound=audiobank/ene/pda/closepda.wav,state=1
:state=50,scancodekeypressed=59,plrsound=audiobank/ene/pda/pagechange.wav,state=60
:state=50,scancodekeypressed=60,plrsound=audiobank/ene/pda/pagechange.wav, state=70
:state=50,scancodekeypressed=61,plrsound=audiobank/ene/pda/pagechange.wav,state=80
:state=50,scancodekeypressed=62,plrsound=audiobank/ene/pda/pagechange.wav,state=90
:state=60,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=60,scancodekeypressed=60,plrsound=audiobank/ene/pda/pagechange.wav,state=70
:state=60,scancodekeypressed=61,plrsound=audiobank/ene/pda/pagechange.wav,state=80
:state=60,scancodekeypressed=62,plrsound=audiobank/ene/pda/pagechange.wav,state=90
:state=70,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=70,scancodekeypressed=59,plrsound=audiobank/ene/pda/pagechange.wav,state=60
:state=70,scancodekeypressed=61,plrsound=audiobank/ene/pda/pagechange.wav,state=80
:state=70,scancodekeypressed=62,plrsound=audiobank/ene/pda/pagechange.wav,state=90
:state=80,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=80,scancodekeypressed=59,plrsound=audiobank/ene/pda/pagechange.wav,state=60
:state=80,scancodekeypressed=60,plrsound=audiobank/ene/pda/pagechange.wav,state=70
:state=80,scancodekeypressed=62,plrsound=audiobank/ene/pda/pagechange.wav,state=90
:state=90,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=90,scancodekeypressed=59,plrsound=audiobank/ene/pda/pagechange.wav,state=60
:state=90,scancodekeypressed=60,plrsound=audiobank/ene/pda/pagechange.wav,state=70
:state=90,scancodekeypressed=61,plrsound=audiobank/ene/pda/pagechange.wav,state=80
;---PDA MINI PAGE CHANGER---
;SCROLLING (this allows the player to scroll through the mini pages)
;60-65 DOWN
:state=60,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=61
:state=61,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=62
:state=62,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=63
:state=63,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=64
:state=64,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=65
:state=65,scancodekeypressed=208,plrsound=audiobank/ene/pda/cancel.wav
;60-65 UP
:state=60,scancodekeypressed=200,plrsound=audiobank/ene/pda/cancel.wav
:state=61,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=60
:state=62,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=61
:state=63,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=62
:state=64,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=63
:state=65,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=64
;70-75 DOWN
:state=70,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=71
:state=71,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=72
:state=72,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=73
:state=73,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=74
:state=74,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=75
:state=75,scancodekeypressed=208,plrsound=audiobank/ene/pda/cancel.wav
;70-75 UP
:state=70,scancodekeypressed=200,plrsound=audiobank/ene/pda/cancel.wav
:state=71,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=70
:state=72,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=71
:state=73,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=72
:state=74,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=73
:state=75,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=74
;80-85 DOWN
:state=80,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=81
:state=81,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=82
:state=82,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=83
:state=83,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=84
:state=84,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=85
:state=85,scancodekeypressed=208,plrsound=audiobank/ene/pda/cancel.wav
;80-85 UP
:state=80,scancodekeypressed=200,plrsound=audiobank/ene/pda/cancel.wav
:state=81,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=80
:state=82,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=81
:state=83,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=82
:state=84,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=83
:state=85,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=84
;90-95 DOWN
:state=90,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=91
:state=91,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=92
:state=92,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=93
:state=93,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=94
:state=94,scancodekeypressed=208,plrsound=audiobank/ene/pda/scroll.wav,state=95
:state=95,scancodekeypressed=208,plrsound=audiobank/ene/pda/cancel.wav
;90-95 UP
:state=90,scancodekeypressed=200,plrsound=audiobank/ene/pda/cancel.wav
:state=91,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=90
:state=92,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=91
:state=93,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=92
:state=94,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=93
:state=95,scancodekeypressed=200,plrsound=audiobank/ene/pda/scroll.wav,state=94
;MINI TO STATE MAIN (takes all the mini pages to the PDA main page)
:state=61,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=62,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=63,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=64,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=65,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=71,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=72,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=73,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=74,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=75,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=81,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=82,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=83,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=84,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=85,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=91,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=92,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=93,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=94,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
:state=95,scancodekeypressed=207,plrsound=audiobank/ene/pda/pagechange.wav,state=50
;---PDA ACTIONS---
;MAIN MINUE (the main minue of the pda)
:state=50,
;EMAIL (allows the player to "check his email")
:state=60,
:state=61,
:state=62,
:state=63,
:state=64,
:state=65,
;VIDEOS (allows the player to watch videos)
:state=70,
:state=71,
:state=72,
:state=73,
:state=74,
:state=75,
;WEAPONS (allows the player to see what weapons are available in the game)
:state=80,
:state=81,
:state=82,
:state=83,
:state=84,
:state=85,
;OTHER (another screen)
:state=90,
:state=91,
:state=92,
:state=93,
:state=94,
:state=95,
;---BACKGROUND SOUND EFFECTS---
;MAIN/PDA (sets the background sounds of every page)
:state=50,plrsound=audiobank/ene/pda/pdabackground.wav
:state=51,plrsound=audiobank/ene/pda/pdabackground.wav
:state=52,plrsound=audiobank/ene/pda/pdabackground.wav
:state=53,plrsound=audiobank/ene/pda/pdabackground.wav
:state=54,plrsound=audiobank/ene/pda/pdabackground.wav
:state=55,plrsound=audiobank/ene/pda/pdabackground.wav
:state=60,plrsound=audiobank/ene/pda/pdabackground.wav
:state=61,plrsound=audiobank/ene/pda/pdabackground.wav
:state=62,plrsound=audiobank/ene/pda/pdabackground.wav
:state=63,plrsound=audiobank/ene/pda/pdabackground.wav
:state=64,plrsound=audiobank/ene/pda/pdabackground.wav
:state=65,plrsound=audiobank/ene/pda/pdabackground.wav
:state=70,plrsound=audiobank/ene/pda/pdabackground.wav
:state=71,plrsound=audiobank/ene/pda/pdabackground.wav
:state=72,plrsound=audiobank/ene/pda/pdabackground.wav
:state=73,plrsound=audiobank/ene/pda/pdabackground.wav
:state=74,plrsound=audiobank/ene/pda/pdabackground.wav
:state=75,plrsound=audiobank/ene/pda/pdabackground.wav
:state=80,plrsound=audiobank/ene/pda/pdabackground.wav
:state=81,plrsound=audiobank/ene/pda/pdabackground.wav
:state=82,plrsound=audiobank/ene/pda/pdabackground.wav
:state=83,plrsound=audiobank/ene/pda/pdabackground.wav
:state=84,plrsound=audiobank/ene/pda/pdabackground.wav
:state=85,plrsound=audiobank/ene/pda/pdabackground.wav
:state=90,plrsound=audiobank/ene/pda/pdabackground.wav
:state=91,plrsound=audiobank/ene/pda/pdabackground.wav
:state=92,plrsound=audiobank/ene/pda/pdabackground.wav
:state=93,plrsound=audiobank/ene/pda/pdabackground.wav
:state=94,plrsound=audiobank/ene/pda/pdabackground.wav
:state=95,plrsound=audiobank/ene/pda/pdabackground.wav
ALSO-
About that hud, I located it on Google, and I am sorry for the inconveiniences. I had no-idea that someone had purchased it.
I feel bad for not cheaking to see if it belonged to someone.
Very sorry
Harrison, Alijandro, Jacob, Diego, Willis, Robby, Tyler, Levi,Chris, Josh, and Ethan