Note Tag

DaneReid

Musician
Veteran
Joined
Sep 29, 2012
Messages
90
Reaction score
6
Primarily Uses
Hello, is it possible to change an actors note tag in gameplay?
 

ShadowLurk

Tanoshii~
Veteran
Joined
Feb 14, 2014
Messages
226
Reaction score
53
Primarily Uses
You should not need to do this. Why do you want to change it anyway?
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,204
First Language
Binary
Primarily Uses
RMMZ
Hello, is it possible to change an actors note tag in gameplay?
Yes it is.

Is it wise to change an actors notetag during gameplay?

Most definitely not!! DONT DO IT!
 

DaneReid

Musician
Veteran
Joined
Sep 29, 2012
Messages
90
Reaction score
6
Primarily Uses
There is a reason for this...

I'm using Victors Animated Battlers script also I created my own "Character Creation" system. In order to use Victors Animated Battlers script you need to add a note indicating which character graphic you are using. Since I have the character creation system, there are many character graphics to use. So if I need to use a graphic when you are creating the character, I would also need to add a note to that actor data base, in game.

Does that make sense? My explanation skills aren't that good yet.
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,204
First Language
Binary
Primarily Uses
RMMZ
You still shouldnt need to change the database notetags. It sounds like it would be wiser to simply modify the method that reads the notatag to take the data from an actor variable, which is changed depending on which character you choose.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
There is a reason for this...


I'm using Victors Animated Battlers script also I created my own "Character Creation" system. In order to use Victors Animated Battlers script you need to add a note indicating which character graphic you are using. Since I have the character creation system, there are many character graphics to use. So if I need to use a graphic when you are creating the character, I would also need to add a note to that actor data base, in game.


Does that make sense? My explanation skills aren't that good yet.
You may need to re-think your creation system then.


Changing a note-tag doesn't mean other scripts are going to reload them.


Maybe his script does, but you should probably just modify his method to pull the sheet from somewhere else.
 
Last edited by a moderator:

DaneReid

Musician
Veteran
Joined
Sep 29, 2012
Messages
90
Reaction score
6
Primarily Uses
You still shouldnt need to change the database notetags. It sounds like it would be wiser to simply modify the method that reads the notatag to take the data from an actor variable, which is changed depending on which character you choose.
You may need to re-think your creation system then.

Changing a note-tag doesn't mean other scripts are going to reload them.
Hmm alright, I'll see what I can do. Thank you.
 

Rieker

>9000 pixels
Veteran
Joined
Jan 16, 2014
Messages
82
Reaction score
17
Primarily Uses
Hmm, i need to do the same sort of thing. Throughout the game you will be able to select new "suits" for your character, problem is changing the battler graphic in the note tag. So if you find a way let me know lol
 

DaneReid

Musician
Veteran
Joined
Sep 29, 2012
Messages
90
Reaction score
6
Primarily Uses
Hmm, i need to do the same sort of thing. Throughout the game you will be able to select new "suits" for your character, problem is changing the battler graphic in the note tag. So if you find a way let me know lol
I see what you're trying to do. Yeah I'll let you know if I figure something out.
 

Mouser

Veteran
Veteran
Joined
Aug 19, 2012
Messages
1,245
Reaction score
264
First Language
English
Primarily Uses
Why not just have your character creation script change the actors variables directly (through accessor methods you write)?

This way, the note tag values are simply ignored.

Note tags are an awful hack to begin with - trying to change them mid stream is asking for all sorts of trouble.

In your case I would suggest first having your character creation system set all the variables, including character graphic, then change Victor's script to read the character graphics you created, rather than loading the value from note tags.
 

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
the purpose of the notetags should simply be to have a base value to load for the data. any in-game changes should be made to the data directly...


so for example, if you have a variable named lolz for $game_actors, it should only load the notetags during init... and if you wanna change it in-game just modify the lolz variable directly
 
Last edited by a moderator:

Rieker

>9000 pixels
Veteran
Joined
Jan 16, 2014
Messages
82
Reaction score
17
Primarily Uses
I tried...i failed

  def char_graphic

     if $game_variables[30] = 2

     $game_actors.set_graphic("testgraphic")

 

i have no clue what I'm doing but i don't understand how to add a graphic to a variable...i tried many different ways other than that one^^ but i give up lol
 

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
$game_actors is an array, you'd need to access a specific actor in that...


for example if you want to get actor 1, you'll use $game_actors[1]
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,204
First Language
Binary
Primarily Uses
RMMZ
the comparable operator you used is also invalid.

= makes something equal a value

== checks if something is equal to a value..

It would look more like this (not tried or tested or anything)

  alias :gphc_var_thing :char_graphic  def char_graphic     if $game_variables[id] == value      return "Graphic Name"    end    grpc_var_thing # < to call orig method  end
Thats obviously assuming that you are aliasing a method and not creating a new method.

Note:

If you honestly have no idea how to script, ,it really isnt a smart idea to start with a battle script mod...
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
Note:

"If you honestly have no idea how to script, ,it really isnt a smart idea to start with a battle script mod..."

Those are words to live by there lol, seriously battle scripts are pretty much the most confusing kind of scripts to understand, only experienced scripters should even attempt to screw around with battle scripts.
 

Rieker

>9000 pixels
Veteran
Joined
Jan 16, 2014
Messages
82
Reaction score
17
Primarily Uses
It's not really a dumb idea.. i learned more than i knew 20 mins ago lol. But yeah i cant see me figuring this one out :)
 

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
please put a link to the script ur using, we might be able to help you more if you do that
 

Rieker

>9000 pixels
Veteran
Joined
Jan 16, 2014
Messages
82
Reaction score
17
Primarily Uses
http://victorscripts.wordpress.com/rpg-maker-vx-ace/battle-scripts/animated-battle/

Its victors anim battlers.

I changed line 4426 to   actor = char_graphic[battler.script_processing($1)]

char_graphic was the new method i was trying to make i assume, then i added

 

alias :test :char_graphic

  def char_graphic

     if $game_variables[30] == 2

     return "$char_lantern"

   test ????   

   end  

 

^^the :test test was because i didn't know what Dekita meant by :gphc_var_thing :)
 

Rieker

>9000 pixels
Veteran
Joined
Jan 16, 2014
Messages
82
Reaction score
17
Primarily Uses
I just realized that that wouldn't have worked anyway, since it would change all actors when i only want to change 1 at a time. Each actor would then need to have a list of graphics that correspond to the variable number.

Oops sorry double post.
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top