mrbear
RPG Making Novice
Dont underestimate the bear's fury, just because he's adorable.
Posts: 102
|
Post by mrbear on Jun 22, 2005 14:14:26 GMT -5
ok here goes... when I try to delete things in the trash, sometimes I get a warning that I do not understand (I find the grammer in some of the help text Illegible) It says something about the database numbers changing? Is this something I need to worry about while programming? something in the "help" section for sort database suggests that I would only have trouble with saved game progress data is it ok to delete.....
|
|
|
Post by Rodak on Jun 22, 2005 14:21:21 GMT -5
Is this something I need to worry about while programming? It depends how you use the "Sort" command. If you create scripts that use Database Numbers as variable values, do not delete unless you want to edit all such scripts. That is why I sort "Inputs" when possible. That allows you to use Text strings and not database numbers. See Dungeon Warden's FAQ for details (and I know you have it because I e-mailed it to you). If you have questions, you know what to do! Peace.
|
|
mrbear
RPG Making Novice
Dont underestimate the bear's fury, just because he's adorable.
Posts: 102
|
Post by mrbear on Jun 22, 2005 14:36:45 GMT -5
okaaaaay.... I will definatly have more questions once I understand all the "database for var""var for DB""attribute for var".....etc commands(still learning the ropes!)but will this affect straight up scripted acions such as "Open chest,recieve Healing Herb"(by changing the "healing herbs" Database #)
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jun 22, 2005 15:33:44 GMT -5
No, it only effects when you load something's database variable and sort by it such as this:
Data: Load Direct Effect Info Script: Condition: var Direct Effect = # (do something specific for that 'Direct Effect'(ability)) Script: Condition: End
or
Data: Load Game Info Script: Condition: var Map Number = # (do something specific for that 'World Organization') Script: Condition: End
Basically, if you are just learning the ropes of RPGM2, you haven't done anything like this yet (and I'm very sure the presets aren't like this at all either).
|
|
|
Post by Dungeon Warden on Jun 22, 2005 18:35:24 GMT -5
The Substitute Database for Variable is a very useful command that will save you a lot of difficulty later on. Basically it allows you to save the value of a specific database into a variable.
I.e in the above example:
Data: Load Direct Effect Info Script: Condition: var Direct Effect = # (do something specific for that 'Direct Effect'(ability)) Script: Condition: End
If you reorder the database, the Direct effect number will point to the wrong effect. However, if you do this:
Data: Load Direct Effect Info Substitute Database for Variable [Temp Var0 = Direct Effect #] Script: Condition: var Temp Var0 (do something specific for that 'Direct Effect'(ability)) Script: Condition: End
Then Temp Var0 will always equal the correct database item no matter how many things you delete or if you reorder the database. You won't be able to delete this database since it is being used by this command.
|
|
mrbear
RPG Making Novice
Dont underestimate the bear's fury, just because he's adorable.
Posts: 102
|
Post by mrbear on Jun 29, 2005 13:33:36 GMT -5
Ok I understand a little more now, it would seem to me that reordering the database would still screw up the "substitute database for variable[temp var.0 =direct effect #" command since the direct effect # would have changed? but I know this must be wrong and i'll post again later after i've had time to test it out
|
|
|
Post by Dungeon Warden on Jun 30, 2005 18:20:31 GMT -5
The whole point of using the substitute database for variable command is that it links to the actual database item, not the number. You use the item's name to tell the command what item to link to, and when you sort/delete an item, the command automatically updates as well. This command would be pointless if it didn't do that.
Note that there are also commands to link to the names of things, so that when you change the name all the names will change instead of you having to look up every place you used a specific name.
RPG Maker 2 is set up to make adjustments to your game simple and error free, but you have to use the special commands in order to avoid problems. It is kind of a pain to use a command instead of just typing in the name, but if you decide to change the name later, it will save you a lot of headaches (I know from experience).
|
|