Home | Webstore
Latest News: OOTP 26 Available - FHM 11 Available - OOTP Go! Available

Out of the Park Baseball 26 Buy Now!

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 26 > OOTP Mods > OOTP Mods - Database Tools

OOTP Mods - Database Tools Do you need to take a dump? SQL gurus welcome

Reply
 
Thread Tools
Old 10-13-2023, 08:15 PM   #1
HRBaker
Hall Of Famer
 
HRBaker's Avatar
 
Join Date: Apr 2010
Posts: 2,364
XML Question

How do you make a calculation in XML then display it on a BB card in OOTP?

The following line is in my baseball card XML file defining the YEAR of the card...

<ELEMENT type="text" x="178" y="290" width="26" height="10" align="left" valign="middle" zorder="20" font_name="medium" font_color="#dedfd9" font_x_size="12" font_y_size="14" content="[%YEAR]" has_team="1" />

In this case [%YEAR] equals 1947.

What I want to do is simply state "Season ##" instead of the actual year on the front of the card.

Since my first year in this league is 1947, I want to subtract "1946" from the current year (%YEAR=1947) to get "1", then Display "Season 1" on the card.

Then next year, 1946 would be subtracted from 1948 to get "Season 2", etc.

How can I do this?
HRBaker is offline   Reply With Quote
Reply

Bookmarks


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
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:01 PM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright © 2024 Out of the Park Developments