UID301384
帖子
精華
主題
積分6857
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限20
註冊時間2011-2-26
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 慵懶 2020-1-3 10:45 PM |
---|
簽到天數: 963 天 連續簽到: 1 天 [LV.10]以壇為家III
|
本帖最後由 美美美美美 於 2016-2-11 09:49 AM 編輯
腳本:
http://okayro.com/forum.php?mod= ... hlight=%B3%A8%B3%BD
設定:- // 釣竿的釣魚經驗加成 ( +n )
- setarray $FishingEquipExp[0], 0, 0, 1 ;
複製代碼 問題部分:- function script Fishing_Exp {
- set FishingNowExp, FishingNowExp + 1 + $FishingEquipExp[ FishingEquip - 1 ] ;
- if ( FishingNowExp >= $FishingExpMax[ FishingLevel ] ) {
- set FishingLevel, FishingLevel + 1 ;
- set FishingNowExp, 0 ;
- dispbottom "釣魚等級提升至 " + FishingLevel + "。" ;
- specialeffect2 410 ;
- } // if
- return ;
- }
複製代碼 開始後出現:
[警告]: script:getelementofarray: 編號超過範圍 (-1)
[調試]: 數據: 變量名='$FishingEquipExp' index=0
無法增加EXP後腳本就沒有反應
請問如何解決?
========
2F 後面的值+1 就能解決 |
|