UID289955
帖子
精華
主題
積分1837
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限10
註冊時間2010-10-16
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 怒 2016-10-31 12:22 PM |
---|
簽到天數: 218 天 連續簽到: 1 天 [LV.7]常住居民III
|
本帖最後由 isabel 於 2011-4-6 08:30 AM 編輯
以下使用了OnPCStatCalcEvent
打算改成個別的能力加成
不過出來的是一次過全部加成(NPC001~NPC018)
是不是有地方改錯了??
測試了好多次都是一樣
- - script NPC001 -1,{
- OnPCStatCalcEvent:
- if(opop1<50)
- bonus bDef,100;
- end;
- }
- - script NPC002 -1,{
- OnPCStatCalcEvent:
- if(opop1>=51&&opop1<100)
- bonus bDef,20;
- end;
- }
- - script NPC003 -1,{
- OnPCStatCalcEvent:
- if(opop1>=101&&opop1<300)
- bonus bDef,30;
- end;
- }
- - script NPC004 -1,{
- OnPCStatCalcEvent:
- if(opop1>=301&&opop1<600)
- bonus bDef,40;
- end;
- }
- - script NPC005 -1,{
- OnPCStatCalcEvent:
- if(opop1>=601&&opop1<1200)
- bonus bDef,50;
- bonus bVit,1;
- end;
- }
- - script NPC006 -1,{
- OnPCStatCalcEvent:
- if(opop1>=1201&&opop1<2000)
- bonus bDef,50;
- bonus bVit,2;
- end;
- }
- - script NPC007 -1,{
- OnPCStatCalcEvent:
- if(opop1>=2001&&opop1<3200)
- bonus bDef,50;
- bonus bVit,3;
- end;
- }
- - script NPC008 -1,{
- OnPCStatCalcEvent:
- if(opop1>=3201&&opop1<5000)
- bonus bDef,50;
- bonus bStrVitDex,3;
- end;
- }
- - script NPC009 -1,{
- OnPCStatCalcEvent:
- if(opop1>=5001&&opop1<8000)
- bonus bDef,50;
- bonus bStrVitDex,4;
- end;
- }
- - script NPC010 -1,{
- OnPCStatCalcEvent:
- if(opop1>=8001&&opop1<12000)
- bonus bDef,50;
- bonus bStrVitDex,5;
- end;
- }
- - script NPC011 -1,{
- OnPCStatCalcEvent:
- if(opop1>=12001&&opop1<18000)
- bonus bDef,50;
- bonus bStrVitDex,5;
- bonus bAllStats,1;
- end;
- }
- - script NPC012 -1,{
- OnPCStatCalcEvent:
- if(opop1>=18001&&opop1<25000)
- bonus bDef,65;
- bonus bStrVitDex,5;
- bonus bAllStats,2;
- end;
- }
- - script NPC013 -1,{
- OnPCStatCalcEvent:
- if(opop1>=25001&&opop1<35000)
- bonus bDef,65;
- bonus bStrVitDex,5;
- bonus bAllStats,3;
- end;
- }
- - script NPC014 -1,{
- OnPCStatCalcEvent:
- if(opop1>=35001&&opop1<50000)
- bonus bDef,65;
- bonus bStrVitDex,5;
- bonus bAllStats,4;
- end;
- }
- - script NPC015 -1,{
- OnPCStatCalcEvent:
- if(opop1>=50001&&opop1<100000)
- bonus bDef,75;
- bonus bStrVitDex,5;
- bonus bAllStats,5;
- end;
- }
- - script NPC016 -1,{
- OnPCStatCalcEvent:
- if(opop1>=100001&&opop1<250000)
- bonus bDef,90;
- bonus bStrVitDex,5;
- bonus bAllStats,6;
- end;
- }
- - script NPC017 -1,{
- OnPCStatCalcEvent:
- if(opop1>=250001&&opop1<1000000)
- bonus bDef,100;
- bonus bStrVitDex,5;
- bonus bAllStats,7;
- end;
- }
- - script NPC018 -1,{
- OnPCStatCalcEvent:
- if(opop1>=1000001&&opop1<10000000)
- bonus bDef,150;
- bonus bStrVitDex,5;
- bonus bAllStats,10;
- end;
- }
複製代碼 |
|