Hello!
I would like to know if fpi have a limited number of states.
I had a script working fine, but when I added two more huds - meaning some more code/states - the last lines of code stopped working.
Here is my code -> I know it's a little bit to big, but it's not a difficult deal! It's just Huds+Huds+Huds!
desc = Talk_Goblin
:always:globalvar=27
:state=0:hudreset,hudx=80,hudy=85,hudimagefine=gamecorecaptionsSintraBallonsajudaajuda_04.png,hudname=ajuda04,hudhide=1,hudmake=display
:state=0:hudreset,hudx=17,hudy=85,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_question01.png,hudname=question01,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_answer01.png,hudname=answer01,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_answer02.png,hudname=answer02,hudhide=1,hudmake=display,
;waiting mushrooms
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_cogumelos.png,hudname=cogumelos,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_teleporte.png,hudname=goblinteleporte,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_nome_apresentacao.png,hudname=goblinapresentacao,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_01.png,hudname=goblin01,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_02.png,hudname=goblin02,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_03.png,hudname=goblin03,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_04.png,hudname=goblin04,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_05.png,hudname=goblin05,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_06.png,hudname=goblin06,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_07.png,hudname=goblin07,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_08.png,hudname=goblin08,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_09.png,hudname=goblin09,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_10.png,hudname=goblin10,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_11.png,hudname=goblin11,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorecaptionsSintraBallonsconversaGoblingoblin_church_12.png,hudname=goblin12,hudhide=1,hudmake=display
:state=0:animate=1,settargetname=steam2,state=1
;Que estás aqui a fazer???
:state=1,plrdistwithin=195:plrfreeze=1,rotatetoplr,hudshow=goblin01,hudfadeout=goblin01
:state=1,plrdistwithin=195,plrusingaction=1:state=2
:state=2,plrusingaction=0:state=3
:state=3,plrdistwithin=195:plrfreeze=1,rotatetoplr,hudshow=goblin02,hudfadeout=goblin02
:state=3,plrdistwithin=195,plrusingaction=1:state=4
:state=4,plrusingaction=0:state=6
;APRESENTACAO
:state=5,plrdistwithin=195:plrfreeze=1,rotatetoplr,hudshow=goblinapresentacao,hudfadeout=goblinapresentacao
:state=5,plrdistwithin=195,plrusingaction=1:state=6
;Perguntas/Respostas
:state=6,plrusingaction=0,plrdistwithin=80:plrfreeze=0,rotatetoplr,hudshow=question01,hudshow=ajuda04
:state=6,plrdistwithin=80,scancodekeypressed=2:state=90
:state=6,plrdistwithin=80,scancodekeypressed=3:state=100
:state=6,plrdistwithin=80,scancodekeypressed=4:state=7
:state=6,plrdistfurther=150:rotatetotarget,hudunshow=question01,hudunshow=ajuda04
;Perguntas/Respostas -> RESPOSTA 1
:state=90,plrdistwithin=80,scancodekeypressed=0:rotatetoplr,hudshow=answer01,hudfadeout=answer01
:state=90,plrdistwithin=80,plrusingaction=1:state=6
:state=90,plrdistfurther=80:rotatetotarget
;Perguntas/Respostas -> RESPOSTA 2
:state=100,plrdistwithin=80,scancodekeypressed=0:rotatetoplr,hudshow=answer02,hudfadeout=answer02
:state=100,plrdistwithin=80,plrusingaction=1:state=6
:state=100,plrdistfurther=80:rotatetotarget,hudunshow=question01
;Quest 1
:state=7,plrdistwithin=80,scancodekeypressed=0:rotatetoplr,hudunshow=question01,hudunshow=ajuda04,hudshow=goblin03,hudfadeout=goblin03
:state=7,plrdistwithin=80,plrusingaction=1:state=50
:state=7,plrdistfurther=80:rotatetotarget,hudunshow=question01
;reset Enter
:state=50,plrusingaction=0:state=9
:state=9,plrdistwithin=80:rotatetoplr,hudshow=goblin04,hudfadeout=goblin04
:state=9,plrdistwithin=80,plrusingaction=1:state=51
:state=9,plrdistfurther=80:rotatetotarget
;reset Enter
:state=51,plrusingaction=0:state=11
:state=11,plrdistwithin=80:rotatetoplr,hudshow=goblin05,hudfadeout=goblin05
:state=11,plrdistwithin=80,plrusingaction=1:state=52
:state=11,plrdistfurther=80:rotatetotarget
;reset Enter
:state=52,plrusingaction=0:state=13
;ADDED NEW TEXT -..-'
:state=13,plrdistwithin=80:rotatetoplr,hudshow=goblinteleporte,hudfadeout=goblinteleporte
:state=13,plrdistwithin=80,plrusingaction=1:state=53
:state=13,plrdistfurther=80:rotatetotarget
;reset Enter -> ADDED NEW TEXT -..-'
:state=53,plrusingaction=0,plrdistfurther=80:state=15,setvar=1
;waiting for mushrooms
:state=15,plrdistwithin=80:hudshow=cogumelos,hudfadeout=cogumelos
:state=15,varequal=2,plrusingaction=1:state=54
:state=15,plrdistfurther=80:rotatetotarget
;reset Enter
:state=54,plrusingaction=0:state=17
;Quest 2
:state=17,plrdistwithin=80:rotatetoplr,hudshow=goblin06,hudfadeout=goblin06
:state=17,plrdistwithin=80,plrusingaction=1:state=55
:state=17,plrdistfurther=80:rotatetotarget
;reset Enter
:state=55,plrusingaction=0:state=19
:state=19,plrdistwithin=80:rotatetoplr,hudshow=goblin07,hudfadeout=goblin07
:state=19,plrdistwithin=80,plrusingaction=1:state=56
:state=19,plrdistfurther=80:rotatetotarget
;reset Enter
:state=56,plrusingaction=0:state=20
:state=20,plrdistwithin=80:rotatetoplr,hudshow=goblin08,hudfadeout=goblin08
:state=20,plrdistwithin=80,plrusingaction=1:state=57
:state=20,plrdistfurther=80:rotatetotarget
;reset Enter
:state=57,plrusingaction=0:state=21
;waiting raiz
:state=21,plrdistwithin=80:rotatetoplr,hudshow=goblin09,hudfadeout=goblin09
:state=21,plrdistwithin=80,plrusingaction=1,varequal=3:state=58
:state=21,plrdistfurther=80:rotatetotarget
;reset Enter
:state=58,plrusingaction=0:state=22
:state=22,plrdistwithin=80:rotatetoplr,hudshow=goblin10,hudfadeout=goblin10
:state=22,plrdistwithin=80,plrusingaction=1:state=59
:state=22,plrdistfurther=80:rotatetotarget
;HERE! IT JUST STOPS! FROM NOTHING!
;reset Enter
:state=59,plrusingaction=0:state=150
:state=150,plrdistwithin=80:rotatetoplr,hudshow=goblin11,hudfadeout=goblin11
:state=150,plrdistwithin=80,plrusingaction=1:state=60
:state=150,plrdistfurther=80:rotatetotarget
;reset Enter
:state=60,plrusingaction=0:state=24
:state=160,plrdistwithin=80,plrusingaction=0:rotatetoplr,hudshow=goblin12,hudfadeout=goblin12
:state=160,plrdistwithin=80,plrusingaction=1:state=200,setvar=4
:state=160,plrdistfurther=80:rotatetotarget
;End of Script
This is the part where it's stops.
;HERE! IT JUST STOPS! FROM NOTHING!
;reset Enter
:state=59,plrusingaction=0:state=150
:state=150,plrdistwithin=80:rotatetoplr,hudshow=goblin11,hudfadeout=goblin11
:state=150,plrdistwithin=80,plrusingaction=1:state=60
:state=150,plrdistfurther=80:rotatetotarget
;reset Enter
:state=60,plrusingaction=0:state=24
:state=160,plrdistwithin=80,plrusingaction=0:rotatetoplr,hudshow=goblin12,hudfadeout=goblin12
:state=160,plrdistwithin=80,plrusingaction=1:state=200,setvar=4
:state=160,plrdistfurther=80:rotatetotarget
;End of Script
Sintra, The Underground Empire [WIP] - http://forum.thegamecreators.com/?m=forum_view&t=153787&b=25