Steve Jackson Games - Site Navigation
Home General Info Follow Us Search Illuminator Store Forums What's New Other Games Ogre GURPS Munchkin Our Games: Home

Go Back   Steve Jackson Games Forums > Roleplaying > GURPS > GURPS Character Assistant

Reply
 
Thread Tools Display Modes
Old 05-10-2012, 10:07 AM   #1
flyingwombat
 
flyingwombat's Avatar
 
Join Date: Aug 2004
Location: Alameda, CA
Default data files coding

What is the difference between using
Code:
newmode(stats....)
and
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
flyingwombat is offline   Reply With Quote
Old 05-10-2012, 11:19 AM   #2
Armin
GCA Prime
 
Armin's Avatar
 
Join Date: Aug 2004
Location: Portland, OR
Default 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.
Armin is offline   Reply With Quote
Old 05-11-2012, 04:06 PM   #3
flyingwombat
 
flyingwombat's Avatar
 
Join Date: Aug 2004
Location: Alameda, CA
Default 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
flyingwombat is offline   Reply With Quote
Old 05-11-2012, 05:16 PM   #4
Armin
GCA Prime
 
Armin's Avatar
 
Join Date: Aug 2004
Location: Portland, OR
Default Re: data files coding

Quote:
Originally Posted by flyingwombat View Post
on older data files I've #newmode(tag). Shouldn't that be newmode(tag)?
There are #newitem and #newmod commands for making new items or new modifiers in certain cases, so if what you saw is actually one of those, then they're probably correct.

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.
Armin is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Fnords are Off
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 08:41 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.