Difference between revisions of "Bethesda Tutorial Papyrus Introduction to Properties and Functions/ko"

no edit summary
imported>Weakbeginner
(Created page with "{{Tutorial Index |series=Scripting |chapter=3 |Prev=Bethesda_Tutorial_Papyrus_Variables_and_Conditionals/ko |Next=Bethesda Tutorial Papyrus Events and Properties/ko }} =개...")
 
imported>Weakbeginner
Line 31: Line 31:
*''Scriptname HelloWorldScript extends '''ObjectReference''''': 이 스크립트는 다른 스크립트를 (혹은 다른 스크립트에 기반하여) 확장한다. 여기서는 "ObjectReference" 스크립트를 사용한다.
*''Scriptname HelloWorldScript extends '''ObjectReference''''': 이 스크립트는 다른 스크립트를 (혹은 다른 스크립트에 기반하여) 확장한다. 여기서는 "ObjectReference" 스크립트를 사용한다.


=스크립트 확장=
=스크립트 확장하기=
사실상 당신이 쓰는 모든 스크립트는 다른 스크립트로 확장될 필요가 있을 것이다. 당신은 스크립트를 확장할 때, "내 스크립트는 이런 스크립트와 같은거야. 내가 추가했던 또 다른 물건들도 말이지." 라고 말하는 것과 같다.
 
어떤 스크립트를 확장하는 것은 또한 게임에게 "내 스크립트는 이런 타입의 오브젝트야"라고 말하는 것이다.
 
예를 들어, 게임 속에서 Reference가 될 오브젝트(우리의 빛나는 기둥 같은)에 스크립트를 추가하였다면, 당신의 스크립트는 "ObjectReference"스크립트를 "확장"시킬 필요가 있다. 퀘스트에 스크립트를 추가하고 싶다면, "Quest"스크립트를 "확장"시켜야 한다. 그런식이다.
 
스크립트 작성에 조금 더 익숙해지면, 스크립트를 확장하는 것들도 곧 익숙해질 것이다. 지금은, 스크립트를 어떤 오브젝트에 할당할 때, 또 다른 스크립트로 확장을 해야한다는 점만 알고 있으면 된다.
 
=툴팁 추가=
당신이 쓴 스크립트의 두번째 줄이 어디서 온건지 궁금하지 않은가? 아래 문장 말이다. :
 
<source lang="papyrus">
  {This is my very first script!}
</source>
 
새로운 스크립트를 만들고 문서화 스트링(the documentation string)에 들어가게 되면, 아래 문장이 생성될 것이다. :
[[Image:Papyrus Tutorial1 NewScript.jpg|center]]
 
 




[편집 중입니다.]




{{Languages|Bethesda_Tutorial_Papyrus_Introduction_to_Properties_and_Functions}}
{{Languages|Bethesda_Tutorial_Papyrus_Introduction_to_Properties_and_Functions}}
Anonymous user