Can someone please help me? i wrote a script, in whitch i wanted to move 2 platforms if the player collected the 4 Items (ex: Misc_Turn1)
but when i collected them nothing happens...
I'm not so well in making scripts and also my english isn't that well it should be... oO
Here is my script:
Begin Soulhearts
short doOnce
short NoLore
float timer
short start
if ( MenuMode == 1 )
. return
endif
if ( doOnce == 2 )
. return
endif
if ( CellChanged == 1 )
. if ( doOnce == 2 )
. "in_dae_Soulhearts"->disable
. "in_dae_platform_Soulhearts"->disable
. endif
endif
if ( doOnce == 0 )
. if ( GetItemCount Misc_Turn1 < 0 )
.. if ( GetItemCount Misc_Turn2 < 0 )
... if ( GetItemCount Misc_Turn3 < 0 )
.... if ( GetItemCount Misc_Turn4 < 0 )
..... if ( start == 0 )
...... MessageBox "Who has stolen my Soulhearts? You'll die!"
...... set start to 1
...... PlaySound "Door Stone Open"
...... set doOnce to 1
..... endif
.... endif
... endif
.. endif
. endif
endif
if ( start == 0 )
. return
endif
set timer to ( timer + GetSecondsPassed )
if ( timer < 1 )
. "in_dae_Soulhearts"->MoveWorld Z -10
. "in_dae_platform_Soulhearts"->MoveWorld Z 288
endif
if ( timer > 1 )
. "in_dae_Soulhearts"->MoveWorld X -64
endif
if ( timer > 9 )
. set start to 0
. set timer to 0
. Set doOnce to 2
. ;reset timer and start
endif
End Soulhearts
Ponts (.) made instead of tabs
Thx 4 help
Fututrix