From: SourceForge.net <no...@so...> - 2008-09-08 11:58:22
|
Feature Requests item #2100005, was opened at 2008-09-08 06:39 Message generated for change (Settings changed) made by tir-gwaith You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=384722&aid=2100005&group_id=25576 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Other Group: For 5.16.0 Status: Closed Resolution: Accepted Priority: 5 Private: No Submitted By: James Dempsey (jdempsey) Assigned to: James Dempsey (jdempsey) >Summary: JEP expansion - isgamemode() boolean check. Initial Comment: From: "Tir Gwaith" <Tir...@gm...> Sender: pcg...@ya... Date: Sat, 23 Aug 2008 07:43:34 -0500 Subject: [pcgen_experimental] [FREQ] OS expansion of IIF to check GAMEMODE I'm looking for an expansion of the IIF token for like IIF(GAMEMODE = "Modern") {whatever} ENDIF This will allow us to _easily_ keep base.xml in _one_ file, and remove the errors like ACType that isn't defined.... I did a similar thing with the Pathfinder CMB stuff by checking for a VAR (since Patfhinder's CMB stuff is getting set up with VARs), but not know all the GameModes, and with several GameModes using the Var "ClassDefense", I can't use that to check for Modern Gamemode. This is my first forray into actually proposing a complex OS token, so if I'm a bit off on the syntax structure of it IIFNode stuff, not a problem. I just want to be able to check for GameMode somehow. :) -- Tir Gwaith PCGen LST Chimp ================================ From: James Dempsey <jde...@ac...> Sender: pcg...@ya... Date: Sun, 24 Aug 2008 10:14:19 +1000 Subject: Re: [pcgen_experimental] [FREQ] OS expansion of IIF to check GAMEMODE Personally I think this would work better as a jep function isGameMode or something similar - that way it is not just restricted to if statements in output sheets. Cheers, James. ---------------------------------------------------------------------- Comment By: Andrew McDougall (tir-gwaith) Date: 2008-09-08 06:57 Message: Logged In: YES user_id=208239 Originator: NO I'm going to change the title for release - isgamemode() is also useful in PREVAR checking, etc. :P We'll need documentation as well. I'll open a FReq for that. Thanks, James. ---------------------------------------------------------------------- Comment By: James Dempsey (jdempsey) Date: 2008-09-08 06:54 Message: Logged In: YES user_id=558288 Originator: YES Implemented in http://pcgen.svn.sourceforge.net/pcgen/?rev=7681&view=rev Sample usage: |IIF(isgamemode("35e"))| <p>We are in 35e mode</p> |ENDIF| ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=384722&aid=2100005&group_id=25576 |