找回密码
 点一下
查看: 2789|回复: 26

jass tag|| Trigger tag测试ing~~

  [复制链接]
发表于 2007-1-4 12:34:05 | 显示全部楼层 |阅读模式
[trigger]
测试触发
    Events
        Unit - 一个单位看帖子
    Conditions
        看帖子的单位等于某A
    Actions
        Trigger - 移除本触发
        Unit - 命令某A回帖


[/trigger]


[jass]
native JassTag takes something returns nothing
[/jass]
发表于 2007-1-4 12:34:58 | 显示全部楼层
555好神奇。
回复

使用道具 举报

发表于 2007-1-4 12:35:50 | 显示全部楼层

Re:jass tag 测试ing~~

好神奇...
回复

使用道具 举报

发表于 2007-1-4 12:36:14 | 显示全部楼层

Re:jass tag 测试ing~~

[trigger]
a
事件
  被召唤
条件
  召唤者 是 麦德大人 等于 True
动作
  出现。
  回帖。
[/trigger]
回复

使用道具 举报

发表于 2007-1-4 12:51:25 | 显示全部楼层
某A的排版不对啦~~

去WE里直接复制一个结构来就好老~~

[trigger]
Melee Initialization
    Events
        Map initialization
    Conditions
    Actions
        Melee Game - Use melee time of day (for all players)
        Melee Game - Limit Heroes to 1 per Hero-type (for all players)
        Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
        Melee Game - Set starting resources (for all players)
        Melee Game - Remove creeps and critters from used start locations (for all players)
        Melee Game - Create starting units (for all players)
        Melee Game - Run melee AI scripts (for computer players)
        Melee Game - Enforce victory/defeat conditions (for all players)
[/trigger]
回复

使用道具 举报

发表于 2007-1-4 12:55:25 | 显示全部楼层
[jass]
//***************************************************************************
//*
//*  Rescuable Unit Utility Functions
//*
//***************************************************************************

//===========================================================================
// Rescues a unit for a player.  This performs the default rescue behavior,
// including a rescue sound, flashing selection circle, ownership change,
// and optionally a unit color change.
//
function RescueUnitBJ takes unit whichUnit, player rescuer, boolean changeColor returns nothing
    if IsUnitDeadBJ(whichUnit) or (GetOwningPlayer(whichUnit) == rescuer) then
        return
    endif

    call StartSound(bj_rescueSound)
    call SetUnitOwner(whichUnit, rescuer, changeColor)
    call UnitAddIndicator(whichUnit, 0, 255, 0, 255)
    call PingMinimapForPlayer(rescuer, GetUnitX(whichUnit), GetUnitY(whichUnit), bj_RESCUE_PING_TIME)
endfunction
[/jass]
回复

使用道具 举报

发表于 2007-1-4 12:56:51 | 显示全部楼层
应该再提供“UTF-8粘贴”功能
方便复制中文触发器
回复

使用道具 举报

发表于 2007-1-4 12:57:23 | 显示全部楼层
嗯嗯~~果然cj函数都已经和wiki相连老~~
回复

使用道具 举报

发表于 2007-1-4 12:58:07 | 显示全部楼层
[s:8] ...
回复

使用道具 举报

发表于 2007-1-4 13:09:58 | 显示全部楼层
[trigger]
RPGInitialization
      事件
        地图初始化
     环境
    动作
        可见 - 禁止战争迷雾
        可见 - 禁止黑色阴影
[/trigger]
回复

使用道具 举报

发表于 2007-1-4 13:11:28 | 显示全部楼层
看。还素有问题。
事件居然没有换图标。
果然还需要装个4.410看看。
回复

使用道具 举报

发表于 2007-1-4 13:14:02 | 显示全部楼层
不只是CJ函数。BJ的我也一并连接过去老。
回复

使用道具 举报

发表于 2007-1-4 13:25:20 | 显示全部楼层
<p>[trigger]<br />ManaBurn<br />    Events<br />    Conditions<br />    Actions<br />        Custom script:   local unit udg_U<br />        Set U = (Damage source)<br />        Wait 0&#46;00 seconds<br />        Set BurnAmount = ((Real((Level of 法力燃烧  for U))) x MBfact)<br />        If (All Conditions are True) then do (Then Actions) else do (Else Actions)<br />            If - Conditions<br />                (Mana of (Triggering unit)) Less than BurnAmount<br />            Then - Actions<br />                Set BurnAmount = (Mana of (Triggering unit))<br />            Else - Actions<br />        If (All Conditions are True) then do (Then Actions) else do (Else Actions)<br />            If - Conditions<br />                ((Triggering unit) has buff 汲取法力 (目标) ) Equal to True<br />            Then - Actions<br />                Trigger - Turn off (This trigger)<br />                Unit - Remove 汲取法力 (目标)  buff from (Triggering unit)<br />                Set T = (Create Trigger)<br />                Trigger - Add to T the event (Unit - (Triggering unit) Takes damage)<br />                Trigger - Take T and add the action (Trigger - Destroy (This trigger))<br />                Trigger - Take T and add the action (Set HealAmount = (Damage taken))<br />                Trigger - Take T and add the action (Game - Display to (All players) the text: (String(HealAmount)))<br />                Trigger - Take T and add the action (Trigger - Turn on ManaBurn )<br />                Unit - Order U to damage (Triggering unit) for BurnAmount using attack type Spells and damage type Magic&#46;<br />                Floating Text - Create floating text that reads (-  + (String((Integer(BurnAmount))))) above (Triggering unit) with Z offset 0&#46;00, using font size 10&#46;00, color (32&#46;00%, 32&#46;00%, 100&#46;00%), and 0&#46;00% transparency<br />                Floating Text - Change permanent state of (Last created floating text) to Disable<br />                Floating Text - Set the velocity of (Last created floating text) to 100&#46;00 towards 90&#46;00 degrees<br />                Floating Text - Change the lifespan of (Last created floating text) to 5&#46;00<br />                Floating Text - Change the fadepoint of (Last created floating text) to 2&#46;00<br />                Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - BurnAmount)<br />                Unit - Set life of U to ((Life of U) + HealAmount)<br />                Unit - Set mana of U to ((Mana of U) + BurnAmount)<br />            Else - Actions<br />[/trigger]</p><p>[trigger]<br />Init<br />    Events<br />        Map initialization<br />    Conditions<br />    Actions<br />        Unit - Make TestUnit Invulnerable<br />        Unit Group - Pick every unit in (Units owned by Player 2 (Blue)) and do (Actions)<br />            Loop - Actions<br />                Unit - Set (Picked unit) movement speed to 0&#46;00<br />                Trigger - Add to ManaBurn the event (Unit - (Picked unit) Takes damage)<br />[/trigger]</p><p /><p><br />[trigger]<br />Reg<br />    Events<br />        Unit - A unit enters (Entire map)<br />    Conditions<br />    Actions<br />        Trigger - Add to ManaBurn the event (Unit - (Triggering unit) Takes damage)<br />[/trigger]</p>
回复

使用道具 举报

发表于 2007-1-4 13:36:24 | 显示全部楼层
[trigger]
RPGInitialization
    事件
        地图初始化
    环境
    动作
        可见 - 禁止战争迷雾
        可见 - 禁止黑色阴影
[/trigger]
回复

使用道具 举报

发表于 2007-1-4 15:07:51 | 显示全部楼层
[trigger]
RPGInitialization
    事件
        地图初始化
    环境
        ((触发单位) 是 一座建筑) 等于 TRUE
    动作
        如果条件 (((触发单位) 是 一座建筑) 等于 TRUE) 成立, 那么做 (不做任何动作) 否则[如果不成立]做 (不做任何动作)
        可见 - 禁止战争迷雾
        可见 - 禁止黑色阴影
        如果 (所有条件是成立的) ,那么做 (动作) 否则[如果不成立]做 (动作)
            If - 环境
                ((触发单位) 是 一座建筑) 等于 TRUE
            Then - 动作
            Else - 动作
[/trigger]
回复

使用道具 举报

发表于 2007-1-4 16:07:29 | 显示全部楼层
[trigger]
RPGInitialization
    事件
        地图初始化
    环境
        ((触发单位) 是 一座建筑"") 等于 TRUE
    动作
        如果条件 (((触发单位'''') 是 一座建筑) 等于 TRUE) 成立, 那么做 (不做任何动作) 否则[如果不成立]做 (不做任何动作)
        可见 - 禁止战争迷雾
        可见 - 禁止黑色阴影
        如果 (所有条件是成立的) ,那么做 (动作) 否则[如果不成立]做 (动作)
            If - 环境
                ((触发单位) 是 一座建筑) 等于 TRUE
            Then - 动作
            Else - 动作
[/trigger]
回复

使用道具 举报

发表于 2007-1-4 16:55:38 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2008-4-7 14:32:32 | 显示全部楼层
[trigger]
瀵规垬鍒濆?鍖?
    浜嬩欢
        鍦板浘鍒濆?鍖?
    鏉′欢
    鍔ㄤ綔
        瀵规垬娓告垙 - 浣跨敤瀵规垬鏄煎?璁剧疆
        瀵规垬娓告垙 - 浣跨敤瀵规垬鑻遍泟璁剧疆
        瀵规垬娓告垙 - 缁欓?鍙戣嫳闆勪竴涓?洖鍩庡嵎杞?
        瀵规垬娓告垙 - 璁剧疆鍒濆?璧勬簮
        瀵规垬娓告垙 - 鍒犻櫎宸蹭娇鐢ㄥ紑濮嬬偣闄勮繎鐨勪腑绔嬬敓鐗?
        瀵规垬娓告垙 - 鍒涘缓瀵规垬鍒濆?鍗曚綅
        瀵规垬娓告垙 - 瀵圭數鑴戠帺瀹惰繍琛屽?鎴楢I鑴氭湰
        瀵规垬娓告垙 - 寮哄埗浣跨敤瀵规垬鑳滃埄/澶辫触鏉′欢

[/trigger]
  1. function Trig________________u_Actions takes nothing returns nothing
  2.     call MeleeStartingVisibility(  )
  3.     call MeleeStartingHeroLimit(  )
  4.     call MeleeGrantHeroItems(  )
  5.     call MeleeStartingResources(  )
  6.     call MeleeClearExcessUnits(  )
  7.     call MeleeStartingUnits(  )
  8.     call MeleeStartingAI(  )
  9.     call MeleeInitVictoryDefeat(  )
  10. endfunction
复制代码
回复

使用道具 举报

发表于 2008-4-7 15:00:55 | 显示全部楼层
下面的看懂了,上面个实在是。。。。。。
回复

使用道具 举报

发表于 2008-4-7 15:58:35 | 显示全部楼层
好神奇...
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-1 15:14 , Processed in 0.089530 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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