XP 스크립트

#초간단스크립트
class Game_Character
  def go_event(id)
    ex = @x - $game_map.events[id].x
    ey = @y - $game_map.events[id].y
    if ex == 0 and ey == 0
      return
    end
    abs_ex = ex.abs
    abs_ey = ey.abs
    if abs_ex == abs_ey
      rand(2) == 0 ?  abs_ex += 1 : abs_ey += 1
    end
    if abs_ex > abs_ey
      ex > 0 ?  move_left : move_right
      if not moving?  and ey != 0
        ey > 0 ?  move_up : move_down
      end
    else
      ey > 0 ?  move_up : move_down
      if not moving?  and ex != 0
        ex > 0 ?  move_left : move_right
      end
    end
  end
def back_event(id)
      ex = @x - $game_map.events[id].x
    ey = @y - $game_map.events[id].y
    if ex == 0 and ey == 0
      return
    end
    abs_ex = ex.abs
    abs_ey = ey.abs
    if abs_ex == abs_ey
      rand(2) == 0 ?  abs_ex += 1 : abs_ey += 1
    end
    if abs_ex > abs_ey
      ex > 0 ?  move_right : move_left
      if not moving?  and ey != 0
        ey > 0 ?  move_down : move_up
      end
    else
      ey > 0 ?  move_down : move_up
      if not moving?  and ex != 0
        ex > 0 ?  move_right : move_left
      end
    end
  end
  end



안봐도 아실거라 믿습니다만
막상만들어봣더니
존x좋군?(이미지짤없어서 ㅈㅅ)

이 스크립트이름은 '이벤트이동' 이라 칭하시면 ㄳ ㅇㅋ?
go_event(id):이벤트id에 다가간다
back_event(id):이벤트id으로 도망간다

Who's *PS인간

?

Top mia

Comment '10'
  • ?
    매디 2009.02.10 22:19
    RPG툴에서 부족하다고 느꼈던부분을 이렇게 채우네요!!!

    멋집니다!! 잘쓸께요.
  • ?
    ShingStar 2009.02.11 19:09
    감사해요 ㅎ
  • ?
    안다 2009.02.14 10:08
    님 좀 짱인듯
  • ?
    lhh9606 2009.02.14 23:01
    머에여?
  • ?
    츠키아 2009.02.15 21:02
    와...... 감사합니다~
  • profile
    可わいい 2009.02.16 11:23
    이동속도는 어떻게
  • ?
    나뚜루 2009.02.21 10:59
    이봐 똥줄 타다니... 그게무슨말이야;
  • ?
    누군가 2010.05.15 16:21

    이동속도는 어떻게 조정하나요?

  • ?
    nnibal210 2011.06.22 13:39

    a

  • ?
    석진이 2011.06.22 18:52

    와 멋있다 최고다 이런거 있는줄 몰랐다 ㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜ

    이거 줄 어디에 추가시켜야되는지좀 알려주세요 ::):):))):):):):) :)


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6202
1021 메시지 Taylor's Simple Message System 2000 Alkaid 2020.07.05 247
1020 제작도구 [XP/VX/VXA] Doodad's Editor by newold Alkaid 2020.07.12 388
1019 이름입력 한글조합입력기(영어가능) file 조규진1 2019.11.10 507
1018 전투 전투중에 장비들 교체하기 file 레이스89 2017.08.19 600
1017 기타 [All RGSS] FileTest (Unicode) file Cheapmunk 2014.12.29 614
1016 맵/타일 맵연결 스크립트 (데모첨부) file 게임애호가 2018.06.15 694
1015 기타 에어리어 설정 by RPG Advocate 백호 2009.02.22 710
1014 기타 Boat Script 백호 2009.02.21 729
1013 기타 Localization by ForeverZer0, KK20 습작 2013.04.26 738
1012 기타 Materia System file 백호 2009.02.21 749
1011 기타 Real-Time Day Night 3 백호 2009.02.22 751
1010 스킬 SG_Escape Only Skills by sandgolem (SDK호환) 백호 2009.02.22 753
1009 기타 killer님 요청하신 스크립트 두번째입니다. 나뚜루 2009.02.21 759
1008 기타 Letter by Letter Message Window by slipknot@rmxp.org (SDK호환) 1 file 백호 2009.02.22 760
1007 기타 Advanced Gold display by Dubealex 1 백호 2009.02.22 761
1006 스킬 Skill Requirements by SephirothSpawn (SDK호환) file 백호 2009.02.22 763
1005 기타 Sphere Grid System file 백호 2009.02.21 765
1004 기타 AMS-Advanced Message Script Edited by Dubleax 3 file 백호 2009.02.21 766
1003 스킬 SG_Skill Break by sandgolem (SDK호환) 백호 2009.02.22 772
1002 기타 Activation_system file 백호 2009.02.22 775
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 52 Next
/ 52