Unknown2008-02-10 14:07:01
I'm trying to make a database to record weapon stats and I ran into this weird problem.
The value of one my fields is always tied to another field. For example, when my Precision field's value gets set to something, the Damage field gets set to that too. At first I thought it was something wrong with the #NEW line I use to create a new record with all the values, but even when I do something as simple as #NEW Weapons Precision=5, a new record gets created with both Damage and Precision at 5. If I manually change Damage's or Precision's value in the DB editor, the other field will eventually change to match. If I If I delete the Damage field, the Speed field instead has the same value as Precision at all times. What's going on?
The value of one my fields is always tied to another field. For example, when my Precision field's value gets set to something, the Damage field gets set to that too. At first I thought it was something wrong with the #NEW line I use to create a new record with all the values, but even when I do something as simple as #NEW Weapons Precision=5, a new record gets created with both Damage and Precision at 5. If I manually change Damage's or Precision's value in the DB editor, the other field will eventually change to match. If I If I delete the Damage field, the Speed field instead has the same value as Precision at all times. What's going on?
Unknown2008-02-10 14:38:40
The database in CMUD is still the quirky zMUD database. Personally, I've never used the database in either client, as I've never had a need for it. Why not just use data record variables instead?
Unknown2008-02-10 15:19:39
I guess I wanted to be able to get averages, or see them in an organized view easily. I'll try record variables.
Unknown2008-02-10 20:51:39
Data record variables don't have some of the power of a database, but you can still do quite a lot with them. You might have to write your own custom functions to calculate averages or make pretty displays, but it's quite possible.
Zugg's going to eventually write a whole new database module for CMUD, so that's something to look forward to.
Zugg's going to eventually write a whole new database module for CMUD, so that's something to look forward to.