Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RMMV RMMV ขอสคริปต์ที่สวมใส่ไอเท็มแล้วจะทำให้ได้สกิล
#1
สมัยใช้ RMXP ชอบสคริปต์นี้มากตรงที่ว่ามันง่ายและให้ผลดีมาก คือสามารถเรียนรู้สกิลจากการใส่ไอเท็มได้

อันนี้คือสคริปต์ที่ผมใช้ในเกม "Fomar Armor Skills"
Quote:class Game_Actor < Game_Battler

Armor_Skills = {
# 1=>[{'l'=>1, 's'=>2}, {'l'=>5, 's'=>3}],
# 2=>[{'l'=>1, 's'=>288}, {'l'=>5, 's'=>1}],

391=>[{'l'=>1, 's'=>74}],
392=>[{'l'=>1, 's'=>75}],
393=>[{'l'=>1, 's'=>78}],
394=>[{'l'=>1, 's'=>81}],
395=>[{'l'=>1, 's'=>84}],
396=>[{'l'=>1, 's'=>87}],
397=>[{'l'=>1, 's'=>90}],
398=>[{'l'=>1, 's'=>93}],
399=>[{'l'=>1, 's'=>96}],
400=>[{'l'=>1, 's'=>99}],
401=>[{'l'=>1, 's'=>102}],
402=>[{'l'=>1, 's'=>105}],
403=>[{'l'=>1, 's'=>108}],

409=>[{'l'=>1, 's'=>115}],
410=>[{'l'=>1, 's'=>116}],
411=>[{'l'=>1, 's'=>117}],
412=>[{'l'=>1, 's'=>122}],
413=>[{'l'=>1, 's'=>123}],
414=>[{'l'=>1, 's'=>125}],
415=>[{'l'=>1, 's'=>127}],
416=>[{'l'=>1, 's'=>130}],

420=>[{'l'=>1, 's'=>145}],
421=>[{'l'=>1, 's'=>147}],
422=>[{'l'=>1, 's'=>149}],
423=>[{'l'=>1, 's'=>151}],
424=>[{'l'=>1, 's'=>153}],
425=>[{'l'=>1, 's'=>155}],

429=>[{'l'=>1, 's'=>176}],
430=>[{'l'=>1, 's'=>178}],
431=>[{'l'=>1, 's'=>180}],
432=>[{'l'=>1, 's'=>182}],
433=>[{'l'=>1, 's'=>184}],
434=>[{'l'=>1, 's'=>185}],
435=>[{'l'=>1, 's'=>186}],
436=>[{'l'=>1, 's'=>187}],
437=>[{'l'=>1, 's'=>189}],
438=>[{'l'=>1, 's'=>190}],
439=>[{'l'=>1, 's'=>191}],
440=>[{'l'=>1, 's'=>192}],

444=>[{'l'=>1, 's'=>223}],
445=>[{'l'=>1, 's'=>225}],
446=>[{'l'=>1, 's'=>227}],
447=>[{'l'=>1, 's'=>229}],
448=>[{'l'=>1, 's'=>231}],
449=>[{'l'=>1, 's'=>233}],
450=>[{'l'=>1, 's'=>235}],
451=>[{'l'=>1, 's'=>239}],
452=>[{'l'=>1, 's'=>240}],
453=>[{'l'=>1, 's'=>241}],
454=>[{'l'=>1, 's'=>242}],
455=>[{'l'=>1, 's'=>244}],
456=>[{'l'=>1, 's'=>246}],
457=>[{'l'=>1, 's'=>248}],
458=>[{'l'=>1, 's'=>250}],
=begin
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
00=>[{'l'=>1, 's'=>00}],
=end
}

def skills
skills = @skills.clone
unless Armor_Skills[@armor1_id] == nil
for skill in Armor_Skills[@armor1_id]
if skill['l'] <= self.level
skills.push(skill['s'])
end
end
end
return skills
end

def skill_learn?(skill_id)
known_skills = self.skills
return known_skills.include?(skill_id)
end

end

อยากรบกวนท่านๆที่เก่งสคริปต์ JS พอจะทำเป็น Plugin สำหรับ RMMV ให้ใช้กันได้หรือไม่ จะขอบคุณมากๆเลยครับ และคิดว่าจะมีประโยชน์กับนักสร้างเกมคนอื่นๆมากพอสมควร Smile
The World of Our Own
Reply
#2
ผมได้เขียน plugin ในเวอร์ชัน MV ให้แล้วนะครับ ไม่รู้ว่าตามที่ต้องการหรือไม่ และจะถูกใจหรือเปล่า
เข้าไปที่ http://irpg.in.th/thread-2644.html

Derp Derp
[-] The following 2 users say Thank You to splendith for this post:
  • clashlucifer, Ivan_GilDong
Reply
#3
(10-31-2015, 12:20 AM)splendith Wrote: ผมได้เขียน plugin ในเวอร์ชัน MV ให้แล้วนะครับ ไม่รู้ว่าตามที่ต้องการหรือไม่ และจะถูกใจหรือเปล่า
เข้าไปที่ http://irpg.in.th/thread-2644.html

Derp Derp

โอ้วว ขอบคุณมากครับ
The World of Our Own
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)