Stealing/Mugging/Scanning 6.3

To Master_Elric
You need to get the "Method and Class Library V1.5" script from the Demo. If you already have it re-check again it's not V1.4 or below. As far as I know it shouldn't conflict with your other codes so be assured to copy it to your game
oh wow. it works. thanks a lot.
hmm, I keep getting this error everytime I go into battle and it's always at the start.

The error is

????? 'Steal System' ? 47 ??? NoMethodError ????????
undefined method 'is_stealing?' for #RPG::Skill:0x6ea3358>

Then it takes me to line 47 when I go into the Script editor and from there I am lost.

Please help :-(
Please get the legal version of rmxp from download.com and I will be able to tell you your problem
Hi, great script, fair bit works great for what I need, but there's a problem i've encountered with this part of the code:

  #--------------------------------------------------------------------------
  # * Enemy Secondary Stealable Items
  #   syntax enemy_id => [id, type, chance]
  #   where id is the id of the id
  #         type is 1: item, 2: weapon, 3:armor
  #         chance is the chance of stealing
  #--------------------------------------------------------------------------
  Secondary_Items = {
  1 => [5, 1, 40]
  }
  #--------------------------------------------------------------------------
  # * Enemy Rare Stealable Items (see Secondary Items)
  #--------------------------------------------------------------------------
  Rare_Items = {
  1 => [3, 1, 20]
  }
Expand to see the code.


I've tried every way I can think of to add more enemies to hold secondary and rare items, and every way I try, either I get a syntax error or only the first in the list holds the items, the next load won't show up or are stealable. Just wanted to know what the correct syntax for that part is.

Cheers,
Rob
Here is an example
  Secondary_Items = {
  1 => [5, 1, 40], 2 => [5, 0, 30], 10 => [8, 1, 80]
  }
Expand to see the code.


It is a hash the value to the left of the => is the key and the value after is the value entries in the hash are to be separated by a comma (,)

Example
hash = {2 => 3, 4 => 8, 8 => 4,
3 => 7
}
Thanks, works like a charm, but I just wonder, is there a way to steal all three items an enemy holds instead of just one? I did fiddle around and see but to no avail. You probably guessed, I do suck at this.
No, when you steal it is one item per steal, I did not set it up to do that
Hey just noticed the skill that steals a skill for three turns doesn't really work out right. I steals the skill for three turns but it only actually works for two. What it does once you steal it is that you can use it fine the fist two times but on the third you can select it but it won't actually perform the action. Oh and btw, when it says steal the skill does that mean the orginal one it was stolen from can not use it while it's stolen?
[QUOTE=Raven The Dark Angel;199988]Hey just noticed the skill that steals a skill for three turns doesn't really work out right. I steals the skill for three turns but it only actually works for two. What it does once you steal it is that you can use it fine the fist two times but on the third you can select it but it won't actually perform the action. Oh and btw, when it says steal the skill does that mean the orginal one it was stolen from can not use it while it's stolen?[/QUOTE]

I'll look into this

yes when you steal a skill from an enemy the enemy can't use that skill (unless the enemy has two actions with the same skill) but I haven't looked at this script in a good while
I'm not using SDK. N I cant find the steps u mentioned to delete SDK in the script. Actually, how can I delete it?
Is it possible to merge this with SephirothSpawn's dynamic enemy drops script?
Hello......
Any1 can help???
Ahhhhhhhhhh , I can't download the Demo , please re-upload it !
Hix hix !

!
[QUOTE=Keke;210602]Ahhhhhhhhhh , I can't download the Demo , please re-upload it !
Hix hix !

![/QUOTE]

God, did you see Trickster's signature?
can this work with mr mo abs cause my game isnt turn based?
Could you please upload the demo in other site, like rapidshare, turboupload or something like that because I tried to download that script and many other great scripts from you and other scipters but I couldnt ... Please could you upload some place else other than the forum ?
:| What is WRONG with box.net

Its fine.
[QUOTE=zech04;210870]can this work with mr mo abs cause my game isnt turn based?[/QUOTE]

See post in Multi-Equip please

[QUOTE=ZEROMUS;210878]Could you please upload the demo in other site, like rapidshare, turboupload or something like that because I tried to download that script and many other great scripts from you and other scipters but I couldnt ... Please could you upload some place else other than the forum ?[/QUOTE]

No I will not upload it somewhere else if you can't get the file then tough luck, the download link is available in my signature and asking this question in a script topic is spam since it has nothing to do with the script
Hi Trickster, I was wondering if there was a way to make this compatible with your Skill Effects script.

Thanks for your time!
i'm getting a
Script 'Steal System' line 716: NoMethodError occurred.
undefined method 'each_key' for nil:NilClass


line 716 is : self.skills_gained.each_key do |skill|


error.... whenever i use scan... in battle, (edit: actually it just showed the error when i just did fight for both characters, so after selecting what ability's but before animations? )

edit: i need help please!!! .......its sad when the battle gets an error
great script, wish i could run it. LOVE SCRIPT keep the good work up...
What other scripts are you using in your project?
method and class 2.0(i think), animated gradient, exseikens party switcher, state cycler, sephys colored stat bars, then the steal/mug/scan script, level up window, and a "new characters when they join are an average lvl" script...
i think most of these have your user name on them.. lol....
(oh and the battles have been working lately....just as long as i don't touch scan)
Can you send me a demo by PM?
hey trickster man i wanted to know if i could get a rewrite of this script for ZTBS or just a script to make the skills call on common events which ever would be easier for u plz
wow this was orinigally made a year ago and i still have no clue how to apply it. i was looking for a way to add stealing and reading through this im not sure what im supposted to do.

my guess was copy the Steal file. add the skills. open up Script Editor and find Steal but there wasnt one. Im entirely new to Rmxp and i know nothing about applying scripts or anything. would you mind giving a more simple explainion of how to apply this cause my hair is falling out trying to figure out.

and FYI last time i tryed to apply a script i destory the game and and to start over. happen like 3 days ago.
Trickster I am getting RTAB 1.16 from Cogwheel error 1559. Only with 6.3 i like new scan window can you help me out i hate using 6.0.

There is already a patch out for 6.3 wow, nevermind trickster nice work i can finally use it thanks to you and durwulfman!
I'm still having one problem with Minkoff 10.0 does it work with that, i mean like scan window shows the whole battler set rather than on 6.0. it shows 1 zoomed image.
Nevermind again I forgot your demo didn't have this.. If anyone downloads this and is using RTAB/Minkoff so on w/e here is what you need for scan.

I did not make this Durwulfman did.

<>Goes above main
<>Below Battle System
<>Below Scene_title edits.

-Name this Code Minkoff Patch/or Scan Fix for Animated Battlers.

#==============================================================================
# ** Scan_Window for 6.3.
#------------------------------------------------------------------------------
#  This window displays information about the enemy being faced in battle.
#============================================================================== 


class Scan_Window < Window_Base

  # Edit Here
  $frames = 4     # Duplicate of frames in Minkoff's Animation Script
  $poses = 11     # Duplicate of poses in Minkoff's Animation Script

  #--------------------------------------------------------------------------
  # * Draw Graphic
  #     battler : battler
  #     x       : draw spot x-coordinate
  #     y       : draw spot y-coordinate
  #     width   : width of battler image
  #     height  : height of battler image
  #-------------------------------------------------------------------------- 
  def draw_battler(battler,x,y,width,height)
    bitmap = RPG::Cache.battler(battler.battler_name, battler.battler_hue)
    w = bitmap.width
    h = bitmap.height
    zoom_x = w
    zoom_y = h
    if (w > width) or (h > height)
      zoom_x = width if w > width
      zoom_y = height if h > height
    end
    dest_rect = Rect.new(x, y, zoom_x, zoom_y)
    src_rect = Rect.new(0, 0, w/$frames, h/$poses)
    self.contents.stretch_blt(dest_rect, bitmap, src_rect, 255)
  end
 
  #--------------------------------------------------------------------------
  # * End of Class
  #-------------------------------------------------------------------------- 
end
Expand to see the code.


-Name this Code Minkoff Patch/or Scan Fix for Animated Battlers.

[HTML]#==============================================================================
# ** Scan_Window v 2
#------------------------------------------------------------------------------
# This window displays information about the enemy being faced in battle.
#==============================================================================

class Scan_Window < Window_Base

#--------------------------------------------------------------------------
# * Draw Graphic
# battler : battler
# x : draw spot x-coordinate
# y : draw spot y-coordinate
# width : width of battler image
# height : height of battler image
#--------------------------------------------------------------------------
def draw_enemy(battler,x,y,width,height)
bitmap = RPG::Cache.battler(battler.battler_name, battler.battler_hue)
if DEFAULT_ENEMY_ID.include?(battler.id)
cw = bitmap.width
ch = bitmap.height
src_rect = Rect.new(0, 0, cw, ch)
x = x + (cw / 2 - x) if cw / 2 > x
self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect, 255)
else
w = bitmap.width
h = bitmap.height
zoom_x = w
zoom_y = h
if (w > width) or (h > height)
zoom_x = width if w > width
zoom_y = height if h > height
end
dest_rect = Rect.new(x, y, zoom_x, zoom_y)
src_rect = Rect.new(0, 0, w/$frames, h/$poses)
self.contents.stretch_blt(dest_rect, bitmap, src_rect, 255)
end
end

#--------------------------------------------------------------------------
# * End of Class
#--------------------------------------------------------------------------
end[/HTML]
Aw, smack! That's my goof-up. The patch still has $global values and not CONSTANTS for frames and poses (at the bottom). Still... I also have to alter it to recognize 'multiple' battler types, not just one layout.

*Discussion on THIS patch... done*
When will it be done?

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=5151