I need a poison spicial script on the map.

Started by Nightfox, March 13, 2009, 11:47:37 am

Previous topic - Next topic

Nightfox

March 13, 2009, 11:47:37 am Last Edit: March 13, 2009, 05:30:05 pm by Starrodkirby86
soory, I need a poison script. Script should go on the map. If actor an object affects, it loses points of life. If an opponent an object affected it loses points of life.

:)

Example :

Spoiler: ShowHide



Spoiler: ShowHide



Big images should go in spoilers. :3 ~Love, Starrodkirby86

Reno-s--Joker

Just for clarification, do you want the damage to pop up on the map every time the character gets hurt?

Quote from: Nightfox on March 13, 2009, 11:47:37 am
If an opponent an object affected it loses points of life.

... and I'm not really sure what you meant by that. :???: Are you using an ABS which has enemies walking around who can get hurt too?

Jackolas

#===================================
#  Damaging/Healing Floors
#----------------------------------------------------------------------
#
#  Features:
#  -Heals/Damages the actors if they step on certain tiles.
#  -Customizable amount of heal/damage.
#  -Can be based on either percentage or a fixed rate.
#
#  Instructions:
#  -Place this script above Main, but below all other default scripts.
#  -Change the damage and heal tags to different numbers. By default
#     the are 1 for damage, 2 for heal.
#  -On your tilesets, go into the 'terrain' tag, and set all damage floor's
#     terrain number equal to the one set in the script for damage, and
#     do the same for any healing floors.
#
#===================================

#===================================
#  Module
#===================================
module Terrain_Tag_Setup
#--------------------------------------------------------------------
#  Percentage =
#  When true, takes away a percentage rather than a fixed amount.
#--------------------------------------------------------------------
Percentage = true
#--------------------------------------------------------------------
#  Damage_Amount =
#  How much is taken away from each step.  If Percentange = true
#  It will remove that percent.
#--------------------------------------------------------------------
Damage_Amount = 5
#--------------------------------------------------------------------
#  Heal_Amount =
#  How much is taken away from each step.  If Percentange = true
#  It will remove that percent.
#--------------------------------------------------------------------
Heal_Amount = 5
#--------------------------------------------------------------------
#  Kill =
#  if true, damage floors can kill players.
#--------------------------------------------------------------------
Kill = false
#--------------------------------------------------------------------
#  Damage_Tag =
#  The tag number that damages the player.
#--------------------------------------------------------------------
Damage_Tag = 5
#--------------------------------------------------------------------
#  Heal_Tag =
#  The tag number that heals the player.
#--------------------------------------------------------------------
Heal_Tag = 6
end



#===================================
#  Game_Temp
#===================================
class Game_Temp
  attr_accessor :move_confirm
 
  alias leon_flooreffect_gametemp_initialize initialize
 
  def initialize
    @move_confirm = false
    leon_flooreffect_gametemp_initialize
  end
end

#===================================
#  * Scene_Map
#===================================
class Scene_Map

alias leon_gamecharacter_moving_tt update

def update
   leon_gamecharacter_moving_tt
   tts = Terrain_Tag_Setup
   if $game_map.terrain_tag($game_player.x, $game_player.y) == tts::Damage_Tag
     if $game_temp.move_confirm == true
       @counter = 0
       $game_screen.start_flash(Color.new(200, 0, 0, 190), 15)
       Audio.se_play("Audio/SE/117-Fire01", 80, 130)
       for actor in $game_party.actors
         if (actor.hp - tts::Damage_Amount) < 1
           actor.hp = 1
           $game_temp.move_confirm = false
         else
           amt = tts::Damage_Amount
           if tts::Percentage == true
             amt = amt * 0.01 * actor.maxhp
             amt = amt.round
           end
           actor.hp -= amt
           if tts::Kill == false and actor.hp == 0
             actor.hp = 1
           else
             if actor.hp == 0
               @counter += 1
             end
           end
           if @counter == $game_party.actors.size
             $scene = Scene_Gameover.new
           end
         end
       end
       $game_temp.move_confirm = false
     end
   end
   if $game_map.terrain_tag($game_player.x, $game_player.y) == tts::Heal_Tag
     if $game_temp.move_confirm == true
       $game_screen.start_flash(Color.new(0, 200, 200, 190), 15)
       Audio.se_play("Audio/SE/105-Heal01", 80, 130)
       for actor in $game_party.actors
         amt = tts::Heal_Amount
         if tts::Percentage == true
           amt = amt * 0.01 * actor.maxhp
           amt = amt.round
         end
         actor.hp += amt
       end
       $game_temp.move_confirm = false
     end
   end
end
end

#===================================
#  * Game_Player
#===================================
class Game_Player < Game_Character

alias leon_gameactor_update_tt update

def update
   unless moving? or $game_system.map_interpreter.running? or
          @move_route_forcing or $game_temp.message_window_showing
      case Input.dir4
     when 2
       $game_temp.move_confirm = true
     when 4
       $game_temp.move_confirm = true
     when 6
       $game_temp.move_confirm = true
     when 8
       $game_temp.move_confirm = true
     end
   end
   leon_gameactor_update_tt
end
end


I have no idea where i got this 1.. but it should work

Blizzard

March 14, 2009, 06:37:54 am #3 Last Edit: March 14, 2009, 06:40:58 am by Blizzard
OMG LMAO! SOMEBODY ACTUALLY MADE A SCRIPT FOR SOMETHING THAT NEEDS 1 PARALLEL PROCESS EVENT WITH 5 COMMANDS AND 1 CONDITIONAL BRANCH!
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Jackolas


Blizzard

I know. The author of this script probably never even made an event in his life.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Shadonking

i think he wants it to effect enemies on the map as well not just the hero





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0