Khronos Administrador
Mensagens : 4647 Pontos : 20402 Creditos : 200 Data de inscrição : 12/11/2010 Idade : 29 Localização : Sky Respeito as Regras :
| Assunto: Controle de Veneno HoT DoT Qui Jan 20, 2011 11:48 pm | |
| Introdução
Esse script permite você ter um controle melhor sobre o status de veneno(poison),no rpg maker VX,envenamento faz apenas uma coisa,mas com esse script voce pode configurá-lo de várias maneiras o fazendo retirar mais por exemplo,ou rancando por tempo ao invé de por turnos,bom,eis todas as características:
- Permite vários tipos de veneno
- Pode fazer veneno que até cura
- Envenenamento pode acertar MP também dentre outros status
- Mais que um veneno o acerta
Instruções
Copie e cole o script acima do Main,o resto está no script,ele pode ser facilmente configurado a seu gosto,use sua imaginação Script
- Código:
-
#============================================================================== # HoT DoT # Author: Shdwlink1993 # Version: 1.0b # Type: Poison Control #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= # HT Date 1.0b: 1/11/2009 #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= # # # This work is protected by the following license: # #---------------------------------------------------------------------------- # # # # Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported # # ( http://creativecommons.org/licenses/by-nc-sa/3.0/ ) # # # # You are free: # # # # to Share - to copy, distribute and transmit the work # # to Remix - to adapt the work # # # # Under the following conditions: # # # # Attribution. You must attribute the work in the manner specified by the # # author or licensor (but not in any way that suggests that they endorse you # # or your use of the work). # # # # Noncommercial. You may not use this work for commercial purposes. # # # # Share alike. If you alter, transform, or build upon this work, you may # # distribute the resulting work only under the same or similar license to # # this one. # # # # - For any reuse or distribution, you must make clear to others the license # # terms of this work. The best way to do this is with a link to this web # # page. # # # # - Any of the above conditions can be waived if you get permission from the # # copyright holder. # # # # - Nothing in this license impairs or restricts the author's moral rights. # # # #---------------------------------------------------------------------------- # # # # Note that if you share this file, even after editing it, you must still # # give proper credit to shdwlink1993. # #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= # # ~= Function =~ # # This script is designed to allow you to expand what poison does to your # character. Poison now is able to affect HP or MP, and take off a fraction or # a set amount of HP/MP. # #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= # # ~= Version History =~ # # Version 1.0b ---------------------------------------------------- [1/11/2009] # #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= # # ~= Customization =~ # # Customization can be found right under where the Poison Database begins. # #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= # # ~= Compatability =~ # # - Will not work with other Poison-editing scripts. # #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
module SL93 def self.hotdot(id) case id #------------------------------------------------------------------------ # Poison Database Begins #------------------------------------------------------------------------ # when STATE_NUMBER then return [TYPE, DAMAGE, VARIANCE, LIMIT_DRAIN] # * STATE_NUMBER is the state you want to be affected by this. # * TYPE refers to the thing sustaining damage. # 1 = HP, 2 = MP. If the type is positive, the amount is a literal # number (eg. You lose about 50 HP). If the type is negative, then # the amount is a fraction of the maximum (eg. You lose about 50% of # your HP). # * DAMAGE refers to how much damage is healed/taken. # A Positive amount hurts you and a negative amount heals you. # * VARIANCE refers to how much the damage varies. Positive only. # This depends in part on if the type was positive (~5 HP difference) # or negative (~5% HP difference). # * LIMIT_DRAIN refers to if the poison can leave you with 0 HP/SP. # If true, then it is limited, and stops at 1. If false, then it # isn't. #------------------------------------------------------------------------ when 2 then return [-1, 10, 10, false] # Standard Poison #------------------------------------------------------------------------ # Poison Database Ends #------------------------------------------------------------------------ end return false end end
class Game_Battler def slip_damage? return @states.any? {|i| SL93.hotdot(i) != false } end def slip_damage_effect ids = [] for i in @states ids.push(i) if SL93.hotdot(i) != false end for i in ids damage = SL93.hotdot(i)[1] if SL93.hotdot(i)[0] > 0 damage = self.maxhp / SL93.hotdot(i)[1] if SL93.hotdot(i)[0] == -1 damage = self.maxsp / SL93.hotdot(i)[1] if SL93.hotdot(i)[0] == -2 if damage.abs > 0 && SL93.hotdot(i)[2] > 0 amp = [damage.abs - SL93.hotdot(i)[2], 1].max if SL93.hotdot(i)[0] > 0 amp = [damage.abs * SL93.hotdot(i)[2] / 100, 1].max if SL93.hotdot(i)[0] < 0 damage += rand(amp+1) + rand(amp+1) - amp end damage = damage * -1 if SL93.hotdot(i)[0] < 0 if SL93.hotdot(i)[0] == 1 || SL93.hotdot(i)[0] == -1 damage = self.hp - 1 if !SL93.hotdot(i)[3] && (0 > self.hp += damage) self.hp += damage elsif SL93.hotdot(i)[0] == 2 || SL93.hotdot(i)[0] == -2 damage = self.mp - 1 if !SL93.hotdot(i)[3] && (0 > self.mp += damage) self.mp += damage end end return true end end
class Game_Party def on_player_walk for actor in members if actor.slip_damage? actor.slip_damage_effect $game_map.screen.start_flash(Color.new(255,0,0,64), 4) $game_temp.next_scene = "gameover" if $game_party.all_dead? end end end end Creditos
shdwlink1993 por criar eu Khronos por postar aqui e você Convidado Por ler e comentar ;D
anyway
see yaa ;D
|
|