|
| (ask) cara melimitasi pemakai POTION? | |
| 2011-11-20, 16:29 | (ask) cara melimitasi pemakai POTION? |
---|
pram12345 Newbie
Posts : 59 Thanked : 1 Engine : RMVX Skill : Very Beginner Type : Databaser
| kakak saya mau tanya lagi T_T mohon pencerahannya... jadi gini, kan saya bikin potion, sebuat saja "air suci" dimana deskripsinya adalah sbg berikut... AIR SUCI menambah 5000 HP dan sbg info, karakter dalam gameku ada 3, sebut saja si anu, una, sama nau.... Well, ada yang tau nggak? gimana caranya agar nih AIR SUCI hanya dapat dipakai oleh si Anu saja? jadi si una sama nau nggak bisa pakai... mohon pencerahanya T_T makasih ^^ |
| | | 2011-11-20, 18:46 | Re: (ask) cara melimitasi pemakai POTION? |
---|
bradhawk Admin
Posts : 637 Thanked : 8 Skill : Beginner
| ini ada scriptnya, hasil nge-RIP dari Tons of Addons-nya Blizzard .. tapi scripter aslinya Fantastist .. - Code:
-
#============================================================================== # ** Actor-specific Item Usability #------------------------------------------------------------------------------ # by Fantasist # Version 1.0 # 21-Nov-2008 #------------------------------------------------------------------------------ #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= # - code reviewed, optimized, integrated into Tons of Add-ons, freed from # potential bugs and beta tested by Blizzard # - this add-on is part of Tons of Add-ons with full permission of the original # author(s) #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= #------------------------------------------------------------------------------ # Version History: # # v1.0 - First release #------------------------------------------------------------------------------ # Description: # # This scriptlet enables you to define which items can't be consumed by # each actor. For example, actor ID 4 (who maybe a robot) cannot use # "Potion". Similarly, actor ID 1 (Arshes) cannot consume "Recharge Cell". #------------------------------------------------------------------------------ # Compatibility: # # - Should be compatible with most scripts. #------------------------------------------------------------------------------ # Instructions: # # Place this below "Scene_Debug" and above "Main" #------------------------------------------------------------------------------ # Configuration: # # Scroll down and you'll find the configuration. # # The main syntax is: # # when ACTOR_ID then [IDs of all items which this actor CAN'T use] # # Examples: # # when 1 then [1, 2] # Arshes can't use "Potion" and "High Potion". # # when 7 then [10, 11, 12] # Gloria can't use "Full Tonic", "Antidote" and # # "Dispell Herb". # # NOTE: For all actors without a configuration, items are usable by default. # So if Basil can use all items, then you don't need to configure for # ID 2. #------------------------------------------------------------------------------ # Issues: # # None that I know of. #------------------------------------------------------------------------------ # Credits and Thanks: # # Credits: Fantasist, for making this # Thanks: Spoofus, for requesting this #------------------------------------------------------------------------------ # Notes: # # If you have any problems or suggestions, you can find me at: # # - www.chaos-project.com # - www.quantumcore.forumotion.com # # Enjoy ^_^ #============================================================================
#============================================================================== # * module FTSConfigs #==============================================================================
module FTSConfigs def self.item_can_consume?(actor_id, item_id) nonusable_item_ids = case actor_id #========================================================================== # * CONFIG BEGIN #========================================================================== when 1 then [1] when 2 then [2] # when ACTOR_ID then [IDs of all items which this actor CAN'T use] #========================================================================== # * CONFIG END #========================================================================== else [] end return !nonusable_item_ids.include?(item_id) end end
#============================================================================== # * Game_Battler #==============================================================================
class Game_Battler alias item_effect_actoritem_override item_effect def item_effect(item) if self.is_a?(Game_Actor) return false if !FTSConfigs.item_can_consume?(self.id, item.id) end return item_effect_actoritem_override(item) end end |
| | | 2011-11-20, 19:25 | Re: (ask) cara melimitasi pemakai POTION? |
---|
Aegis Legendary
Posts : 2152 Thanked : 56 Engine : Multi-Engine User Skill : Very Beginner Type : Artist
Awards:
| tapi Air Sucinya subjektif ya masa mau nyembuhin malah milih2 orang |
| | | 2011-11-21, 04:21 | Re: (ask) cara melimitasi pemakai POTION? |
---|
pram12345 Newbie
Posts : 59 Thanked : 1 Engine : RMVX Skill : Very Beginner Type : Databaser
| kk brad... makasih buanyak ^^ btw, sy mau nanya... maksudnya ACTOR ID dan ITEM ID tuh "namanya" apa "nomornya"??? trus jika misal ITEMnya lebih dr 1 dipisahkan pake apa kk??? |
| | | 2011-11-21, 04:40 | Re: (ask) cara melimitasi pemakai POTION? |
---|
hyperkudit Pahlawan Super
Posts : 2288 Thanked : 30 Engine : RMXP Skill : Very Beginner Type : Artist
Awards:
| ijin jawab.. ID itu = nomer/angka yg mewakili actor sama itemnya... Biasanya ada di depan nama, dan berurutan posisinya di database. Untuk memisahkan antar id satu dengan yang lain biasanya menggunakan tanda koma ( , ) |
| | | 2011-11-21, 04:40 | Re: (ask) cara melimitasi pemakai POTION? |
---|
shikami Member 1000 Konsep
Posts : 3744 Thanked : 31 Engine : Multi-Engine User Skill : Beginner Type : Developer
Awards:
| konfirmasi dulu,ente pake rmxp apa rmvx nih? kalo rmxp sih silahkan pake script yang dipost si brad,klo bkan ya cari lg |
| | | 2011-11-21, 05:09 | Re: (ask) cara melimitasi pemakai POTION? |
---|
pram12345 Newbie
Posts : 59 Thanked : 1 Engine : RMVX Skill : Very Beginner Type : Databaser
| kk brad... udah tak coba... tapi tetep nggak bisa... gimana nih T_T ini kodeku... - Spoiler:
#============================================================================== # ** Actor-specific Item Usability #------------------------------------------------------------------------------ # by Fantasist # Version 1.0 # 21-Nov-2008 #------------------------------------------------------------------------------ #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= # - code reviewed, optimized, integrated into Tons of Add-ons, freed from # potential bugs and beta tested by Blizzard # - this add-on is part of Tons of Add-ons with full permission of the original # author(s) #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= #------------------------------------------------------------------------------ # Version History: # # v1.0 - First release #------------------------------------------------------------------------------ # Description: # # This scriptlet enables you to define which items can't be consumed by # each actor. For example, actor ID 4 (who maybe a robot) cannot use # "Potion". Similarly, actor ID 1 (Arshes) cannot consume "Recharge Cell". #------------------------------------------------------------------------------ # Compatibility: # # - Should be compatible with most scripts. #------------------------------------------------------------------------------ # Instructions: # # Place this below "Scene_Debug" and above "Main" #------------------------------------------------------------------------------ # Configuration: # # Scroll down and you'll find the configuration. # # The main syntax is: # # when ACTOR_ID then [IDs of all items which this actor CAN'T use] # # Examples: # # when 1 then [1, 2] # Arshes can't use "Potion" and "High Potion". # # when 7 then [10, 11, 12] # Gloria can't use "Full Tonic", "Antidote" and # # "Dispell Herb". # # NOTE: For all actors without a configuration, items are usable by default. # So if Basil can use all items, then you don't need to configure for # ID 2. #------------------------------------------------------------------------------ # Issues: # # None that I know of. #------------------------------------------------------------------------------ # Credits and Thanks: # # Credits: Fantasist, for making this # Thanks: Spoofus, for requesting this #------------------------------------------------------------------------------ # Notes: # # If you have any problems or suggestions, you can find me at: # # - www.chaos-project.com # - www.quantumcore.forumotion.com # # Enjoy ^_^ #============================================================================
#============================================================================== # * module FTSConfigs #==============================================================================
module FTSConfigs def self.item_can_consume?(actor_id, item_id) nonusable_item_ids = case actor_id #========================================================================== # * CONFIG BEGIN #========================================================================== when 19 then [51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,70, 71, 72, 73, 74, 75 , 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186] when 20 then [51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,70, 71, 72, 73, 74, 75 , 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186] when 21 then [51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,70, 71, 72, 73, 74, 75 , 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186] when 22 then [51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,70, 71, 72, 73, 74, 75 , 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186] when 23 then [51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,70, 71, 72, 73, 74, 75 , 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186] # when ACTOR_ID then [IDs of all items which this actor CAN'T use] #========================================================================== # * CONFIG END #========================================================================== else [] end return !nonusable_item_ids.include?(item_id) end end
#============================================================================== # * Game_Battler #==============================================================================
class Game_Battler alias item_effect_actoritem_override item_effect def item_effect(item) if self.is_a?(Game_Actor) return false if !FTSConfigs.item_can_consume?(self.id, item.id) end return item_effect_actoritem_override(item) end end
mohon pencerhannya T_T |
| | | 2011-11-21, 05:10 | Re: (ask) cara melimitasi pemakai POTION? |
---|
pram12345 Newbie
Posts : 59 Thanked : 1 Engine : RMVX Skill : Very Beginner Type : Databaser
| weee pantesan nggak bisa T_T sy pake VX kk... haduh... ada nggak ya scriptnya T_T sy buener2 butuh kk... saya mohon T______________________T |
| | | 2011-11-21, 09:22 | Re: (ask) cara melimitasi pemakai POTION? |
---|
fredy Senior
Posts : 612 Thanked : 4 Engine : RMVX
| Maaf Anda double post Dan Benar Itu Script XP |
| | | 2011-11-21, 09:56 | Re: (ask) cara melimitasi pemakai POTION? |
---|
hart Senior
Posts : 805 Thanked : 38 Engine : Other Skill : Very Beginner Type : Developer
| IMO bikin aja air suci itu item yg gk bisa dipakai. terus bikin skill khusus untuk si anu, skill tersebut menambah HP 5000 dan mengkonsumsi 1 air suci... |
| | | 2011-11-21, 10:30 | Re: (ask) cara melimitasi pemakai POTION? |
---|
McPherson Senior
Posts : 777 Thanked : 7 Engine : Multi-Engine User Skill : Intermediate Type : Mapper
Awards:
| Nah, bnar tuh kata Om Hart, kwokwokwo.. baru jg mw kasi tw.. |
| | | 2011-11-21, 13:33 | Re: (ask) cara melimitasi pemakai POTION? |
---|
pram12345 Newbie
Posts : 59 Thanked : 1 Engine : RMVX Skill : Very Beginner Type : Databaser
| T_T berarti ga ada ya... HUWEEEEEEEEEEE T_______T kumohon kk... masa nggak ada sih T___T |
| | | 2011-11-21, 17:43 | Re: (ask) cara melimitasi pemakai POTION? |
---|
LiTTleDRAgo Senior
Posts : 712 Thanked : 27 Engine : RMXP Skill : Skilled Type : Scripter
Awards:
| ini sih pake skrip mestinya, tapi situ pake VX yah, kalo XP saia bisa bantu tapi kalo VX.... |
| | | | Re: (ask) cara melimitasi pemakai POTION? |
---|
Sponsored content
| | | | | (ask) cara melimitasi pemakai POTION? | |
|
Similar topics | |
|
Similar topics | |
| |
Halaman 1 dari 1 | |
| Permissions in this forum: | Anda tidak dapat menjawab topik
| |
| |
Latest 10 Topics | [Web Novel] Gloria Infidelis 2016-11-17, 21:27 by LightNightKnight
[Announcement] Forum baru untuk RMID 2016-08-25, 16:39 by TheoAllen
Where I'm Wrong ? 2016-07-24, 16:10 by ReydVires
flakeheartnet's Resources part III 2016-07-08, 14:30 by flakeheartnet
Keira's Art Warehouse 2016-06-28, 19:27 by KeiraBlaze
Theo Core Time System + Bingung 2016-06-27, 16:24 by Lockin
Error Script, Maybe ? 2016-06-27, 16:20 by Lockin
Nusaimoe @ RMID Lounge 2016-06-21, 05:02 by Jihad Bagas
Call Random Battle 2016-06-15, 17:04 by Lockin
Flakeheartnet Resources Part II [come back gift] 2016-06-07, 15:51 by flakeheartnet
|
Statistics
|
Members: [ 4947 ]
Topics: [ 8258 ]
Posts: [ 112606 ]
Newest member: [ https://rmid.forumotion.net/u4968 ]
|
|
|
|
|