Hello everybody.
I'm using two scripts:
Bubble - Blue Magic
Victor Eng - State incapacity (of course, your basic module also)
Script of the bubble, offers <kill state> command, which is placed in a state.
This command will cause: "When applied the state, the actor or enemy will die."
Actor "X" use in Enemy = Ok (Perfect)
Actor "X" in use "Actor Y" = Ok (Perfect)
Actor "X" use itself (Actor "X") = Error
Line 396: NoMethodError ocurred
Undefined method 'item' for nil:NilClass
Could someone help me? (demo attached)
Error Victor + Bubble.rar
(request) Correct line 396.
● ARCHIVED · READ-ONLY
-
-
Are you playing from a saved file that you created before adding the script to the game? If so, start a new game and see if the error still happens.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you. -
:unsure:
no... look the demo :rock-right: :D -
download the demonstration.
-
Okay, after looking at your demo (using the full error backtrace script because I actually only know a little scripting, but it helps point out the real problem sometimes) I noticed that this is only pretty much effecting the blue magic script, which in turn is cascading down to the battle scene; it seems it can't execute the action (and for some reason because of that is causing the blue magic script to throw an error on the line, possibly because the line is referring to the current action)
I then tested it with other blue magic scripts (found on the master script list) and it didn't throw any errors, so it's just caused by the way Mr. Bubble wrote the script.
This blue magic script is a lot like the one you're currently using (though the setup is mostly in the script itself) and it doesn't throw any errors. (other than that, I'm afraid that's as much help I can give... I don't really use battle scripts that much) -
tiagoms, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
-
I found a bug.
This bug occurs both in the script "Adiktuzmiko - Extends Blue Mage" and the script "Mr. Bubble - Blue Mage".
"Adiktuzmiko - Extends Blue Mage"
Site: lescripts.wordpress.com/rgss3/extended-blue-magic/comment-page-1/
"Line 426: No MethodError ocurred.
Undefined Method 'item' for nil: NilClass.
"Mr. Bubble - Blue Mage"
Site: http://mrbubblewand.wordpress.com/rgss3/blue-magic/
"Line 396: No MethodError ocurred.
Undefined Method 'item' for nil: NilClass.
To find the bug, follow these steps:
1 - Create a spell
2 - Add the application of a state that magic
3 - This state should disable the user (exemple: sleep, paralyzed, stunned)
4 - apply this magic in the own user (example: Actor 1, use in actor 1)
See the bug.
(ps- The "script victor" has no influence on the bug.)
Would anyone help me? -
"undefined for NIL" and a lot of similiar errors basically say that the script has not initialized its own data.
Since most scripts only initialize themselves on "new game", in 99% of all cases those errors happens if you load an old savegame after changing the scripts or scripted parts of the database.
Or basically those messages are 99% user error, not script error.
So in your "follow these steps" you;re missing the description of what you have done between making the state and applying it ingame - did you start a new game as step 3.5 or did you load a savegame? -
I not loading a "save game".
I only use the "New game".
=)
------------EDIT 2-----------------------------
***** Resolved (By Masked)
Change line problms per:
item = @subject.current_action.item if @subject.current_action -
I shared the other script more as one you could switch out for Mr Bubble's; not used with (they basically do the same thing, so there was no reason to use them both)
Anyway, it seems like you got this solved; I just wanted to explain that for future reference.
Sent from my iPod touch using Tapatalk -
the problem now, is compatible with the "Yami Battle Symphony". :D