RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Troop Fix

0 Members and 1 Guest are viewing this topic.

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
PAC Troop Names
Version: 1.0a
Author: Welfare-Daddy Pacman
Date: 28/4/2011

Version History

  • 27/4/2011 - Version 1.0 - Original release
  • 28/4/2011 - Version 1.0a - Revamped. See reply 3.

    Planned Future Versions

    • I'll do anything you want, babe.

    Description


    Ever been annoyed at the default 'Slime A, Slime B' system that shows up in battle? Ever wanted to shoot it? Now, you don't have to! All you need is this simple snippet to change the letters into numbers.

    Features

    • Easily customizable rewrite of the troop enemy names for multiple of the same enemies.
    • Choice for not using the unique name system at all.

    Screenshots

    NAH MATE.

    Instructions

    Put in values in the LETTER_TABLE array below if you don't like my numerals. Use Roman Numerals, your own charcters, whatever as long as you put a space after the first ' and a comma and another space after the second '. Make sure you are using enough values to compensate for the amount of enemies you have in your largest troop: if you don't it will go like 1, 2, 3, 1, 2, 3 etc.

    Script


Code: [Select]
#===============================================================================
#
# Pacman Advanced Creative (PAC) Engine - Troop Fixture
# 27/4/2011
# Type: Utility
# Installation: Optional arrays and booleans.
# Level: Super-Simple
#
#===============================================================================
#
# Description:
# Ever been annoyed at the default 'Slime A, Slime B' system that shows up in
# battle? Ever wanted to shoot it? Now, you don't have to! All you need is this
# simple snippet to change the letters into numbers.
#
#===============================================================================
#
# Instructions:
# INSTALLATION
# Stick this in its own slot above main and below materials. Useable but not
# dependent on other PAC scripts or format.
# CONFIGURATION
# If you want, go to line 46 and change USE_FIX if you don't want to use the
# system.
# Put in values in the LETTER_TABLE array below if you don't like my numerals.
# Use Roman Numerals, your own charcters, whatever as long as you put a space
# after the first ' and a comma and another space after the second '.
# Make sure you are using enough values to compensate for the amount of enemies
# you have in your largest troop: if you don't it will go like 1, 2, 3, 1, 2, 3
# etc.
# If you are using PAC Large Troop, make sure you find the largest troop you
# have set and use the highest number from that for your last value, i.e. if
# you've made a 16 enemy troop, make sure you set 16 or more values.
#
#===============================================================================
#
# EDITING BEGINS AT LINE 53. DO NOT TOUCH LINES 40-51. YOU MAY TOUCH LINE 46.
#
#===============================================================================

$imported = {} if $imported == nil
$imported["PACTroopFix"] = true

module PAC
  module TROOP
    USE_FIX = true  # If you must, set this to false to not use the system.
  end
end


class Game_Troop < Game_Unit
  if PAC::TROOP::USE_FIX
   
#===============================================================================
#
# BEGIN EDITING
#
#===============================================================================
   
    LETTER_TABLE = [' 1', ' 2', ' 3', ' 4', ' 5', ' 6', ' 7', ' 8', ' 9', ' 10',
                    ' 11', ' 12', ' 13', ' 14', ' 15', ' 16', ' 17', ' 18',
                    ' 19', ' 20', ' 21', ' 22', ' 23', ' 24', ' 25', '26']
                   
#===============================================================================
#
# This script no longer requires editing. Do not edit anything in this script
# unless you are a compenent scripter. Should you edit without any scripting
# education, it may result in me tutting at you for getting it wrong.
#
# Although, it is only four lines. Bah, you'll screw it up anyway.
#
#===============================================================================

  else
    LETTER_TABLE = ['']
  end
end

#===============================================================================
#
# END OF SCRIPT
# I BET YOU GET A SYNTAX ERROR THOUGH
#
#===============================================================================

Credit


  • Just me this time. ;9

Thanks

  • Modern Algebra for being amazing.
  • Zeriab............""                    "".

Support


Not that you'd need it, but you could just post here or PM me.
Preferably, post here.

Known Compatibility Issues

This script edits ONE THING. That thing serves ONE PURPOSE. Therefore, unless another script alters this ONE THING, it is likely that either the scripter is bad or the script does the same thing, or more, than this one. This will be compatible with %99.99999999999999999996127 of scripts, addons, mods and explosions.

Demo


This will be in a demo of my upcoming script pack, but it is far too simple to deserve a demo.

Author's Notes
You may notice that the script mentions the PAC Large Troop script. That'll be released soon. Worry not. Everything I write gets released.

Restrictions

Don't take credit for my work, edit freely, don't redistribute with your name. If you absolutely must post this on another forum, link to this topic or my profile here.
« Last Edit: April 30, 2011, 04:48:00 PM by Welfare-Daddy Pacman »
it's like a metaphor or something i don't know

***
Rep:
Level 84
Yes, hoh my gawd!
Or if you want to remove the system period, replace the numbers with empty strings. :D Nice job!

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
That actually did not occur to me. Doi.
Really, this took 3 minutes to make. I just found the bugger in Game_Troop and put it into another script so I didn't have to explain how to do it to people. :P
Thanks g_g.

Actually, if you put LETTER_TABLE as [], it gives you a tasty divzero error because the make_unique_names method in Game_Troop has the clause:
Code: [Select]
enemy.letter = LETTER_TABLE[n % LETTER_TABLE.size]
which of course is dividing by zero if the size of LETTER_TABLE is, well, zero. I've seen people work around these before, so I'll take a crack at fixing that. The most obvious solution is really just putting '' in the array.
So, if you don't want unique names, just put '' in the LETTER_TABLE array. Simple.
« Last Edit: April 30, 2011, 04:31:09 PM by Welfare-Daddy Pacman »
it's like a metaphor or something i don't know

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
Disregard that post, for I offer a solution. 1.0a is up, adding the aforementioned choice via a boolean in line 46.
it's like a metaphor or something i don't know

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
What did I do? :P

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
Be awesome, duh.
it's like a metaphor or something i don't know

***
Rep:
Level 74
I'm baaack!
I accualy did that for a game before (Not to numbers just to blanks) and I didn't need another script...

All I did was go to the script Game_Troop and change all of the letters to blanks. I think your script makes it easier for lazy people but it also increases the size of a game for every script and image you add to it.

This was about 7 months ago (not sure if that's correct) and I haven't thought about it since so my first guess being Game_Troop means this edit is simple for everybody to make.

Im not trying to make you feel like time has been wasted but it is simple. At least with your script you don't need to figure anything out for yourself... that usually takes longer...

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
That is - exactly - what this script does. I even said it in the top post. The intention of this script is to help lazy people, as is a lot of the other PAC scripts.
Scripts don't add that much to the filespace, but you are right.
In fact, the way you described it is the exact way I made this script. Just trolling through the default scripts and saw the bugger laying there. I decided, "why not help others with my amazing discovery?"
it's like a metaphor or something i don't know