05-10-2012, 10:07 AM | #1 |
Join Date: Aug 2004
Location: Alameda, CA
|
data files coding
What is the difference between using
Code:
newmode(stats....) Code:
stats(x|y)... mode(whack|bam) I've seen both ways in the data files. Thanks
__________________
Fraser: "Could you elucidate, sir?" Welsh: "No, no. Not since the late sixties." Ray: "That's Canadian for explain." --- from "due South" episode Seeing Is Believing |
05-10-2012, 11:19 AM | #2 |
GCA Prime
Join Date: Aug 2004
Location: Portland, OR
|
Re: data files coding
The primary difference is that when you write up an item with modes the manual way, using tag(x|y), you have to carefully keep track of the modes and their separators, and if you miss some because some modes use tags that others don't, things can get messed up, with the wrong data in the various modes.
Newmode() is basically a form of command as a tag, handled when the trait is loaded from the data file. Using newmode() automatically updates every mode-enabled tag for you, even those not used by the particular mode you may be adding. Given that there are about twenty mode-enabled tags, this can be very helpful. However, if you're just adding an item with a couple nearly identical modes, it may not be worth the effort. Edit: I forgot that newmode() must always define a damage() tag for each new mode. Other tags are optional as needed. Armin
__________________
Armin D. Sykes | Visit my GCA5 blog for updates and previews. | Get GURPS Character Assistant 5 now at Warehouse 23. Last edited by Armin; 05-10-2012 at 11:37 AM. |
05-11-2012, 04:06 PM | #3 |
Join Date: Aug 2004
Location: Alameda, CA
|
Re: data files coding
on older data files I've #newmode(tag). Shouldn't that be newmode(tag)?
__________________
Fraser: "Could you elucidate, sir?" Welsh: "No, no. Not since the late sixties." Ray: "That's Canadian for explain." --- from "due South" episode Seeing Is Believing |
05-11-2012, 05:16 PM | #4 | |
GCA Prime
Join Date: Aug 2004
Location: Portland, OR
|
Re: data files coding
Quote:
If it actually was a #newmode, then that is wrong, yes. Armin
__________________
Armin D. Sykes | Visit my GCA5 blog for updates and previews. | Get GURPS Character Assistant 5 now at Warehouse 23. |
|
|
|