Difference between revisions of "User:RasqualTwilight/PS2 RealLive To Kepago Mapping"

From Baka-Tsuki
Jump to navigation Jump to search
(_STBG, _WTKY)
m (correct syntax)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=Mapping of functions used in PS2 RealLive Scripts=
 
=Mapping of functions used in PS2 RealLive Scripts=
See [http://forums.visualnews.net/showthread.php?t=16671 VisualNews Gemot] for more info.
+
See [http://forums.visualnews.net/showthread.php?t=16671 VisualNews Gemot] for more info. [http://tieba.baidu.com/f?z=278920617&ct=335544320&tn=baiduPostBrowser Original post info].
 
<div style="overflow:auto;border:gray solid 1px;">
 
<div style="overflow:auto;border:gray solid 1px;">
 
{|border="1" cellpadding="1" cellspacing="0" class="sortable" style="border:gray solid 1px; border-collapse:collapse; text-align:center;vertical-align:top; width:100%"
 
{|border="1" cellpadding="1" cellspacing="0" class="sortable" style="border:gray solid 1px; border-collapse:collapse; text-align:center;vertical-align:top; width:100%"
Line 23: Line 23:
 
|style="background:#ececec;"| <div id="_MPLY">_MPLY</div>
 
|style="background:#ececec;"| <div id="_MPLY">_MPLY</div>
 
| bgmLoop
 
| bgmLoop
| Play media in loop (See also: ...)
+
| Play music in loop (See also: [[#_MFAD|_MFAD]])
 
|style="background:#f1fff1;"| <code>_MPLY(BGM07);{{ddarr}}bgmLoop ('BGM07')</code>
 
|style="background:#f1fff1;"| <code>_MPLY(BGM07);{{ddarr}}bgmLoop ('BGM07')</code>
 
|-
 
|-
Line 33: Line 33:
 
|style="background:#ececec;"| <div id="_WTKY">_WTKY</div>
 
|style="background:#ececec;"| <div id="_WTKY">_WTKY</div>
 
| pause
 
| pause
  +
| Wait for key (See also: [[#_WTTM|_WTTM]], [[#_WTK2|_WTK2]], [[#_WTK3|_WTK3]]))
| Wait for key
 
 
|style="background:#f1fff1;"| <code>_WTKY;{{ddarr}}pause</code>
 
|style="background:#f1fff1;"| <code>_WTKY;{{ddarr}}pause</code>
  +
|-
  +
|style="background:#ececec;"| <div id="_MFAD">_MFAD</div>
  +
| bgmFadeout
  +
| Fadeout music (See also: [[#_MPLY|_MPLY]])
  +
|style="background:#f1f1ff;"| <code>_MFAD(4000);{{ddarr}}bgmFadeOut (4000)</code>
  +
|-
  +
|style="background:#ececec;"| <div id="_SEPL">_SEPL</div>
  +
| wavPlay
  +
| Play Sound Effect (See also: [[#_SELP|_SELP]], [[#_SEFD|_SEFD]])
  +
|style="background:#f1fff1;"| <code>_SEPL(poko);{{ddarr}}wavPlay ('poko')</code>
  +
|-
  +
|style="background:#ececec;"| <div id="_DDAT">_DDAT</div>
  +
| ''n.a.''
  +
| Define Date Image
  +
|style="background:#f1f1ff;"| <code>_DDAT(S_DTA0628);{{ddarr}}strS[1004] = 'S_DTA0628'</code>
  +
|-
  +
|style="background:#ececec;"| <div id="_CALN">_CALN</div>
  +
| ''n.a.''
  +
| Set Calendar Number (Function provided in SEEN9053)
  +
|style="background:#f1fff1;"| <code>_CALC F[1219]=0;<br/>_CALC F[1220]=6;<br/>_CALC F[1221]=28;<br/>_CALC F[1222]=1;<br/>_CALC F[1223]=1;<br/>_CALN;{{ddarr}}intF[1219] = 0<br/>intF[1220] = 6<br/>intF[1221] = 28<br/>intF[1222] = 1<br/>intF[1223] = 1<br/>farcall (9053, 0)</code>
  +
|-
  +
|style="background:#ececec;"| <div id="_CLOS">_CLOS</div>
  +
| msgHide
  +
| Close Active Message Frame
  +
|style="background:#f1f1ff;"| <code>_CLOS;{{ddarr}}msgHide()</code>
  +
|-
  +
|style="background:#ececec;"| <div id="_CLR">_CLR</div>
  +
| msgClear
  +
| Clear Active Message Frame
  +
|style="background:#f1fff1;"| <code>_CLR;{{ddarr}}msgClear()</code>
  +
|-
  +
|style="background:#ececec;"| <div id="_EHNB">_EHNB</div>
  +
| ''n.a.''
  +
| Hanabi Animation? [Fireworks] (Function provided in SEEN9071)
  +
|style="background:#f1f1ff;"| <code>_EHNB;{{ddarr}}farcall (9071, 0)</code>
  +
|-
  +
|style="background:#ececec;"| <div id="SEL">SEL</div>
  +
| select
  +
| Multiple-Choice Select
  +
|style="background:#f1fff1;"| <code>_CALC F[1200]=SEL(話す,勉強する);{{ddarr}}intF[1200] = select ('話す', '勉強する')</code>
  +
|-
  +
|style="background:#ececec;"| <div id="_FCAL">_FCAL</div>
  +
| ''n.a.''
  +
| Raw Function Call (SEEN#, function#) (See also [[#_FRET|_FRET]])
  +
|style="background:#f1f1ff;"| <code>_FCAL(1714,00);{{ddarr}}farcall (1714, 0)</code>
  +
|-
  +
|style="background:#ececec;"| <div id="_FRET">_FRET</div>
  +
| rtl/ret
  +
| Return from Function Call (See also [[#_FCAL|_FCAL]])<br/>
  +
''Note, ret is not the proper way to return from a function call. It should only be used to return from a sub, but the PS2 script makes no distinction between the two.''
  +
|style="background:#f1fff1;"| <code>_FRET;{{ddarr}}rtl</code>
  +
|-
  +
|style="background:#ececec;"| <div id="_WTK2">_WTK2</div>
  +
| spause
  +
| Wait for key within paragraph (See also: [[#_WTKY|_WTKY]], [[#_WTK3|_WTK3]])
  +
|style="background:#f1f1ff;"| <code>_ZM7b499(残っているものは…);<br/>_WTK2;<br/>_ZM7b49a(智代に対する心許なさだ。);<br/>_WTKY;{{ddarr}}'残っているものは…'<br/>spause<br/>'智代に対する心許なさだ。'<br/>pause</code>
  +
|-
  +
|style="background:#ececec;"| <div id="_WTK3">_WTK3</div>
  +
| ''n.a.''
  +
| ¿Wait until SE has finished playing? (See also: [[#_WTKY|_WTKY]], [[#_WTK2|_WTK2]])
  +
|style="background:#f1fff1;"| <code>_WTK3();{{ddarr}}''no mapping''</code>
 
|-
 
|-
 
!style="background:#0000ff;color:white;"| Function
 
!style="background:#0000ff;color:white;"| Function

Latest revision as of 20:44, 25 January 2008

Mapping of functions used in PS2 RealLive Scripts[edit]

See VisualNews Gemot for more info. Original post info.

Function Kepago Description Example
_JUMP
jump Load a SEEN script _JUMP(0629);

jump(0629)
_STTI
title Set window title _STTI("6月28日(月)");

title("6月28日(月)")
_MPLY
bgmLoop Play music in loop (See also: _MFAD) _MPLY(BGM07);

bgmLoop ('BGM07')
_STBG
n.a. Set background (See also: _FADB) _STBG(BG001AN1);

strS[1000] = 'BG001AN1'
intF[1218] = 1
op<1:Sys:00210, 0>
op<1:Sys:00215, 0>
_WTKY
pause Wait for key (See also: _WTTM, _WTK2, _WTK3)) _WTKY;

pause
_MFAD
bgmFadeout Fadeout music (See also: _MPLY) _MFAD(4000);

bgmFadeOut (4000)
_SEPL
wavPlay Play Sound Effect (See also: _SELP, _SEFD) _SEPL(poko);

wavPlay ('poko')
_DDAT
n.a. Define Date Image _DDAT(S_DTA0628);

strS[1004] = 'S_DTA0628'
_CALN
n.a. Set Calendar Number (Function provided in SEEN9053) _CALC F[1219]=0;
_CALC F[1220]=6;
_CALC F[1221]=28;
_CALC F[1222]=1;
_CALC F[1223]=1;
_CALN;

intF[1219] = 0
intF[1220] = 6
intF[1221] = 28
intF[1222] = 1
intF[1223] = 1
farcall (9053, 0)
_CLOS
msgHide Close Active Message Frame _CLOS;

msgHide()
_CLR
msgClear Clear Active Message Frame _CLR;

msgClear()
_EHNB
n.a. Hanabi Animation? [Fireworks] (Function provided in SEEN9071) _EHNB;

farcall (9071, 0)
SEL
select Multiple-Choice Select _CALC F[1200]=SEL(話す,勉強する);

intF[1200] = select ('話す', '勉強する')
_FCAL
n.a. Raw Function Call (SEEN#, function#) (See also _FRET) _FCAL(1714,00);

farcall (1714, 0)
_FRET
rtl/ret Return from Function Call (See also _FCAL)

Note, ret is not the proper way to return from a function call. It should only be used to return from a sub, but the PS2 script makes no distinction between the two.

_FRET;

rtl
_WTK2
spause Wait for key within paragraph (See also: _WTKY, _WTK3) _ZM7b499(残っているものは…);
_WTK2;
_ZM7b49a(智代に対する心許なさだ。);
_WTKY;

'残っているものは…'
spause
'智代に対する心許なさだ。'
pause
_WTK3
n.a. ¿Wait until SE has finished playing? (See also: _WTKY, _WTK2) _WTK3();

no mapping
Function Kepago Description Example