Per 2016, RMID pindah ke RMID Discord (Invite link dihapus untuk mencegah spambot -Theo @ 2019). Posting sudah tidak bisa dilakukan lagi.
Mohon maaf atas ketidaknyamanannya dan mohon kerjasamanya.

Share | 
 

 (ask) cara melimitasi pemakai POTION?

Topik sebelumnya Topik selanjutnya Go down 
(ask) cara melimitasi pemakai POTION? Empty2011-11-20, 16:29
Post(ask) cara melimitasi pemakai POTION?
#1
pram12345 
Newbie
Newbie
pram12345

Level 5
Posts : 59
Thanked : 1
Engine : RMVX
Skill : Very Beginner
Type : Databaser

(ask) cara melimitasi pemakai POTION? Vide
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 ^^
(ask) cara melimitasi pemakai POTION? Empty2011-11-20, 18:46
PostRe: (ask) cara melimitasi pemakai POTION?
#2
bradhawk 
Admin
Admin
bradhawk

Level 5
Posts : 637
Thanked : 8
Skill : Beginner

(ask) cara melimitasi pemakai POTION? Vide
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
(ask) cara melimitasi pemakai POTION? Empty2011-11-20, 19:25
PostRe: (ask) cara melimitasi pemakai POTION?
#3
Aegis 
Legendary
Legendary
Aegis

Level 3
Posts : 2152
Thanked : 56
Engine : Multi-Engine User
Skill : Very Beginner
Type : Artist
Awards:


(ask) cara melimitasi pemakai POTION? Vide
tapi :D
Air Sucinya subjektif ya :v
masa mau nyembuhin malah milih2 orang :ngacay2:
(ask) cara melimitasi pemakai POTION? Empty2011-11-21, 04:21
PostRe: (ask) cara melimitasi pemakai POTION?
#4
pram12345 
Newbie
Newbie
pram12345

Level 5
Posts : 59
Thanked : 1
Engine : RMVX
Skill : Very Beginner
Type : Databaser

(ask) cara melimitasi pemakai POTION? Vide
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???
(ask) cara melimitasi pemakai POTION? Empty2011-11-21, 04:40
PostRe: (ask) cara melimitasi pemakai POTION?
#5
hyperkudit 
Pahlawan Super
hyperkudit

Level 5
Posts : 2288
Thanked : 30
Engine : RMXP
Skill : Very Beginner
Type : Artist
Awards:

(ask) cara melimitasi pemakai POTION? Vide
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 ( , )
(ask) cara melimitasi pemakai POTION? Empty2011-11-21, 04:40
PostRe: (ask) cara melimitasi pemakai POTION?
#6
shikami 
Member 1000 Konsep
avatar

Level 5
Posts : 3744
Thanked : 31
Engine : Multi-Engine User
Skill : Beginner
Type : Developer
Awards:


(ask) cara melimitasi pemakai POTION? Vide
konfirmasi dulu,ente pake rmxp apa rmvx nih? kalo rmxp sih silahkan pake script yang dipost si brad,klo bkan ya cari lg :)
(ask) cara melimitasi pemakai POTION? Empty2011-11-21, 05:09
PostRe: (ask) cara melimitasi pemakai POTION?
#7
pram12345 
Newbie
Newbie
pram12345

Level 5
Posts : 59
Thanked : 1
Engine : RMVX
Skill : Very Beginner
Type : Databaser

(ask) cara melimitasi pemakai POTION? Vide
kk brad... udah tak coba... tapi tetep nggak bisa... gimana nih T_T

ini kodeku...

Spoiler:

mohon pencerhannya T_T
(ask) cara melimitasi pemakai POTION? Empty2011-11-21, 05:10
PostRe: (ask) cara melimitasi pemakai POTION?
#8
pram12345 
Newbie
Newbie
pram12345

Level 5
Posts : 59
Thanked : 1
Engine : RMVX
Skill : Very Beginner
Type : Databaser

(ask) cara melimitasi pemakai POTION? Vide
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
(ask) cara melimitasi pemakai POTION? Empty2011-11-21, 09:22
PostRe: (ask) cara melimitasi pemakai POTION?
#9
fredy 
Senior
Senior
fredy

Level 5
Posts : 612
Thanked : 4
Engine : RMVX

(ask) cara melimitasi pemakai POTION? Vide
Maaf Anda double post
Dan Benar Itu Script XP
(ask) cara melimitasi pemakai POTION? Empty2011-11-21, 09:56
PostRe: (ask) cara melimitasi pemakai POTION?
hart 
Senior
Senior
avatar

Level 5
Posts : 805
Thanked : 38
Engine : Other
Skill : Very Beginner
Type : Developer

(ask) cara melimitasi pemakai POTION? Vide
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? Empty2011-11-21, 10:30
PostRe: (ask) cara melimitasi pemakai POTION?
McPherson 
Senior
Senior
McPherson

Level 5
Posts : 777
Thanked : 7
Engine : Multi-Engine User
Skill : Intermediate
Type : Mapper
Awards:

(ask) cara melimitasi pemakai POTION? Vide
Nah, bnar tuh kata Om Hart,
kwokwokwo..
baru jg mw kasi tw.. XD
(ask) cara melimitasi pemakai POTION? Empty2011-11-21, 13:33
PostRe: (ask) cara melimitasi pemakai POTION?
pram12345 
Newbie
Newbie
pram12345

Level 5
Posts : 59
Thanked : 1
Engine : RMVX
Skill : Very Beginner
Type : Databaser

(ask) cara melimitasi pemakai POTION? Vide
T_T berarti ga ada ya... HUWEEEEEEEEEEE T_______T kumohon kk... masa nggak ada sih T___T
(ask) cara melimitasi pemakai POTION? Empty2011-11-21, 17:43
PostRe: (ask) cara melimitasi pemakai POTION?
LiTTleDRAgo 
Senior
Senior
LiTTleDRAgo

Level 5
Posts : 712
Thanked : 27
Engine : RMXP
Skill : Skilled
Type : Scripter
Awards:
(ask) cara melimitasi pemakai POTION? Vide
ini sih pake skrip mestinya, tapi situ pake VX yah, kalo XP saia bisa bantu tapi kalo VX....
(ask) cara melimitasi pemakai POTION? Empty
PostRe: (ask) cara melimitasi pemakai POTION?
Sponsored content 




(ask) cara melimitasi pemakai POTION? Vide
 

(ask) cara melimitasi pemakai POTION?

Topik sebelumnya Topik selanjutnya Kembali Ke Atas 

Similar topics

+
Halaman 1 dari 1

Permissions in this forum:Anda tidak dapat menjawab topik
RPGMakerID :: Engines :: Developer Corner and RM In General-