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 34,308 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Message Text from Files DerVVulfman 0 5,286 04-13-2016, 03:25 AM
Last Post: DerVVulfman
   Text Extraction Generator DerVVulfman 5 12,954 10-13-2014, 09:32 PM
Last Post: Narzew
   Damage Text Revamp 2.1 PK8 3 12,832 04-08-2012, 06:47 PM
Last Post: PK8
   Record AVI using RGSS Armorphor 4 11,566 09-22-2011, 06:58 AM
Last Post: Armorphor
   Auto-Sizing Text Windows RPG Advocate 9 18,937 06-11-2011, 06:18 PM
Last Post: sagam12
   Another Scrolling Text Script kyonides 1 6,478 04-12-2010, 01:36 AM
Last Post: Shiroiyuki
   Damage Text Edit ParaDog 0 5,073 03-05-2008, 08:22 AM
Last Post: ParaDog
   Window - Hidden RGSS Class Selwyn 0 7,307 03-03-2008, 06:51 AM
Last Post: Selwyn
   Command Windows - Animated Text Selwyn 0 4,325 03-03-2008, 06:18 AM
Last Post: Selwyn



Users browsing this thread: 3 Guest(s)