Customizing Menus and GUI in general

Status
Not open for further replies.

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
when you do something bad, start with just commenting out rather than complete removal, it makes debugging errors easier since you can carry out more tests and pinpoint which line or lines causes errors... you can try the one I posted, I'm not sure if it works though (cannot test coz I'm in Ace Lite right now)
 
Last edited by a moderator:

negative_headed

Hard to Read
Veteran
Joined
Aug 28, 2013
Messages
115
Reaction score
16
First Language
English
Primarily Uses
I tried doing what you did to draw_actor_xparameter and now it draws only a number and no name due to there being no appearent vocabulary assigned to the xparam. Though even the numbers seem to be entirely off anyhow. Instead of the base 95% hit and 5% eva that the game default set to classes which I left unaltered it returned

[0] as 0.04 and [1] as 0.0 so.... this is reaching new levels of confusion for me...
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
I commented out the vocab for xparam which is why it doesn't show a value... try a different number, it might just be displaying the wrong xparam...
 

negative_headed

Hard to Read
Veteran
Joined
Aug 28, 2013
Messages
115
Reaction score
16
First Language
English
Primarily Uses
I commented out the vocab for xparam which is why it doesn't show a value... try a different number, it might just be displaying the wrong xparam...
Your right it was displaying [2] and [3] since I forgot one of the things I did the first time was to change

2.times {|i| draw_actor_xparam(@actor, x, y + line_height * i, i + 2) }to

2.times {|i| draw_actor_xparam(@actor, x, y + line_height * i, i) }So I just forgot something in the rush to get back to you.

Now to figure out how to draw their names... and then on to variables....
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
just remove the # sign in the part that draws names and maybe change it to Vocab::xparam instead of Vocab::param
 

negative_headed

Hard to Read
Veteran
Joined
Aug 28, 2013
Messages
115
Reaction score
16
First Language
English
Primarily Uses
just remove the # sign in the part that draws names and maybe change it to Vocab::xparam instead of Vocab::param
Already tried that, vocab:: is actually a command to retrieve from the stuff you set up in the terms section for somethings and others being like skill usage blah blah.

So I can't retrieve from a list that doesn't exist so it looks like I have to manually set it within the script itself first... not sure how to approach that just yet but I'm looking.

Example, this is the what vocab:: is for param

# Parameters def self.param(param_id) $data_system.terms.params[param_id] endbut no such thing exists for xparam so I have to set it up in, I assume some array or another manually.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
vocab is a module not a command... XD... anyway, why not just add it there? or directly to your script... though maybe putting it in vocab is better so that you can use it in any other script...

just go to the vocab module at the top of the script list, then add your new strings there
 
Last edited by a moderator:

negative_headed

Hard to Read
Veteran
Joined
Aug 28, 2013
Messages
115
Reaction score
16
First Language
English
Primarily Uses
vocab is a module not a command... XD... anyway, why not just add it there? or directly to your script... though maybe putting it in vocab is better so that you can use it in any other script...
Yeah, my vocab is busted, module it is, I think I meant command more as a thought of vocab:: "Hey do get me that list!" ... pay it no mind...

I'm trying to add it to vocab but I'm not actually sure how since vocab retrieves param from $data_system I don't really have much to go off of as far as reverse engineering goes... I'm actually basically back to where I was before I came here so I guess that means up until this point I was on the right track but now I'm not sure exactly how to set vocab:: for each xparam in the array that I need vocab for... which honestly is only the first two so that's cool I guess...
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
you can just do it directly, but if the string exists in the database like for the params (which is why vocab retrieves it from $data_system, so that it takes into account any changes you make in the param names in the database) it might be better to fetch it there...

but you can always just do something like this...

module Vocab

 def self.xparams(id)

    case id

    when 0

        return "Hit"

    when 1

        return "Eva"

 end

end
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
or

Code:
  self.xparams(id)    ['Hit', 'Eva', ...][id]  end
 

negative_headed

Hard to Read
Veteran
Joined
Aug 28, 2013
Messages
115
Reaction score
16
First Language
English
Primarily Uses
you can just do it directly, but if the string exists in the database like for the params (which is why vocab retrieves it from $data_system, so that it takes into account any changes you make in the param names in the database) it might be better to fetch it there...

but you can always just do something like this...

module Vocab

 def self.xparams(id)

    case id

    when 0

        return "Hit"

    when 1

        return "Eva"

 end

end
Alright, thank you, with a small edit to that it works,

# XParameters def self.xparam(xparam_id) case xparam_id when 0 return "Hit" when 1 return "Eva" end endwas that I modified it to to get it to work, now from here I can essentially define all x_param if needed. Thank you. We got off on a rough start but once we got there we got there.

Also... shaz's just looks so much more organized... I'll have to look at that a little more.... "messy messy messy" - Double D (I think)

Now to figure out variables....
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
hmm... I forgot to put end for the case block... XD...

Shaz' method is easier to manage and shorter and long as you're working on an array where you need each successive indexes...

but if you're skipping a few or many indexes I won't suggest that as you might get confused...
 
Last edited by a moderator:

negative_headed

Hard to Read
Veteran
Joined
Aug 28, 2013
Messages
115
Reaction score
16
First Language
English
Primarily Uses
hmm... I forgot to put end for the case block... XD...

Shaz' method is easier to manage and shorter and long as you're working on an array where you need each successive indexes...

but if you're skipping a few or many indexes I won't suggest that as you might get confused...
Yeah, honestly It's probably better to just stick to what I just now finally got to work. I can always play with whatever that pretty thing was later. For now I need to be happy I finally got rid of that one problem.

EDIT:

Honestly with just having figured that out I "Should" be able to proceed with modifying the rest of my menus rather easily... in theory...
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top