OK論壇

 找回密碼
 註冊
查看: 1911|回復: 6

卡片常駐技能的腳本怎樣解釋?

 關閉 [複製鏈接]
  • TA的每日心情

    2010-12-13 07:13 AM
  • 簽到天數: 54 天

    連續簽到: 0 天

    [LV.5]常住居民I

    發表於 2009-6-15 01:51:07 | 顯示全部樓層 |閱讀模式
    小弟在腳本內item_db複製出
    虎王卡片的腳本

    4123,Eddga_Card,虎王卡片,6,,10,10,,,,,,,,64,,,,,{ bonus bMaxHPrate,-25; },{ sc_start4 SC_ENDURE,60000,10,0,0,1; },{ sc_end SC_ENDURE; }

    這應該是正服的虎王卡片敵果,其中尾2(紅色部份)的seript好像就是onequip時的效果(霸體1lv常駐)

    核對過後
    SC_ENDURE:霸體的名稱
    最尾的那個1應該就是指技能等級
    想請問大大這個script內的其他語法代表什麼?
    回復

    使用道具 舉報

  • TA的每日心情
    開心
    2024-9-22 07:14 PM
  • 簽到天數: 238 天

    連續簽到: 1 天

    [LV.7]常住居民III

    發表於 2009-6-15 02:04:52 | 顯示全部樓層
    *sc_start         <effect type>,<ticks>,<extra argument>{,<target ID number>};
    *sc_start2         <effect type>,<ticks>,<extra argument>,<percent chance>{,<target ID number>};
    *sc_start4        <effect type>,<ticks>,<value 1>,<value 2>,<value 3>,<value 4>{,<target ID number>};
    *sc_end         <effect type>{,<target ID number>};

    These command bestow a status effect on the invoking character. This command is
    used a lot in the item scripts.

        // This would poison them for 10 min
        sc_start SC_Poison,600000,0;

    Effect type is a number of effect, 'db/const.txt' lists the common (mostly
    negative) status effect types as constants, starting with 'SC_'. You can also
    use this to give someone an effect of a player-cast spell:

        // This will bless someone as if with Bless 10:
        sc_start 10,240000,10;
       
    Extra argument's meaning differs depending on the effect type, for most effects
    caused by a player skill the extra argument means the level of the skill that
    would have been used to create that effect, for others it might have no meaning
    whatsoever. You can actually bless someone with a 0 bless spell level this way,
    which is fun, but weird.

    The target ID number, if given, will cause the status effect to appear on a
    specified character, instead of the one attached to the running script. This has
    not been properly tested.

    'sc_start2' is perfectly equivalent, but unlike 'sc_start', a status change
    effect will only occur with a specified percentage chance. 10000 given as the
    chance is equivalent to a 100% chance, 0 is a zero.

    'sc_start4' is just like sc_start, however it takes four parameters for the
    status change instead of one. What these values are depends on the status
    change in question. For example, elemental armor defense takes the following
    four values:
    - val1 is the first element, val2 is the resistance to the element val1.
    - val3 is the second element, val4 is the resistance to said element.
    eg: sc_start4 SC_DefEle,60000,Ele_Fire,20,Ele_Water,-15;

    'sc_end' will remove a specified status effect. If SC_All is used (-1), it will
    do a complete removal of all statuses (although permanent ones will re-apply).

    You can see the full list of status effects caused by skills in
    'src/map/status.h' - they are currently not fully documented, but most of that
    should be rather obvious.
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情

    2010-12-13 07:13 AM
  • 簽到天數: 54 天

    連續簽到: 0 天

    [LV.5]常住居民I

     樓主| 發表於 2009-6-15 07:58:07 | 顯示全部樓層
    不是看得很明白-_-

        // This would poison them for 10 min
        sc_start SC_Poison,600000(代表tick=使用時間?),0;

        // This will bless someone as if with Bless 10:
        sc_start 10(點解唔寫代號,可以寫數字?),240000,10(最尾果個數字代表lv?);


    - val1 is the first element, val2 is the resistance to the element val1.
    - val3 is the second element, val4 is the resistance to said element.
    eg: sc_start4 SC_DefEle,60000,Ele_Fire,20,Ele_Water,-15;

    虎王卡片只有60000,0,0,1係唔係60000(tick),0(v1,因為=0所以也沒有val2的數值),0(val3,因為=0所以也沒有val4數值),1(lv,寫在所有數值後面就可以?)
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2024-9-22 07:14 PM
  • 簽到天數: 238 天

    連續簽到: 1 天

    [LV.7]常住居民III

    發表於 2009-6-15 08:03:58 | 顯示全部樓層
    他有寫到Lv嗎= =

    他的範例先去弄懂意義吧
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情

    2010-12-13 07:13 AM
  • 簽到天數: 54 天

    連續簽到: 0 天

    [LV.5]常住居民I

     樓主| 發表於 2009-6-15 12:47:45 | 顯示全部樓層
    可是虎王卡片的效果是霸體lv1常駐...因此我以為那個1是指施放等級的意思
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情

    2010-12-13 07:13 AM
  • 簽到天數: 54 天

    連續簽到: 0 天

    [LV.5]常住居民I

     樓主| 發表於 2009-6-15 17:42:39 | 顯示全部樓層
    剛剛在item_db2內試過了

    SC_ENDURE,60000,10,0,0,1

    10後面的那個0應該是代表施放技能的等級,如果打0應該就是施放最高級的意思

    然而小弟又有另一個問題不明白了...小弟想在該技能(常駐霸體)後面加其他技能來常駐,例如加入
    sc_start4 SC_ANGELUS,60000,10,0,0,1;(天障)所有格式都跟霸體的那個一樣
    裝上有虎王卡的裝備後也的確有天障跟霸體一起出現,但天障在1分鐘後就自動消失,而霸體卻一直沒有消失
    小弟也試過修過一下60000的數值,發現把天障腳本的60000改為6000,天障就會在6秒後消失

    總結問題(60000那一個數值對於附加在卡片上的常駐技能是什麼意思?持續時間嗎?為什麼數值一樣,然而霸體不會消失,天障就會消失?60000=60秒後消失,6000=6秒後消失)

    請問有什麼語法可以像虎王卡霸體效果一樣,將永久常駐搜能效果加在卡片上?
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情

    2010-12-13 07:13 AM
  • 簽到天數: 54 天

    連續簽到: 0 天

    [LV.5]常住居民I

     樓主| 發表於 2009-6-20 20:28:16 | 顯示全部樓層
    有大大有以上的經驗可以分享一下嗎@_@"?
    回復 支持 反對

    使用道具 舉報

    您需要登錄後才可以回帖 登錄 | 註冊

    本版積分規則

    Archiver|手機版|小黑屋|OK討論區

    GMT+8, 2025-6-29 08:57 PM , Processed in 0.282455 second(s), 20 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回復 返回頂部 返回列表