|
以下是JASS高亮字(举例):
请把你的高亮颜色方案列出来(粘贴本贴,选择颜色。请注意:JASS TAG的底色为纯白,但尽量避免和论坛底色相近。)
Block Builders:
function endfunction takes returns loop endloop if then endif elseif else type
extends constant native globals endglobals
Keywords:
call return set exitwhen local not and or
System Values:
null true false
Types:
nothing array string integer real code boolean handle event player widget unit destructable item ability buff force group trigger triggercondition triggeraction timer location region rect boolexpr sound conditionfunc filterfunc unitpool itempool race alliancetype racepreference gamestate igamestate fgamestate playerstate playergameresult unitstate aidifficulty eventid gameevent playerevent playerunitevent unitevent limitop widgetevent dialogevent unittype gamespeed gamedifficulty gametype mapflag mapvisibility mapsetting mapdensity mapcontrol playerslotstate volumegroup camerafield camerasetup playercolor placement startlocprio raritycontrol blendmode texmapflags effect effecttype weathereffect terraindeformation fogstate fogmodifier dialog button quest questitem defeatcondition timerdialog leaderboard multiboard multiboarditem trackable gamecache version itemtype texttag playerscore
AI Functions:
PlayerEx Trace TraceI TraceII TraceIII InitAI StandardAI Min Max SetZepNextWave ........
Trigger Functions:
Deg2Rad Rad2Deg Sin Cos Tan Asin Acos Atan Atan2 SquareRoot Pow I2R R2I I2S R2S R2SW S2I S2R SubString WidgetDropItem ......
AI Constant:
ARCHMAGE PALADIN MTN_KING BLOOD_MAGE AVATAR BASH THUNDER_BOLT THUNDER_CLAP DEVOTION_AURA DIVINE_SHIELD HOLY_BOLT RESURRECTION BLIZZARD BRILLIANCE_AURA MASS_TELEPORT WATER_ELEMENTAL BANISH FLAME_STRIKE SUMMON_PHOENIX SIPHON_MANA JAINA MURADIN GARITHOS KAEL COPTER GYRO ELEMENTAL .......
Trigger Constant:
FALSE TRUE JASS_MAX_ARRAY_SIZE PLAYER_NEUTRAL_PASSIVE PLAYER_NEUTRAL_AGGRESSIVE PLAYER_COLOR_RED PLAYER_COLOR_BLUE PLAYER_COLOR_CYAN PLAYER_COLOR_PURPLE PLAYER_COLOR_YELLOW PLAYER_COLOR_ORANGE ......
Operator:
数学计算:
+ 加
- 减
* 乘
/ 除
比较符号:
>, <, >=, <= 分别是大于,小于, 大于等于, 小于等于
== 等于
!= 不等于
注意: 双=号(==)才是比较, 单=号是赋值, 不要搞错了!!!
布尔条件
and 条件和
or 条件或
not 否定条件
字符串操作符
+ 字符串叠加, 如"Greed" + "wind"的结果"Greedwind"
3) Jass里还有什么特殊用途的字符和字串?
// 注释, 以 //开头的语句将不执行
() 函数参数列表, 如 call myfunction()
[] 数组元素标记, 如 myarray[0]
"" 字符串引用符, 如 "I love Greedwind"
'' 单位/物品/技能代码引用符号, 如 'A001', 'Hpal'
注意: Jass中可以用单引号括起4个字母表示数值型的值(integer)
\ 跳脱符号(与Java/C一样),
如: 在字符串里使用双引号 set mystring = "This is a \"string\""
mystring 的值实际上是: This is a "string"
如果直接 set mystring = "This is a "string"" 将出错
因为""是字符串引用符
0 用于数字前面, 则表示八进制的数, 如 016
0x 用于数字前面, 则表示十六进制的数, 如 0x1FA0
[ 本帖最后由 greedwind 于 2006-4-3 18:28 编辑 ] |
|