| | | (ask) cara melimitasi pemakai POTION? | |
| |
Sun 20 Nov 2011 - 16:29 |  (ask) cara melimitasi pemakai POTION? |
|---|
pram12345 New RMer C


 Post Count: 58 Joined: 2011-02-20 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 ^^ |
| | | | Sun 20 Nov 2011 - 18:46 |  Re: (ask) cara melimitasi pemakai POTION? |
|---|
bradhawk Admin


 Post Count: 622 Joined: 2009-02-18 Thanked: 8 Engine: RMXP Skill: Skilled Type: Event Designer
| | 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 |
______________________ | Quote: | | An epic of epic epicness. |
epic~
| Quote: | [17:21:57] @ dnasman : ane lagi sibuk smsan ma cewe neh  |
|
| | | | Sun 20 Nov 2011 - 19:25 |  Re: (ask) cara melimitasi pemakai POTION? |
|---|
Aegis Legendary RMer B

 Post Count: 1833 Joined: 2010-06-29 Thanked: 47 Engine: Multi-Engine User Skill: Very Beginner Type: Artist
Awards: 
 | | tapi  Air Sucinya subjektif ya  masa mau nyembuhin malah milih2 orang  |
| | | | Mon 21 Nov 2011 - 4:21 |  Re: (ask) cara melimitasi pemakai POTION? |
|---|
pram12345 New RMer C


 Post Count: 58 Joined: 2011-02-20 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??? |
| | | | Mon 21 Nov 2011 - 4:40 |  Re: (ask) cara melimitasi pemakai POTION? |
|---|
superkudit Pahlawan Super

 Post Count: 1917 Joined: 2009-09-24 Thanked: 22 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 ( , ) |
| | | | Mon 21 Nov 2011 - 4:40 |  Re: (ask) cara melimitasi pemakai POTION? |
|---|
shikami
Tukang Sapu Pakde RMID

 Post Count: 3298 Joined: 2009-07-18 Thanked: 27 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  ______________________ this is no signature
|
| | | | Mon 21 Nov 2011 - 5:09 |  Re: (ask) cara melimitasi pemakai POTION? |
|---|
pram12345 New RMer C


 Post Count: 58 Joined: 2011-02-20 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 |
| | | | Mon 21 Nov 2011 - 5:10 |  Re: (ask) cara melimitasi pemakai POTION? |
|---|
pram12345 New RMer C


 Post Count: 58 Joined: 2011-02-20 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 |
| | | | Mon 21 Nov 2011 - 9:22 |  Re: (ask) cara melimitasi pemakai POTION? |
|---|
fredy Senior RMer E


 Post Count: 608 Joined: 2009-07-15 Thanked: 4 Engine: RMVX
| | Maaf Anda double post Dan Benar Itu Script XP |
| | | | Mon 21 Nov 2011 - 9:56 |  Re: (ask) cara melimitasi pemakai POTION? |
|---|
hart Senior RMer D

 Post Count: 746 Joined: 2009-12-21 Thanked: 33 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... |
| | | | | | (ask) cara melimitasi pemakai POTION? | |
|
| Page 1 of 2 | Goto page : 1, 2  |
| | Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| Survey | | | Hapus Introduce Yourself? | | Ya | | 44% | [ 35 ] | | Tidak | | 56% | [ 44 ] |
| | Total Votes : 79 |
|
|
Statistics
|
Members: [ 2878 ]
Topics: [ 5389 ]
Posts: [ 83475 ]
Newest member: [ raharja ]
|
|
|
|
|
|