RPGXP Script
2008.01.08 03:19

파티 선두 캐릭터 id 변수에 넣기

Views 2066 Votes 1 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

따로 스크립트 메뉴에서 집어넣을 필요는 없습니다.


이하의 구문을 이벤트에디터 내 스크립트 안에 집어넣어 주기만 하면 됩니다.


 


if $game_party.actors.size > 0
$game_variables[n] = $game_party.actors[0].id
end


 


n에 파티 캐릭터 id를 집어 넣을 변수값


0에 몇 번째(-1)캐릭터인지.


 


 


알고리즘


if구문은 현재 파티원이 한 명도 없을 때엔 변수값의 처리를 하지 않습니다.


 


사용법


n 부분에 파티 캐릭터 id를 집어넣을 변수값을 기록합니다. 1이라고 쓰면 1번 변수에 그 값이 들어갑니다.


0 부분에 몇 번째 캐릭터인지 기록합니다. 선두 캐릭터는 0입니다. 1이 아닙니다. 이 부분에 주의할 것.


가령 3번째 캐릭터는 2가 되는 식입니다.


정작 액터 id는 -1을 가산하지 않습니다. DB상 id 1번의 액터라면 변수값엔 1번으로 추가됩니다.


 


특히 파티원 자율변경을 사용하는 분은 효과적으로 쓸 수 있을 것입니다.

?

  1. 한글조합입력기(영어가능)

    Date2019.11.10 CategoryRPGXP Script By조규진1 Views1283 Votes0
    Read More
  2. RPG XP Xas액알

    Date2018.10.30 CategoryRPGXP Script By심심치 Views1530 Votes0
    Read More
  3. Font Setup

    Date2016.07.22 CategoryRPGXP Script By운님 Views1849 Votes0
    Read More
  4. 대화에 얼굴이 나오는 스크립트 by: killarot(네이버 dust_mite)(수정버전)

    Date2016.02.22 CategoryRPGXP Script By부초 Views2265 Votes0
    Read More
  5. RPGXP ATB전투 시스템 예제(스크립트는 예제 안에 포함)

    Date2015.11.17 CategoryRPGXP Script ByMagNesium Views1071 Votes0
    Read More
  6. 스테이터스,보수,골드,플레임 타임 삭제

    Date2015.06.02 CategoryRPGXP Script Byrpgmakingbot Views1033 Votes0
    Read More
  7. 헤드 업 디스플레이 스크립트

    Date2015.01.30 CategoryRPGXP Script By 운 Views1140 Votes0
    Read More
  8. 컬러 비트맵 타이틀 스크립트

    Date2015.01.20 CategoryRPGXP Script By 운 Views1090 Votes1
    Read More
  9. 로고 스크립트

    Date2014.12.10 CategoryRPGXP Script By 운 Views1442 Votes1
    Read More
  10. 타이틀 로딩 스크립트

    Date2014.12.07 CategoryRPGXP Script By 운 Views1331 Votes0
    Read More
  11. 타이틀 스크립트

    Date2014.12.05 CategoryRPGXP Script By 운 Views1308 Votes0
    Read More
  12. 액알 스크립트

    Date2014.11.23 CategoryRPGXP Script By커비♥ Views1696 Votes1
    Read More
  13. 공포게임에 장비착용메뉴

    Date2014.08.24 CategoryRPGXP Script By 운 Views1707 Votes0
    Read More
  14. 얼굴표시/문장을 한글자씩 나타내주는 스크립트 (출처-히페리온)

    Date2014.06.22 CategoryRPGXP Script By시르카 Views1466 Votes0
    Read More
  15. 횡스크롤 점프 [버튼허용스위치추가]

    Date2014.06.01 CategoryRPGXP Script By 운 Views1909 Votes0
    Read More
  16. 말풍선 메세지 스크립트

    Date2014.02.24 CategoryRPGXP Script By천둥번들 Views2072 Votes0
    Read More
  17. 스텟찍기스크립트

    Date2014.02.22 CategoryRPGXP Script By천둥번들 Views2133 Votes3
    Read More
  18. 달리기스크립트

    Date2014.02.22 CategoryRPGXP Script By천둥번들 Views2557 Votes2
    Read More
  19. 8방향 이동스크립트

    Date2014.02.22 CategoryRPGXP Script By천둥번들 Views2030 Votes6
    Read More
  20. AraLab_MultiStartingPoint (다중 출발점 스크립트, 캐릭터 선택 스크립트) ver.0.2beta

    Date2014.01.21 CategoryRPGXP Script By 운 Views2301 Votes1
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8


[privacy statements] | [Terms of Use] | [Contact us] | [Sponsorship] | [Indiside History]

Copyright © 1999 - 2016 INdiSide.com/CL3D Co., Ltd. All Rights Reserved.
Owner : Chunmu(Jiseon Lee) | kernys(Wonbae Kim) | Sasinji(Byungkook Kim)