找回密码
 点一下
查看: 1895|回复: 0

随机文字颜色

[复制链接]
发表于 2008-8-4 12:18:20 | 显示全部楼层 |阅读模式
[codes=jass]

function Trig_I_love_Myself_Actions takes nothing returns nothing
local string s=null
local integer i=0
local integer tempi=0
local string ss=“0123456789ABCDEF”
local location loc=null
set loc=GetUnitLoc( gg_unit_Hamg_0002 )
set s=“作者:|c”
set i=1
loop
exitwhen i>8
set tempi=GetRandomInt(1,16)
set s=s+SubString(ss,tempi-1,tempi)
set i=i+1
endloop
set s=s+“血戮魔动冰|r”
call CreateTextTagLocBJ( s, loc, 0, GetRandomReal(10,30), 100, 100, 100, 0 )
call SetTextTagPermanent( bj_lastCreatedTextTag, false )
call SetTextTagVelocityBJ( bj_lastCreatedTextTag, GetRandomReal(50,78), GetRandomReal(0,360) )
call SetTextTagFadepoint( bj_lastCreatedTextTag, 4 )
call SetTextTagLifespan( bj_lastCreatedTextTag, 7 )
set s=null
set i=0
set tempi=0
set ss=null
call RemoveLocation(loc)
set loc=null
endfunction

[/codes]

纯粹无聊函数。

评分

参与人数 1威望 +15 收起 理由
狡猾的兔子 + 15 原创内容

查看全部评分

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-5-3 11:34 , Processed in 0.149920 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表