OK論壇

 找回密碼
 註冊
查看: 1740|回復: 4

如何在一個地圖上建立人行走的範圍

 關閉 [複製鏈接]
  • TA的每日心情
    擦汗
    2011-5-15 02:19 PM
  • 簽到天數: 14 天

    連續簽到: 0 天

    [LV.3]偶爾看看II

    發表於 2011-1-5 17:42:38 | 顯示全部樓層 |閱讀模式
    如何在一個地圖上建立人行走的範圍?

    EX

    一個很大很空曠的地圖  我想限定人物在 這個地圖的某一個區塊活動而已

    不能出去這個範圍外   就是把它框起來的意思


    怎麼用呢?

    評分

    參與人數 1積分 -30 現金 -30 積極性 -30 收起 理由
    goddameit -30 -30 -30 發問的問題,三天內發問者沒有做出回應

    查看全部評分

    回復

    使用道具 舉報

  • TA的每日心情
    郁悶
    2018-7-3 09:50 AM
  • 簽到天數: 144 天

    連續簽到: 1 天

    [LV.7]常住居民III

    發表於 2011-1-5 17:54:19 | 顯示全部樓層
    本帖最後由 TheFame 於 2011-1-5 05:56 PM 編輯
    如何在一個地圖上建立人行走的範圍?

    EX

    一個很大很空曠的地圖  我想限定人物在 這個地圖的某一個區塊 ...
    lovetoy999 發表於 2011-1-5 05:42 PM




    自己畫一個地圖就好了!
    http://www.okayro.com/search.php?searchid=22&orderby=lastpost&ascdesc=desc&searchsubmit=yes&page=1


    PS.EA就是  不知道幾號  有三轉
    (私服版號 你連自己版號抓多少都不知? 而且意思也搞錯)
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2011-1-5 18:06:06 | 顯示全部樓層
    剩下自己研究

    *setcell "<map name>",<x1>,<y1>,<x2>,<y2>,<type>,<flag>;

    Each map cell has several 'flags' that specify the properties of that cell.
    These include terrain properties (walkability, shootability, presence of water),
    skills (basilica, land protector, ...) and other (NPC nearby, no vending, ...).
    Each of these can be 'on' or 'off'. Together they define a cell's behavior.

    This command lets you alter these flags for all map cells in the specified
    (x1,y1)-(x2,y2) rectangle. The 'flag' can be 0 or 1 (0:clear flag, 1:set flag).
    The 'type' defines which flag to modify. Possible options include cell_walkable,
    cell_shootable, cell_basilica. For a full list, see const.txt.

    Example:

            setcell "arena",0,0,300,300,cell_basilica,1;
            setcell "arena",140,140,160,160,cell_basilica,0;
            setcell "arena",135,135,165,165,cell_walkable,0;
            setcell "arena",140,140,160,160,cell_walkable,1;

    This will add a makeshift ring into the center of the map. The ring will be
    surrounded by a 5-cell wide 'gap' to prevent interference from outside, and
    the rest of the map will be marked as 'basilica', preventing observers from
    casting any offensive skills or fighting among themselves. Note that the wall
    will not be shown nor known client-side, which may cause movement problems.

    Another example:

    OnBarricadeDeploy:
            setcell "schg_cas05",114,51,125,51,cell_walkable,0;
            end;
    OnBarricadeBreak:
            setcell "schg_cas05",114,51,125,51,cell_walkable,1;
            end;

    This could be a part of the WoE:SE script, where attackers are not allowed
    to proceed until all barricades are destroyed. This script would place and
    remove a nonwalkable row of cells after the barricade mobs.
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    擦汗
    2011-5-15 02:19 PM
  • 簽到天數: 14 天

    連續簽到: 0 天

    [LV.3]偶爾看看II

     樓主| 發表於 2011-1-5 19:28:38 | 顯示全部樓層
    我是很新的新手  不懂 大大哪是啥意思@@
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2011-1-5 19:36:00 | 顯示全部樓層
    回復 4# lovetoy999

    那你不要用

    改以花積分懸賞現成的
    回復 支持 反對

    使用道具 舉報

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

    本版積分規則

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

    GMT+8, 2025-7-1 08:00 AM , Processed in 0.053959 second(s), 26 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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