Jump to content
Rpg²S Forum
  • 0

Mi servirebbero 2 script semplici semplici...


Kuroi94
 Share

Question

mi servirebbero degli script che riproducessero queste abilità:

1- Abilità "Ruba" per rubare oggetti preimpostati al nemico;

2- Abilità "Gambe!" per far fuggire il party dalla battaglia senza che la fuga fallisca

 

Scusate se ho aperto un topic inutile, ma ho cercato nel forum e non ho trovato queste abilità...

grazie mille in anticipo ciao!

Ditta produzione: HomeMedia ProductionNome: MattGiochi in produzioneFinal Fantasy OblivionLuce e oscurità dovranno collaborare... un nemico che sovrasta le loro forze si sta preparando...
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Volendo puoi farlo ad eventi.

 

Per l'abilità ruba puoi creare una skill che, tramite il proprio evento comune, mette ON un determinato Switch, e tra gli eventi di battaglia, nel pannello dove programmi gli eventi e scegli i mostri che ne fanno parte, crei una pagina che si attiva con quello switch, dove stabilisci se l'azione riesce e quale oggetto/arma/armatura viene aggiunto all'inventario del party . . . (Dopo l'eventuale rubata, in quella stessa pagina, ovviamente, devi rimettere OFF lo switch associato a ruba)

 

Per la fuga sicura, basta creare un'altra skill che quando usata esegue il comando evento Battle Abort, il quale, se non ho capito male, fa terminare la battaglia come se la fuga avesse avuto successo . . .

 


SCRIPT RGSS (RPG Maker XP) VINTAGE LIBRARY [2018+]


Breaking (in ogni senso) News: "Treno deraglia per via del seno di Sakurai Aoi . . ." - Info nello spoiler !!

 


http://afantasymachine.altervista.org/_altervista_ht/NOOOOOOOOOilMIOtreninooooo_500.gif


Non riesco a smettere di essere affascinato da immagini come questa . . .

http://anime.vl-vostok.ru/art/photos2011/17/78049800/wall_VladAnime_WWA_1885-1680x1050.jpg


Alcuni wallpapers che faccio ruotare sul mio vecchio PC . . .


http://afantasymachine.altervista.org/_altervista_ht/gits_window.jpg

http://afantasymachine.altervista.org/_altervista_ht/madoka_group01.jpg
http://afantasymachine.altervista.org/_altervista_ht/arisu_picipici_01.jpg
http://afantasymachine.altervista.org/_altervista_ht/phantom_wp01_einzwei.jpg


La parte più spassosa della mia vita è quando gli altri cercano di spiegarmi i miei pensieri . . .


BBCode Testing


Typeface & Size



Link to comment
Share on other sites

  • 0

Per il comando Ruba c'era online su qualche sito straniero uno script perfetto, solo che chi se lo ricorda più? XD

Cercalo in inglese :D

Steal Command o Steal Skill o Steal Script o tutti i precedenti con Mug al posto di Steal...

Mi pare fosse di blizzard ma non son sicuro :/

http://i30.tinypic.com/xehois.gif

} 2rA - web site {

E' disponibile il primo capitolo completo di 2rA!

} 2rA: Capitolo I {

Link to comment
Share on other sites

  • 0

Ecco lo script per rubare. Le istruzioni sono all'interno!

 

#======================================================================

========

# Add-On: Skill Steal

# by Atoa

#==============================================================================

# This script was modified to work with SBS XP, it allows you to create

# skill that steal items/gold from enemies

#

# To add the steal effect to an skill, go to the skill extension and add

# the extensio "STEAL".

#

# To add itens to enemies, go to the "module Atoa"

# Enemy_Steal[iD] = {"ITEM" => RATE}

#

# ID = enemy ID

# ITEM = Type and Item ID. must be always show as "xY"

# where:

# x = type of the item

# Y = item ID/amount of money

# x must be "a" for armors, "w" for weapons, "i" for items, "g" for money

# PORCENTAGEM = % of getting the item, an value bettwen 0 and 100, can be decimal

# Ex.: 5.4 = 5,4% rate

#

# Ex.: Enemy_Steal[15] = {"w6" => 22.5, "g900" => 12}

# That means the Enemy ID 15 (Enemy_Drops[15])

# Have 22,5% of droping the Weapon ID 6 ("w6" => 22.5)

# and have 12% of droping 900 Gold ("g900" => 12)

#

# You can only steal one item per steal attempt.

#

# You can add as many items you want to an enemy

#

#==============================================================================

 

 

module Atoa

Enemy_Steal = [] # don't remove/change this line

 

# Enemies can be stolen more than one time?

Multi_Steal = false

# If false, you can steal an enemy only once per battle, even if it

# have more items (like the old FF's)

 

# Base Success Rate

Steal_Rate = 50

# Even if the rate is 100%, that dont't grants 100% of chance of getting an item

# this value changes with the difference bettwen, the user and target's AGI, and

# it still necessary to verify the drop rate of each item

 

# Message if the target has no items

No_Item = "Non possiede niente!"

 

# Message if the steal attempt fail

Steal_Fail = "Mancato!"

 

# Message of Item steal sucess. {item} is the name of the item, you must add it

# to the message, or the item name won't be shown

Steal_Item = "Hai rubato {item}!"

# E.g:

# "Stole {item}" - Stole Potion

# "{item} gained" - Potion gained

 

# Message of gold steal sucess. {gold} is the amount of gold, you must add it

# to the message, or the amount stole won't be shown

# {unit} the money unit, use it only if you want

Steal_Gold = "Hai rubato {gold}{unit}!"

# Exemplos:

# "Stole {gold}{unit}" - Stole 500G

# "Stole {gold} coins" - Stole 500 coins

 

# Add here the enemies ID and the items they have

# Enemy_Steal[Enemy_ID] = {"ITEM" => RATE}

Enemy_Steal[1] = {"g15" => 50}

Enemy_Steal[2] = {"i1" => 22.5, "g9" => 40, "g23" => 20}

Enemy_Steal[3] = {"g21" => 22.5, "g25" => 22.5, "i1" => 12}

Enemy_Steal[4] = {"g83" => 33.2, "g42" => 22.5, "i79" => 12}

Enemy_Steal[5] = {"g75" => 33.2, "g27" => 22.5, "i80" => 21}

Enemy_Steal[6] = {"g120" => 33.2, "g89" => 22.5, "i81" => 19}

Enemy_Steal[7] = {}

Enemy_Steal[8] = {}

Enemy_Steal[9] = {}

Enemy_Steal[10] = {"g352" => 32.2, "g465" => 22.5, "a17" => 34}

Enemy_Steal[11] = {"g352" => 32.2, "g465" => 22.5, "a17" => 12}

Enemy_Steal[12] = {"g212" => 45.2, "g6" => 9, "i82" => 4}

 

end

 

 

#==============================================================================

# RPG::Skill

#==============================================================================

class RPG::Skill

alias atoa_steal_extension extension

def extension

case @id

when 187

return ["STEAL"]

# Add here the skills IDs and the extension of them

end

atoa_steal_extension

end

end

 

#==============================================================================

# Game_Battler

#==============================================================================

class Game_Battler

#--------------------------------------------------------------------------

include Atoa

#--------------------------------------------------------------------------

def stole_item_set(user)

@steal_flag = true

steal_success = rand(100) < (Steal_Rate + self.steal_attempt) * user.agi / self.agi

self.steal_attempt += 1

return false unless steal_success

return nil if self.steal_items == nil or self.steal_items == []

item_stole = []

self.steal_items.each do |item, steal_rate|

item = item.split('')

if item[0] == "i"

item = item.join

item.slice!("i")

item_stole.push($data_items[item.to_i]) if rand(1000) < (steal_rate * 10).to_i

elsif item[0] == "a"

item = item.join

item.slice!("a")

item_stole.push($data_armors[item.to_i]) if rand(1000) < (steal_rate * 10).to_i

elsif item[0] == "w"

item = item.join

item.slice!("w")

item_stole.push($data_weapons[item.to_i]) if rand(1000) < (steal_rate * 10).to_i

elsif item[0] == "g"

item = item.join

item.slice!("g")

item_stole.push(item.to_i) if rand(1000) < (steal_rate * 10).to_i

end

end

return false if item_stole == []

self.steal_attempt = 0

stole_item_index = rand(item_stole.size)

item_to_steal = [item_stole[stole_item_index]]

self.steal_items.delete_at(stole_item_index) if Multi_Steal

self.steal_items = [] unless Multi_Steal

return item_to_steal

end

end

 

#==============================================================================

# Game_Enemy

#==============================================================================

class Game_Enemy < Game_Battler

#--------------------------------------------------------------------------

include Atoa

#--------------------------------------------------------------------------

attr_accessor :steal_items

attr_accessor :steal_flag

attr_accessor :stole_item

attr_accessor :steal_attempt

#--------------------------------------------------------------------------

alias initialize_atoa_steal_enemy initialize

#--------------------------------------------------------------------------

def initialize(troop_id, member_index)

initialize_atoa_steal_enemy(troop_id, member_index)

@steal_items = Enemy_Steal[@enemy_id].to_a

@stole_item = nil

@steal_flag = false

@steal_attempt = 0

end

end

 

#==============================================================================

# Scene_Battle

#==============================================================================

class Scene_Battle

#--------------------------------------------------------------------------

include Atoa

#--------------------------------------------------------------------------

def pop_steal_help(obj)

@help_window.set_text(obj, 1)

count = 0

loop do

update_basic

count += 1

break @help_window.visible = false if (Input.trigger?(Input::C) and count > 30) or count == 80

end

end

#--------------------------------------------------------------------------

alias atoa_steal_pop_damage pop_damage

def pop_damage(target, obj, action)

if obj.is_a?(RPG::Skill) && obj.extension.include?("STEAL") && ((obj.atk_f == 0 &&

obj.str_f == 0 && obj.dex_f == 0 && obj.agi_f == 0 && obj.int_f == 0) or obj.power == 0)

target.missed = target.evaded = false

target.damage = ""

end

atoa_steal_pop_damage(target, obj, action)

end

#--------------------------------------------------------------------------

alias atoa_steal_action_end action_end

def action_end

if @active_battler.current_action.kind == 1

obj = $data_skills[@active_battler.current_action.skill_id]

if obj.extension.include?("STEAL")

@target_battlers.each do |battler|

stole_item = battler.stole_item_set(@active_battler) and battler.is_a?(Game_Enemy)

if battler.is_a?(Game_Enemy) && battler.steal_flag

item_stole = stole_item[0] unless stole_item == false or stole_item == nil

item_stole = nil if stole_item == nil

item_stole = false if stole_item == false or battler.damage == "Errou!"

case item_stole

when nil

text = No_Item

when false

text = Steal_Fail

when Numeric

$game_party.gain_gold(item_stole)

text = Steal_Gold.dup

text.gsub!(/{gold}/i) {"#{item_stole}"}

text.gsub!(/{unit}/i) {"#{$data_system.words.gold}"}

else

case item_stole

when RPG::Item

$game_party.gain_item(item_stole.id, 1)

text = Steal_Item.dup

text.gsub!(/{item}/i) {"#{item_stole.name}"}

when RPG::Weapon

$game_party.gain_weapon(item_stole.id, 1)

text = Steal_Item.dup

text.gsub!(/{item}/i) {"#{item_stole.name}"}

when RPG::Armor

$game_party.gain_armor(item_stole.id, 1)

text = Steal_Item.dup

text.gsub!(/{item}/i) {"#{item_stole.name}"}

end

end

pop_steal_help(text)

battler.steal_flag = false

wait(3)

end

end

end

end

atoa_steal_action_end

end

end

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...