[VX Ace] Trouble with Dekita Element Control

Andrios

Villager
Member
Joined
Jun 18, 2015
Messages
5
Reaction score
0
First Language
Italian
Primarily Uses
Hi people, i'm a newbie without any script knowledge, i tired to insert some scripts in my project just to try out the results, but i get an error on line 408 of the Element Control by Dekita

It says:

            Script '$D13x Element Control' line408: NoMethodError Occurred.

            undefined method []' for nil:NilClass

           That's the script line:

              return Ele_Fixx::Element[element_id][:def_ele][1]

If you need the complete script you can go there:

https://dekitarpg.wordpress.com/2013/03/26/d13x-elemental-control/

Thanks in advance,

Andrios
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
Did you save after inserting the scripts and then begin a New Game?  A lot of scripts will throw an error if you try to use them with an already existing save file.
 

Andrios

Villager
Member
Joined
Jun 18, 2015
Messages
5
Reaction score
0
First Language
Italian
Primarily Uses
Well i threw the script in the script list, saved, then used it in the "Test Game" on an already created map, but the game is far from being finished.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
Afraid that is not enough. You *must* start a new game once you add that script, as it is looking for variables that do not exist in your save game. In fact, it is always a good idea to start a new game every time you add a script.

If you still run into that error after selecting the new game option, let us know.
 

Andrios

Villager
Member
Joined
Jun 18, 2015
Messages
5
Reaction score
0
First Language
Italian
Primarily Uses
Ok, I tried but it still happens, I've even insert only Dekita's scripts and not all the others that i have, just to see if it was caused by some incompatibility problems, and i still run into that exact same error :/

Thanks for the replies by the way :D
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
Okay, just to be 100% sure before making suggestions:

You do select 'New Game' and not 'Continue' from your title screen?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
What have you done about configuration of the script?
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
Reading through the posts there is a bug where Dekita forgot to account for normal attack in setting up the initial array, which results in that error you see. I think there is a fix, but I don't have it right now, and it is probably best to ask Dekita for it.
 

Andrios

Villager
Member
Joined
Jun 18, 2015
Messages
5
Reaction score
0
First Language
Italian
Primarily Uses
Ok thanks, and yes, is happening for the normal attack, even tho i didn't try using a skill yet, i'll ask Dekita then, bye and thanks to all :D
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,231
Members
137,607
Latest member
Maddo
Top