LOGIN
SEARCH
PROFILE
keys: ↑ ↓
LOGOUT
INDEX
MEMBERS
keys: ↑ ↓
HOME
PORTAL
PLAY ALONG
PLAY with WORDS
PLAY with GRAPHICS
PLAY with SOUNDS
PLAY with CODES
PLAY with PROJECTS
keys: ← →
Guest Access
Register:
Members:



Go to page : Previous  1, 2, 3, 4, 5  Next

View previous topic View next topic Go down Message [Page 4 of 5]

The only one
The only one
#31 Lumberjack script. In progress again... - Page 4 Empty Re: Lumberjack script. In progress again...
Loading

NuKa_BuBble

NuKa_BuBble
The only one
The only one
profile
Hey hey hey mr_wiggles, the script 'll work soon! There's the project, can you look it and say me what's wrong? Now, I can start the game but get error when I cut.
EDIT:
Look the tree, I forgot to change the call method. But gave the same problem anyway.

www.megaupload.com/?d=RYYB41KD
(19.54 Mb compress with winRAR)
The only one
Show Signature
The only one
http://nukabubble.deviantart.com/ http://soundcloud.com/nuka_bubble https://www.youtube.com/user/NuKaBuBble?feature=mhee
EVENTALIST
EVENTALIST
#32 Lumberjack script. In progress again... - Page 4 Empty Re: Lumberjack script. In progress again...
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
mr_wiggles wrote:no you need to create the variable.

Code:

class Game_Party
  attr_accessor :woodlvl # <-----
 
  alias :wood_init :initialize
  def initialize
    wood_init
    @woodlvl = 0 # <-----
  end
end

something like that.

Look at this example again. See that the variables match names.
EVENTALIST
Show Signature
EVENTALIST
The only one
The only one
#33 Lumberjack script. In progress again... - Page 4 Empty Re: Lumberjack script. In progress again...
Loading

NuKa_BuBble

NuKa_BuBble
The only one
The only one
profile
Yeah, but the class it's Woodcutting and the variable it's woodcutting_lvl, so the variable need to be the same.

EDIT 2s later:
Rolling Eyes Yeah I see why you said that. lumbering need to be call woodcutting!

EDIT 2:
So if I want to call it lumbering, I need to do:
Code:
class Game_Party
  attr_accessor :woodcutting_lvl
 
  alias :lumbering_init :initialize
  def initialize
    lumbering_init
    @lumbering = 0
  end
end
But I think it's better to call it woodcutting no?

EDIT 3:
But the problem in my script stay. Line 67: no method item_id for game_party class. But it's already initialize in the script Game_Party!!!


www.megaupload.com/?d=RYYB41KD
(19.54 Mb compress with winRAR)
The only one
Show Signature
The only one
http://nukabubble.deviantart.com/ http://soundcloud.com/nuka_bubble https://www.youtube.com/user/NuKaBuBble?feature=mhee
EVENTALIST
EVENTALIST
#34 Lumberjack script. In progress again... - Page 4 Empty Re: Lumberjack script. In progress again...
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
.... see thats a tricky error..

$game_party is being called and its not created yet. You need to make sure that when the game starts it doesn't change how the scenes are loaded into the game.

Code:

class Woodcutting < Game_Party
  @logs_ID = $game_party.item_id

You dont need to have woodcutting in its own class, you can build it into Game_party without messing it up, and it would be easier that way.
EVENTALIST
Show Signature
EVENTALIST
The only one
The only one
#35 Lumberjack script. In progress again... - Page 4 Empty Re: Lumberjack script. In progress again...
Loading

NuKa_BuBble

NuKa_BuBble
The only one
The only one
profile
I had think that was:
Code:
@logs_ID = $game_party.actors[0].item_id
Did'nt worked.

But I don't understand. Woodcutting is already in Game_Party class.

Code:
#------------------------------------------------------------------------------#
#-------------------------- Class Woodcutting ---------------------------------#
#------------------------------------------------------------------------------#
class Woodcutting < Game_Party

#------------------------------------------------------------------------------#
#                              Initialize                                      #
#------------------------------------------------------------------------------#
    def initialize
      @logs_number = 0
   
      @logs_ID = $game_party.item_id
It's why I asked you to look at my woodcutting project.

EDIT:
I'll be back in 12m see if I got an answer else, tomorrow.


EDIT 2:
I think I understand te problem, I want to check if the variable logs_ID is equal to the ID of the log in the database but, I check if the party poceed the item ID. So that 'll give nil cause the party don't have any logs! What do you think about that mr_wiggles?

So I'll need to do something like that:
Code:
@logs_ID = []
@logs_ID = $data_items[item_id].id[100..109]      #I ty to check if logs_ID is equal to the ID 100 to 109 in the item database. I know the code is wrong but I don't know how to do that.
The only one
Show Signature
The only one
http://nukabubble.deviantart.com/ http://soundcloud.com/nuka_bubble https://www.youtube.com/user/NuKaBuBble?feature=mhee
The only one
The only one
#36 Lumberjack script. In progress again... - Page 4 Empty Re: Lumberjack script. In progress again...
Loading

NuKa_BuBble

NuKa_BuBble
The only one
The only one
profile
I've send on Xas wordpress my karma points script. I'll do the same with my woodcutting script when it'll be finish. I look forward to finish it.
The only one
Show Signature
The only one
http://nukabubble.deviantart.com/ http://soundcloud.com/nuka_bubble https://www.youtube.com/user/NuKaBuBble?feature=mhee
The only one
The only one
#37 Lumberjack script. In progress again... - Page 4 Empty Re: Lumberjack script. In progress again...
Loading

NuKa_BuBble

NuKa_BuBble
The only one
The only one
profile
It's done, I try to resolve another error but that's look simple. I'll edit if I need help. cheers


EDIT:
Yep, I'll need help. When I try to cut the tree, nothing appens Laughing
BUT I DON'T GET ANY ERROR NOW!

Here's the new version
Spoiler:
The only one
Show Signature
The only one
http://nukabubble.deviantart.com/ http://soundcloud.com/nuka_bubble https://www.youtube.com/user/NuKaBuBble?feature=mhee
Administrator
Administrator
#38 Lumberjack script. In progress again... - Page 4 Empty Re: Lumberjack script. In progress again...
Loading

G@MeF@Ce

G@MeF@Ce
Administrator
Administrator
Administrator
profile
hey nuka - glad to see you are still at it,
finish what you start (it's what I always say, but not always do)

I'll offer what I can when I get back into playing with code. right now I'm behind on things for this site, real life busy.
Administrator
Show Signature
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr https://www.youtube.com/user/MrGameface101?feature=watch
The only one
The only one
#39 Lumberjack script. In progress again... - Page 4 Empty Re: Lumberjack script. In progress again...
Loading

NuKa_BuBble

NuKa_BuBble
The only one
The only one
profile
Hey hey, I know, finish what you started. You had learned me that. I remember our conversation in the chat. Surprised
The only one
Show Signature
The only one
http://nukabubble.deviantart.com/ http://soundcloud.com/nuka_bubble https://www.youtube.com/user/NuKaBuBble?feature=mhee
EVENTALIST
EVENTALIST
#40 Lumberjack script. In progress again... - Page 4 Empty Re: Lumberjack script. In progress again...
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
@nuka-

what i mean by in the game party class is that the wood cutting script is writin out of game party. So "class Woddcutting < Game_Party" change it to just "class Game_Party".
EVENTALIST
Show Signature
EVENTALIST

Sponsored content

profile

View previous topic View next topic Back to top Message [Page 4 of 5]

Go to page : Previous  1, 2, 3, 4, 5  Next

 

Chatbox system disabled
Personal messaging disabled