Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Text to RGSS
#2
I have been playing around with this, its pretty awesome and may just be what I am looking for. I modified the Mindless class into this.

Code:
module RPG
  class Mindless
    attr_accessor :id
    attr_accessor :name
    attr_accessor :species
    attr_accessor :hp
    attr_accessor :maxhp
    attr_accessor :mp
    attr_accessor :maxmp
    attr_accessor :level
    attr_accessor :attack
    attr_accessor :defense
    attr_accessor :spirit
    attr_accessor :speed
    attr_accessor :aptitude
    attr_accessor :iv
    attr_accessor :traits
    attr_accessor :ability
    attr_accessor :exp
    def initialize
      @id = 0
      @name = ""
      @species = ""
      @hp = 0
      @maxhp = 0
      @mp = 0
      @maxmp = 0
      @level = 0
      @attack = 0
      @defense = 0
      @spirit = 0
      @speed = 0
      @aptitude = 0
      @iv = [0,0,0,0,0,0,0]
      @traits = [0,0,0,0]
      @ability = 0
      @exp = [0,0,0,0,0,0,0,0]
    end
  end
end

and when I try to encrypt from my text file I get this
Quote:Script 'Data Encrypter/Decrypter' line 321: NoMethodError occurred.

private method `chomp' called for nil:NilClass
I know the error is with 'var_data = name[1].chomp', but that is as far as my knowledge goes lol.
I am not certain how to actually debug in this case, can you see anything obvious and point me in the right direction?

Here is the text file
Code:
id = 1
name = "Koromon"
species = "Dragon"
hp = 77
maxhp = 77
mp = 58
maxmp = 58
level = 3
attack = 52
defense = 35
spirit = 38
speed = 36
aptitude = 10
iv = [0,0,0,0,0,0,0]
traits = [1,0,0,0]
ability = 0
exp=[0,0,0,0,0,0,0,0]

id = 2
name = "Tsunomon"
species = "Beast"
hp = 94
maxhp = 94
mp = 57
maxmp = 57
level = 3
attack = 65
defense = 34
spirit = 35
speed = 30
aptitude = 10
iv = [0,0,0,0,0,0,0]
traits = [2,0,0,0]
ability = 0
exp=[0,0,0,0,0,0,0,0]

Reply }


Messages In This Thread
Text to RGSS - by DerVVulfman - 03-16-2011, 05:59 AM
RE: Text to RGSS - by dagarath - 03-17-2011, 06:20 AM
RE: Text to RGSS - by DerVVulfman - 03-17-2011, 06:45 AM
RE: Text to RGSS - by dagarath - 03-17-2011, 06:52 AM
RE: Text to RGSS - by DerVVulfman - 03-19-2011, 04:03 AM
RE: Text to RGSS - by eweeparker - 01-04-2013, 04:35 PM
RE: Text to RGSS - by DerVVulfman - 01-05-2013, 04:31 AM
RE: Text to RGSS - by MechanicalPen - 05-04-2013, 04:01 AM
RE: Text to RGSS - by DerVVulfman - 05-04-2013, 04:20 AM
RE: Text to RGSS - by MechanicalPen - 05-04-2013, 04:29 AM
RE: Text to RGSS - by DerVVulfman - 05-04-2013, 04:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Text Scroll Script - Enhanced DerVVulfman 23 30,239 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Message Text from Files DerVVulfman 0 4,688 04-13-2016, 03:25 AM
Last Post: DerVVulfman
   Customize/Disable Text Outline + Shadow (v1.1) Zerbu 3 7,059 11-01-2015, 03:56 PM
Last Post: DerVVulfman
   Text Sound Effect (SE) v1.1 Zerbu 3 7,325 11-01-2015, 03:53 PM
Last Post: DerVVulfman
   Text Extraction Generator DerVVulfman 5 11,541 10-13-2014, 09:32 PM
Last Post: Narzew
   Damage Text Revamp 2.1 PK8 3 11,736 04-08-2012, 06:47 PM
Last Post: PK8
   Victor Engine - Control Text Victor Sant 0 4,036 01-04-2012, 08:12 AM
Last Post: Victor Sant
   Record AVI using RGSS Armorphor 4 10,412 09-22-2011, 06:58 AM
Last Post: Armorphor
   Auto-Sizing Text Windows RPG Advocate 9 16,974 06-11-2011, 06:18 PM
Last Post: sagam12
   Another Scrolling Text Script kyonides 1 5,833 04-12-2010, 01:36 AM
Last Post: Shiroiyuki



Users browsing this thread: