Jump to content
New account registrations are disabed. This website is now an archive. Read more here.

Zambatoh

Member
  • Content Count

    3
  • Joined

  • Last visited

About Zambatoh

  • Rank
    Newbie
  • Birthday 02/13/1989

Contact Methods

  • Steam Profile
    demonlorddante89

Profile Information

  • Gender
    Male
  1. I didn't use the ' in the box. Although I did figure out the problem. In the call script command I accidentally typed "call Class_test.new". I deleted the word call and it worked fine ;) So does this mean I passed the first assignment? :lol:
  2. I think so. I'm still pretty new at coding in general. :P EDIT: whoops I came across a no method error. I'm not really sure what that means. I created an NPC on my map and then I used the "Call Script" command on him when you try to talk to him. A window pops up "Printing" the 3 variables and then it says NoMethodError occurred while running script. undefined method `call for #<Interpreter:0x2275ed0> Can you tell me what went wrong? The script I used class Class_Test def initialize @variable1 = 1 @variable2 = 2 localVariable = 3 print localVariable method_2 end def method_2 print @variable1 print @variable2 end end
  3. Can you explain these instructions to me? I dont know what a call script is or what you meant by "(Don't forget the 'new'!)"
×
×
  • Create New...