Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Trickster's Steal script Help.

Eventing_Guy

Awesome Bro

I was going to look for a steal script for a game... and the first thing recomended was Trickster's Steal Script. So looking through the forums here I found his thread about it. But the link was lost apparently.

So I went searching for it on the internet.
I found an editor that had it (Tricksters Steal script v6r2).

From what I understand, it's allows me to STEAL an Item from
an enemy based on what their droped item is in the data base.

There are 2 problems I don't understand.

1. - (Happens the most)
If I made the enemies dropped item "Potion".
It would give me an "Full potion"
which is 2 items down from potion in the item
database.


-2 (Sometimes)
There are even occasion where a completly
Random Item is given to me. and not what I wanted.


No Errors occur so I do not know any specific Line to go to.

If I made a link to download a copy of it, would anybody be
able to fix that?


(+Im sure the forums would love that script too.)
 
Yes, provide the link. I'll download the script, load it to this server, and update Trick's post.

looks like in the configuration, monsters are set up to hold 3 items. a regular item, secondary & rare items.
The demo may have this configured, so you're seeing the 'randomness'
 
If you find the area where the secondary & rare items are set up...

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]

  }

 

Just change the hash's to:

Code:
 

  Secondary_Items = {}

  Rare_Items = { }

 
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top