|
楼主 |
发表于 2011-9-27 10:14:05
|
显示全部楼层
回 1楼(chyj4747) 的帖子
谢谢你的建议!!
不过我在A_Act 里加两个动作
[jass]call DisplayTimedTextToPlayer( GetLocalPlayer(),0,0,8,I2S(GetStoredInteger(udg_PV,"Z", "Dia" )) )
call DisplayTimedTextToPlayer( GetLocalPlayer(),0,0,8,I2S(GetStoredInteger(udg_PV,"Z", "Dia1" )) )[/jass]
下图是运行后得到的结果:
奇怪了, 我这里测试怎么保存进去了啊?
A_Act 里的代码如下
[jass]
function A_Act takes nothing returns nothing
local dialog Dia = DialogCreate()
local button Dia1
call DialogSetMessage(Dia, "AAAAAAA" )
set Dia1 = DialogAddButton(Dia, "确定 (Z)", 'Z' )
call DialogAddButton(Dia, "取消 (X)", 'X' )
call DialogDisplay( GetTriggerPlayer(),Dia, true )
call StoreInteger(udg_PV,"Z", "Dia", H2I(Dia) )
call StoreInteger(udg_PV,"Z", "Dia1", H2I(Dia1) )
call DisplayTimedTextToPlayer( GetLocalPlayer(),0,0,8,I2S(GetStoredInteger(udg_PV,"Z", "Dia" )) )
call DisplayTimedTextToPlayer( GetLocalPlayer(),0,0,8,I2S(GetStoredInteger(udg_PV,"Z", "Dia1" )) )
endfunction
[/jass] |
|