Shadowrun Random Safe Loot Script Request

This was previously posted in something I requested before, so I'm transplanting here... LOL

Here's my actual script that I started...

Spoiler
#=============================================================================# SHADOWRUN RANDOM SAFE LOOT# December 14, 2013 - Robynn Penelope Mussell (WickedVixen)# ©2013, WickedVixen / RPDGS -- ©2013, Robynn Penelope Mussell / RPGDS#-----------------------------------------------------------------------------# CONTACT: WickedVixen via the forums ()# or Facebook (Robynn Mussell)# or e-mail ([email hidden] / [email hidden])## MUST ALSO GIVE CREDIT WHEN USING THIS SCRIPT.#-----------------------------------------------------------------------------# Script is based in part on the safes that are in the MegaCorps in Shadowrun# (for SEGA Genesis/MegaDrive) and how they randomly generate items or nothing.#=============================================================================class Random_safe_loot# class constructordef initialize()end# class destructordef dispose()end#===============================================================================# ROLLER() FUNCTION / METHOD#===============================================================================def Roller( sides, addOne )result = 0fl_zero = falseresult = rand(sides)if (addOne == true) && (result == sides)result = 1fl_zero = 1endif (addOne = false) && (result == sides)result = 0endif (addOne = true) && (fl_zero = 0)result += 1end#** end of method / function Roller()end#** end of class Random_safe_lootendsafe_one = Random_safe_loot.newtext = 'You find 'ending = 'Q'msgbox_p( text, safe_one.Roller(19, true) * 25 + 25, ending )
In Shadowrun (Genesis/MegaDrive), the random loot safes in the buildings.  If you're looking for clues and such, you come across:

'grenades'

+frag

+stun

+concussion

'nuyen' (money)

'first aid kits'

'clips' (for guns)

'stim patches' (like first aid kits)

"You find nothing..."

<sometimes clues as to what floor to search> (this one's rather rare, but it can happen, especially with "client extraction"; maybe 1% - 3% of the time.)

and the ever-elusive package.

Also in Shadowrun, the corporations also have terminals that either have clues as to whereabouts of 'extraction client' or 'the package'

wall kiosks

(and some got to the 'matrix' while others allow you to turn off the security alerts and offer clues.  see pics).

Spoiler
NOTE--

I'm not going to attempt to recreate the "Matrix Runs" of Shadowrun! *Not Even*! :headshake:

Suffice it to say, I'd love to 😛 , but not for my current project.
LOL  This script would be a boon to have for the corps I'm planning to incorporate into the game.

I can see this being used for others in their games, to set up items and such, and randomness for them to be discovered when the chest or lootable object is opened.

Any ideas?

Here's the link for the screenshots that I promised.

This is the idea I had, but I'm learning to be a scripter...

Thanks for looking.
I've moved this thread to RGSS3 Script Requests (the forum you posted in is for you to share completed scripts, not to make requests). Please be sure to post your threads in the correct forum next time. Thank you.


I really have no idea what you're asking for here. You are assuming people have played Shadowrun. Bad assumption to make. It would also be better if you just stated facts, without the "chat" thrown in, as it just distracts from the things you're trying to get across. All of your different font styles make it hard to read too.


But anyway ... someone else might come by who knows what you're talking about.
Shaz:  Thank you.  I will drop in some screenshots about what I'm "requesting".  This is something that has me baffled and I would like some input and possibly a tutorial about checking "questing" for a "mini-quest" and parameters that I need to pass into this <class> to make this script actually work.
 

Spoiler
I've tested this and it runs with the random "money" in a little pop-up window before my game starts.  This is one of the things that I wanted to test for,  I have modified the script since this one's been posted, but "I need more input..." (Johnny 5 - Short Circuit) LOL
 
I will be adding the screenshots, like my other stuff in the Ace Resources section today.  Thank you again.  (I will be editing the previous post and fix the different text styles.  Thanks. 😀   Also, Shaz, could you delete the other post I made, if you haven't done it yet, where I posted the script, too?  That would stop some of the added confusion. LOL  Thanks.
I don't recall your other post. If it's still around and you don't want it anymore, just report it and ask the mods to close it. If you're talking about the first post in THIS thread, just edit it yourself and remove anything you don't want there 🙂

Original thread: https://forums.rpgmakerweb.com/threads/shadowrun-random-safe-loot-script-request.20946/