| About the script... | |
|
|
Pengirim | Message |
---|
mocha.frappe Newbie
Posts : 52 Thanked : 0 Engine : RMVX
| Subyek: About the script... 2010-03-24, 01:12 | |
| Mengenai script yg aq dapat dari kk shikami... - Spoiler:
- Code:
-
#============================================================================== # ++ Weapon Enabled Skills ver. 1.10 ++ # Script by ParaDog # http://2d6.parasite.jp/ #------------------------------------------------------------------------------ # Skills can now be available if a weapon is equipped. #------------------------------------------------------------------------------ # [Instructions] # Create elements like "sword", "spear", and so on that applies to every type # of weapon. Apply the attributes to every suitable weapon. # # Tag/Apply the same element to the skill or skills of your choice. # # If a weapon is equipped, learned skills are made available. But if the wea- # pon is not equipped, the skill(s) with matching elements are made unavailable. #==============================================================================
module PARA_WSKL # WEAPON RESTRICTED ELEMENT # Skills with this tag are only available if no weapon is equipped. # (Ensure that these skills have extremely low PDEF-F scores... '0' is best.) NO_WEAPON_NAME = "NoWeapon"
# SKILL RESTRICTING ELEMENT # Only skills with this element tag are available. # Any skill without this element is disabled. Also, skills with this element # prevents disabling through the NO_WEAPON_NAME and VARIABLE_WEAPON elements. VARIABLE_SKILL = "Skill" # WEAPON PERMITTING ELEMENT # If a weapon and skill both share this element, the skill becomes available. # If a skill has two element attributes, a weapon with at least one of these # elements will make the skill available. VARIABLE_WEAPON = ["Slash", "Pierce", "Strike"]
# VISIBILITY OPTION # (0: Normal / 1: Restricted skills hidden in combat / 2: Restricted skills hidden) VISIBLE_TYPE = 0
end
# End of the config section #------------------------------------------------------------------------------
#============================================================================== # ** Game_Actor #------------------------------------------------------------------------------ # This class handles the actor. It's used within the Game_Actors class # ($game_actors) and refers to the Game_Party class ($game_party). #==============================================================================
class Game_Actor < Game_Battler #-------------------------------------------------------------------------- # * Determine Usable Skills # skill_id : skill ID #-------------------------------------------------------------------------- def skill_can_use?(skill_id) if not skill_learn?(skill_id) return false end if not skill_w_can_use?(skill_id) return false end return super end #-------------------------------------------------------------------------- # * Determine Usable Weapon Skills # skill_id : skill ID #-------------------------------------------------------------------------- def skill_w_can_use?(skill_id) if not skill_learn?(skill_id) return false end # Does attribute of skill and the weapon agree even at one? if $data_skills[skill_id].element_set & self.element_set != [] bool = true else # Attribute ID of weapon in name weapon_elements_name = [] for element_id in self.element_set weapon_elements_name.push($data_system.elements[element_id]) end # Attribute ID of skill in name skill_elements_name = [] for element_id in $data_skills[skill_id].element_set skill_elements_name.push($data_system.elements[element_id]) end # The skill attribute which is not restricted by the weapon if skill_elements_name.include?(PARA_WSKL::VARIABLE_SKILL) and PARA_WSKL::VARIABLE_SKILL != "" bool = true end # The weapon attribute which does not restrict skill if weapon_elements_name.include?(PARA_WSKL::VARIABLE_WEAPON) and PARA_WSKL::VARIABLE_WEAPON != "" bool = true end # Bare hand skill if skill_elements_name.include?(PARA_WSKL::NO_WEAPON_NAME) and @weapon_id == 0 bool = true end end bool = bool == nil ? false : bool return bool end end
#============================================================================== # ** Window_Skill #------------------------------------------------------------------------------ # This window displays usable skills on the skill and battle screens. #==============================================================================
class Window_Skill < Window_Selectable #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh if self.contents != nil self.contents.dispose self.contents = nil end @data = [] for i in 0...@actor.skills.size skill = $data_skills[@actor.skills[i]] case PARA_WSKL::VISIBLE_TYPE when 1 if skill != nil and !(!@actor.skill_w_can_use?(skill.id) and $game_temp.in_battle) @data.push(skill) end when 2 if skill != nil and @actor.skill_w_can_use?(skill.id) @data.push(skill) end else if skill != nil @data.push(skill) end end end # If item count is not 0, make a bit map and draw all items @item_max = @data.size if @item_max > 0 self.contents = Bitmap.new(width - 32, row_max * 32) for i in 0...@item_max draw_item(i) end end end end
So far so good, UNTIL i found something's wrong =P (I guess...) Script diatas kan untuk mengadakan skill yang telah dipelajari sehingga dapat dipakai di battle, tapi bagaimana dengan skill yang tanpa elemen? (Seperti healing & buffing spells) Ketika saya buat tanpa elemen ternyata tidak bisa dipakai... Please, help... XP | |
|
| |
rusted_71 Scripter Karatan
Posts : 392 Thanked : 11 Engine : RMVX Skill : Beginner Type : Scripter
| Subyek: Re: About the script... 2010-03-24, 05:03 | |
| gw coba jawab ya... - Code:
-
module PARA_WSKL # WEAPON RESTRICTED ELEMENT # Skills with this tag are only available if no weapon is equipped. # (Ensure that these skills have extremely low PDEF-F scores... '0' is best.) NO_WEAPON_NAME = "NoWeapon"
# SKILL RESTRICTING ELEMENT # Only skills with this element tag are available. # Any skill without this element is disabled. Also, skills with this element # prevents disabling through the NO_WEAPON_NAME and VARIABLE_WEAPON elements. VARIABLE_SKILL = "Skill" # WEAPON PERMITTING ELEMENT # If a weapon and skill both share this element, the skill becomes available. # If a skill has two element attributes, a weapon with at least one of these # elements will make the skill available. VARIABLE_WEAPON = ["Slash", "Pierce", "Strike"]
# VISIBILITY OPTION # (0: Normal / 1: Restricted skills hidden in combat / 2: Restricted skills hidden) VISIBLE_TYPE = 0 end
coba cek deh configurationnya... kan ada 3 bagian tuh WEAPON RESTRICTED ELEMENT kamu bikin element "NoWeapon", trus setiap skill yang di tag nih element bisa di pake tanpa equip weapon yang dipake (klo di pake malah ilang tuh skill) SKILL RESTRICTING ELEMENT kamu bikin element "Skill", trus setiap skill yang di tag nih element bisa di pake di battle tanpa merhatiiin 2 bagian yang laen, tapi klo ga di tag ama element ini skill itu ga bisa di pake dan klo mo make mesti liat 2 bagian yang laen WEAPON PERMITTING ELEMENT nih bagian element2 yang mau di bikin ambil contoh aja kamu buat ["Sword","Spear"], tar setiap skill yang di tag ama element2 yang ada di bagian ini bakal dicocokin sama element weapon yang lagi di equip, klo sama ya bisa di pake , klo beda ya ga bisa... Cth Skill: Heal di tag element "Skill" Spear Trust di tag element "Spear" Knuckle Dust di tag element "NoWeapon" tuh skill "Heal" bs di pake terus, klo Spear Trust bisa di pake klo pake weapon yang element "Spear" juga, klo Knuckle Dust cuba bisa di pake klo charnya ga pake weapon... dah gw coba kok... cobain deh | |
|
| |
mocha.frappe Newbie
Posts : 52 Thanked : 0 Engine : RMVX
| Subyek: Re: About the script... 2010-03-24, 09:19 | |
| OK... thx ^^
Tapi kalau misalkan mau buat skill misalnya:
Mass Fire: Fire damage to all enemies (Must equip staff)
Jadi configuration-nya gmn? Apakah harus centang elemen strike juga? (Staff kan element strike)
thx b4 | |
|
| |
rusted_71 Scripter Karatan
Posts : 392 Thanked : 11 Engine : RMVX Skill : Beginner Type : Scripter
| Subyek: Re: About the script... 2010-03-24, 13:21 | |
| ya centang strike aja... tapi tar firenya ga bisa dipake klo ga pake staff... (pan katanya mang "must equip staff"?) OOT: klo kk ngerasa postingan saya ngebantu, saya rela kk klik tuh tanda tambah di kanan atas postingan saya... hehehe | |
|
| |
mocha.frappe Newbie
Posts : 52 Thanked : 0 Engine : RMVX
| Subyek: Re: About the script... 2010-03-24, 18:16 | |
| Tapi ntar jadi dual element dunk? =P
OOT: Klik tanda tambah dimana ya? =) | |
|
| |
rusted_71 Scripter Karatan
Posts : 392 Thanked : 11 Engine : RMVX Skill : Beginner Type : Scripter
| Subyek: Re: About the script... 2010-03-24, 18:48 | |
| ya satu aja... yang skill ga usah di centang... jadi tar firenya jadi skill based weapon...
tambahan OOT: di kanan atas setiap post(bukan window)... di bawah tombol quote, edit, !!!, !!! | |
|
| |
mocha.frappe Newbie
Posts : 52 Thanked : 0 Engine : RMVX
| Subyek: Re: About the script... 2010-03-24, 19:21 | |
| Jadi maksudnya yang di centang di bagian weapon aj...? | |
|
| |
rusted_71 Scripter Karatan
Posts : 392 Thanked : 11 Engine : RMVX Skill : Beginner Type : Scripter
| Subyek: Re: About the script... 2010-03-24, 19:36 | |
| zzzzz....
tuh skill fire di samain confignya kayak skill Spear Thrust di cnth gw yang tas... bukan di samain ama contoh yang Heal...
Fire => elementnya strike
trus semua staff juga elementnya strike...
jadi tar tuh fire cuma bisa di pake klo charnya make staff...
klo elementnya di set jadi "skill" ama "Strike"... yang dianggep cuma element "skill"nya doank... kan "Also, skills with this element prevents disabling through the NO_WEAPON_NAME and VARIABLE_WEAPON elements."
klo Heal ama Buff atau skill2 laen yang mau di set bisa dipake tanpa liat weapon yang di pake cuma centang element "skill" pada skill heal, buff atau skill2 itu (weapon ga usah di centang) | |
|
| |
mocha.frappe Newbie
Posts : 52 Thanked : 0 Engine : RMVX
| Subyek: Re: About the script... 2010-03-24, 20:52 | |
| O~K... Ud aq set jadi kyq contoh... Tapi monster yg kebal ama fire kuq jadi gaq kebal lagi ya? (Apa gara2 dual element ?) | |
|
| |
rusted_71 Scripter Karatan
Posts : 392 Thanked : 11 Engine : RMVX Skill : Beginner Type : Scripter
| Subyek: Re: About the script... 2010-03-24, 23:27 | |
| klo menurut gw element yang laen, selain element yang diset di confignya itu ga bakal ngaruh ke penggunaan skill...
jadi klo kamu set
FIRE >> elementnya "Strike" ama "Fire"
jadi tuh skill cuma bisa di pake klo char itu make staff (Strike), trus serangannya tar berelement "Fire"... trus soal kekebalan firenya, coba cek lagi... apa monsternya di set element firenya jadi "D" atau "E"? | |
|
| |
mocha.frappe Newbie
Posts : 52 Thanked : 0 Engine : RMVX
| Subyek: Re: About the script... 2010-03-24, 23:39 | |
| Udh... Tapi damage-nya tetap normal... Disetting ke F juga tetap kena damage... (Harusnya kan jadi Drain) | |
|
| |
rusted_71 Scripter Karatan
Posts : 392 Thanked : 11 Engine : RMVX Skill : Beginner Type : Scripter
| Subyek: Re: About the script... 2010-03-25, 09:35 | |
| wah klo itu mungkin masalah script laen...
soalnya gw liat di scriptnya itu ga ada tuh ngubah2 damage ke element...
coba deh liat script laen yang kamu pake... | |
|
| |
mocha.frappe Newbie
Posts : 52 Thanked : 0 Engine : RMVX
| Subyek: Re: About the script... 2010-03-25, 13:44 | |
| Emm... Script yang mananya y? =P
Soalnya aq gaq ubah2 script yang lain c... | |
|
| |
reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Trophies
Awards:
| Subyek: Re: About the script... 2010-03-25, 13:57 | |
| skrip apa aja yang dipake di game kamu selain yg ini ? mungkin kesalahannya di script itu deh bener kata ted kayaknya g ngaruhin element damage | |
|
| |
mocha.frappe Newbie
Posts : 52 Thanked : 0 Engine : RMVX
| Subyek: Re: About the script... 2010-03-25, 16:53 | |
| Hmm... Crafting, Shop Interface, Cursor, Battle Results, Custom Menu sama yang ini =)
Tapi kyqnya ga ada yang berhubungan sama element d... =( | |
|
| |
Sponsored content
| Subyek: Re: About the script... | |
| |
|
| |
| About the script... | |
|