Ogłoszenie 

Uwaga! To forum jest w trybie offline.
Wszelką pomoc uzyskasz pod adresem
forum.ultimateam.pl


Administracja Forum


Poprzedni temat «» Następny temat
Zamknięty przez: pw115
Sob 24 Kwi, 2010 20:24
Multislot
Autor Wiadomość
pw115 



Preferowany:
RPG Maker XP

Pomógł: 10 razy
Dołączył: 19 Lut 2010
Posty: 235
Skąd: Katowice
Wysłany: Pon 19 Kwi, 2010 17:46
Multislot
Witam mam pytanko do użytkownikówTEGO
skryptu. Chodzi mi o to jak się go obsługuje ? (dodaje nowe sloty, ustawia broń dwuręczna itd...)

I jeszcze jedno: nie umiem znaleźć tematu gdzie Ayene przerabiała ten:
http://www.ultimateam.pl/viewtopic.php?t=2454 skrypt tak aby działał pod multislot
________________________
Pomocy:
http://pw115.myminicity.com/




 
 
Sabikku 




Nagrody:
UF i UFT2 Winner

Ranga RM:
4 gry

Pomógł: 73 razy
Dołączył: 04 Kwi 2010
Posty: 428
Wysłany: Pon 19 Kwi, 2010 17:52
\/ początek skryptu
Spoiler:

Kod:
#==============================================================================
# Multi-slot equipment script
#------------------------------------------------------------------------------
# Section 1:  Modules
#------------------------------------------------------------------------------
# Guillaume777
# 6.2.2
# 2006/02/14
#==============================================================================

# To change slots of character
#     $game_actors[1].weapon_slots = [0,0]
#     $game_actors[1].armor_slots = [2,3,4,5,6,7]
#
# To make armor equipable in new slot :
#     Add (5) in its name, where 5 is its slot number
# To make 2handed weapons :
#     Add an element called 2handed to a weapon
#     or, adds its id in TWO_HANDED_WEAPONS = []
#     or, adds (2handed) in its name
# To make a weapon double attack
#     Add an element called 2attacks to a weapon
#     or, adds its id in DOUBLE_ATTACK_WEAPONS = []
#     or, adds (2atks) in its name
# To make a weapon/armor cursed
#     Adds its id in CURSED_WEAPONS or CURSED_ARMORS, or
#     put (cursed) in its name
# To make a weapon require an offhand instead of any weapon
#     Adds its id in NEEDS_OFFHAND or
#     Adds (needs_offhand) in its name

#==============================================================================
# *** MODULE:  Guillaume777's Multi-Slot Module
#------------------------------------------------------------------------------
#  This is the configuration module of the Multi-Slot system.  It allows you to
#  set the default names of your slots, tag your weapons and/or armors for many
#  types of enhancements and features, and etc.
#==============================================================================
module G7_MS_MOD
 
  #--------------------------------------------------------------------------
  # * Configuration Section
  #--------------------------------------------------------------------------
  #========Set weapon/armor properties ======================================
  CURSED_WEAPONS        = []             # ids of weapons to be cursed
  CURSED_ARMORS         = []             # ids of armors to be cursed
  TWO_HANDED_WEAPONS    = []             # ids of 2handed weapons
  DOUBLE_ATTACK_WEAPONS = []             # ids of double attack weapons
  NEEDS_OFFHAND         = [3,4,5,6,7,8,  # ids of weapons requiring an offhand
                           9,10,11,12,
                           25,26,27,28,29,30,31,32,33,34,35,36,37,38]
 
  SWITCH_EQUIP_WEAPONS  = [[38,36], [43,42]]  # ids of weapons switched when equipped
  SWITCH_EQUIP_ARMORS   = [[41,40], [42,39]]  # ids of switched armors(same above)
  # Use 1 array, first value of array = false item, second value = true item
  #
  # First value in the above arrays is displayed in the weapons/armors you can
  # choose.  When the weapon/armor is chosen, the second id value IS the weapon
  # or armor that you've chosen.  Example:  Trick someone to equip a cursed bow.
 
  #=========Set weapon/armor properties with element tagging and name edit===
  CURSED_STRING = 'cursed'  # put (cursed) in item name for it to be cursed
  HANDS_ELEMENT = 'handed'  # no. of hands in front of HANDS_ELEMENT in database
  HANDS_STRING  = 'handed'  # name of string in item name like (2handed)

  MULTI_ATTACK_ELEMENT = 'attacks' # name of element to tag to multi attacks
                                   # like (2attacks)
  MULTI_ATTACK_STRING = 'atks'     # string in item name, like (3atks)

  NEEDS_OFFHAND_STRING = 'needs_offhand' #string in item name if the weapon
                                         #needs an offhand like (needs_offhand)
                                         
  #=====Set character slots properties =======================================
  WEAPON_KINDS = [0, 0]                     # number of weapons,  0 = weapon
  WEAPON_KIND_NAMES = ['R-Hand', 'L-Hand']  # custom name of extra weapon slots
  WEAPON_KIND_POWERS = [100, 100]           # 100 = normal power, 90 = 90% power
                                            # Leave empty or put nil inside
                                            # if you want the default names.
  ARMOR_KINDS = [1,2,3,4,5,6,7]
  # 1 = shield
  # 2 = helmet
  # 3 = armor
  # 4 = acc
  # 5 = and more : extra slot
  EXTRA_SLOT_NAMES = ['Gauntlet','Boots','Amulet']
  # Name of the extra slots in equip window
  # You need as many words as there are '5' or more in armor_kinds
  # The first order of the slots names reflect the order of the 5 in armor_kinds
  # Put (5) or more to in the armor name to have it assigned to the extra slot


  #=============Set multi-weapon behavior====================================
  IGNORE_OFFHAND          = false # ignore off_hand support
  TWOHANDED_IN_OFFHAND    = true  # If false don't show two handed weapons in
                                  # the offhand window
  ALL_WEAPONS_FOR_SKILLS  = true  # true  = combined pwr of all weaps for skills
                                  # false = only power of first weapon
  SHIELD_HAND_SLOT        = 1     # slot number to be used for shield hand
  WEAPON_SHIELD_SHARE     = true  # if true, can't use a shield and a second
                                  # weapon at the same time
  SHIELD_HAND_WIELD       = true  # true = can use shield hand for 2handed weap.
  WEAPON_HAND_WIELD       = true  # true = can use weapon hand for 2handed weap.
  MULTI_WEAPONS_PENALITY  = 0     # percent of atk that will be subtracted if
                                  # you use two weapons at the same time.
                                 
  #============Set appearance properties ====================================
  FONT_NAME       = 'Arial'      # Font to use
  CURSED_COLOR    = Color.new(255, 50, 50)  # Color of cursed equiped items
  SHOW_REMOVE     = false                   # Show empty in offhand window
 
  WINDOWS_STRETCH = true    # true : equip_right stretch to adjust to # of slots
  MAX_SHOW_SLOTS  = 6       # Maximum number of slots in 1 screen in equip right
                            # window.  Useless if windows_stretch = false
  HELP_AT_BOTTOM  = false   # If true,  will leave place for help window at bot-
                            # tom.  Useless if you didn't modify the help window
                            # y-coordinate.

  STATUS_WINDOW_ARRANGE = true  # If true, you get a new status window.
  STATUS_WINDOW_SPACING = 24    # Space between each item in new status window.
  EVADE                 = false # If draw_actor_parameter is configured to
                                # receive parameter number 7 (evade), then it
                                # will show in new status window.
  # EVADE = true has no effect if STATUS_WINDOW_ARRANGE is false
 
  #================ end of settings=========================================


Dwuręczna broń - dopisujesz do tablicy id broni które mają być dwuręczne, np (bronie dwuręczne o id kolejno 1, 5 i 26):
Kod:
TWO_HANDED_WEAPONS    = [1, 5, 26]

Żeby dodać nowe sloty, edytujesz te linijki:
Kod:
ARMOR_KINDS = [1,2,3,4,5,6,7]
  EXTRA_SLOT_NAMES = ['Gauntlet','Boots','Amulet']
 
 
 
Ayene 




Ranga RM:
4 gry

Pomogła: 232 razy
Dołączyła: 18 Wrz 2007
Posty: 2424
Wysłany: Pon 19 Kwi, 2010 17:54
Temat masz tutaj :arrow: http://www.ultimateam.pl/viewtopic.php?t=2771
________________________


 
 
 
pw115 



Preferowany:
RPG Maker XP

Pomógł: 10 razy
Dołączył: 19 Lut 2010
Posty: 235
Skąd: Katowice
Wysłany: Pon 19 Kwi, 2010 17:55
Ok dzienx ale jeszcze co to jest: (te "offhands")
Kod:

  NEEDS_OFFHAND         = [3,4,5,6,7,8,  # ids of weapons requiring an offhand
                           9,10,11,12,
                           25,26,27,28,29,30,31,32,33,34,35,36,37,38]

@EDIT
Dzięki Ayene nie mogłem tego znaleźć
________________________
Pomocy:
http://pw115.myminicity.com/




 
 
pw115 



Preferowany:
RPG Maker XP

Pomógł: 10 razy
Dołączył: 19 Lut 2010
Posty: 235
Skąd: Katowice
Wysłany: Pon 19 Kwi, 2010 21:11
Sorry za dubla
jeszcze jedno: jak się przypisuje dany item do np: butów
________________________
Pomocy:
http://pw115.myminicity.com/




 
 
Ayene 




Ranga RM:
4 gry

Pomogła: 232 razy
Dołączyła: 18 Wrz 2007
Posty: 2424
Wysłany: Pon 19 Kwi, 2010 21:20
Jeżeli Buty to 6 indeks ekwipunku to w bazie danych w nazwie tego pancerza dodaj (6).

Cytat:
ids of weapons requiring an offhand

Czyli id broni, które wymagają wolnej drugiej ręki, czyli innymi słowy - id broni dwuręcznych.
________________________


 
 
 
Sabikku 




Nagrody:
UF i UFT2 Winner

Ranga RM:
4 gry

Pomógł: 73 razy
Dołączył: 04 Kwi 2010
Posty: 428
Wysłany: Pon 19 Kwi, 2010 21:32
Ayene: w takim razie czym się różni tablica TWO_HANDED_WEAPONS od NEEDS_OFFHAND?
 
 
 
pw115 



Preferowany:
RPG Maker XP

Pomógł: 10 razy
Dołączył: 19 Lut 2010
Posty: 235
Skąd: Katowice
Wysłany: Pon 19 Kwi, 2010 21:43
Też nad tym pomyślałem ;-)
I to z tym numerkiem nie działa ;-( nie wiem dlaczego ale nie działa (daje przed i po nazwie itemu)
________________________
Pomocy:
http://pw115.myminicity.com/




 
 
Czeliosss 



Ranga RM:
1 gra

Pomógł: 49 razy
Dołączył: 02 Lis 2009
Posty: 661
Skąd: Wa-wa
Wysłany: Pon 19 Kwi, 2010 21:46
Daj tylko po nazwie itemu. Mam ten skrypt to już wiem jak działa z małą pomocą Ultimy.
Pzdr.
Ps. To ma tak wyglądać Buty (6). To wtedy buty będą w 6 slocie.
________________________
...Amelanduil & FireBlade words will be remembered...
...Amelanduil & FireBlade acts will be remembered...
...Amelanduil & FireBlade never gonna die...

Nie pisać, bo nie odpiszę.
 
 
Ayene 




Ranga RM:
4 gry

Pomogła: 232 razy
Dołączyła: 18 Wrz 2007
Posty: 2424
Wysłany: Pon 19 Kwi, 2010 21:49
Time, ściągnij sobie demo ze strony, którą podałeś w pierwszym poście. Zajrzyj do bazy danych, a zobaczysz jak to zrobiono.

Przeoczyłam two_handed. Widocznie off hand ustawia, że w drugiej dłoni nie można mieć tej samej broni, a jakiś sztylecik...
________________________


 
 
 
pw115 



Preferowany:
RPG Maker XP

Pomógł: 10 razy
Dołączył: 19 Lut 2010
Posty: 235
Skąd: Katowice
Wysłany: Pon 19 Kwi, 2010 21:51
Już wszystko działa dzięki :-)
ale nie do końca... nie wiem jak zrobić tak żeby się NIE dało nosić w tym samym momencie 2 broni i tarczy. Edycja tej:
Kod:
WEAPON_SHIELD_SHARE     = true  # if true, can't use a shield and a second
                                                              # weapon at the same time

linijki nie pomaga

@EDIT
Już jest wszystko ok zamykam ;-)
________________________
Pomocy:
http://pw115.myminicity.com/




 
 
Wyświetl posty z ostatnich:   
Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Nie możesz załączać plików na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Powered by phpBB modified by Przemo © 2003 phpBB Group | Template Klam by Ayene