startmap.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. EntityContainer = {}
  2. EntityContainer[ "Director" ] = {
  3. on_start = function( self )
  4. background2d:autoscroll_to_entity( entity_manager:get_entity( "Cloud" ) )
  5. FFVII.set_party( "Cloud", nil, nil );
  6. FFVII.Data.progress_game = 1
  7. return 0
  8. end,
  9. main = function( self )
  10. return 0
  11. end,
  12. }
  13. EntityContainer[ "Cloud" ] = {
  14. cloud = nil,
  15. on_start = function( self )
  16. set_entity_to_character( "Cloud", "Cloud" )
  17. self.cloud = entity_manager:get_entity( "Cloud" )
  18. self.cloud:set_solid( true )
  19. self.cloud:set_visible( true )
  20. self.cloud:set_position( 0.1, 0.1, 0 )
  21. self.cloud:set_rotation( 180 )
  22. self.cloud:play_animation( "Idle" )
  23. player_lock( false )
  24. return 0
  25. end,
  26. }
  27. EntityContainer[ "Gateway0" ] = {
  28. on_start = function( self )
  29. return 0
  30. end,
  31. on_enter_line = function( self, entity )
  32. return 0
  33. end,
  34. on_move_to_line = function( self, entity )
  35. return 0
  36. end,
  37. on_cross_line = function( self, entity )
  38. if entity == "Cloud" then
  39. load_field_map_request( "ffvii_elevtr1", "Spawn_elevtr1_1f" )
  40. end
  41. return 0
  42. end,
  43. on_leave_line = function( self, entity )
  44. return 0
  45. end,
  46. }
  47. EntityContainer[ "Gateway1" ] = {
  48. on_start = function( self )
  49. return 0
  50. end,
  51. on_enter_line = function( self, entity )
  52. return 0
  53. end,
  54. on_move_to_line = function( self, entity )
  55. return 0
  56. end,
  57. on_cross_line = function( self, entity )
  58. if entity == "Cloud" then
  59. load_field_map_request( "ffvii_nmkin_3", "Spawn_nmkin_2" )
  60. end
  61. return 0
  62. end,
  63. on_leave_line = function( self, entity )
  64. return 0
  65. end,
  66. }