Using Variables on Status page

Tips and Tricks on Events, Economy, etc.

Moderator: Grandma Ruth

Re: Using Variables on Status page

Unread postby Grandma Ruth » Wed Feb 27, 2008 11:52 am

I'll try that when I get home: I think my problem is actually with the timing of the events triggering, isn't it? Thanks for all your help, William, but it's not actually the counting up that's the problem, it's the triggering of the event that controls the status page (maybe). Orange46 had this same problem in Crystal Cotton using a variable - the actual event happened during the course of the year but didn't show up till the year end. Maybe it's not a thing that can be fixed, or would be too tiresome to have umpty-million events firing every week, it would maybe slow the whole game up too much. Will report back later :salute:
"I will not take 'but' for an answer" - Langston Hughes
User avatar
Grandma Ruth
CEO
 
Posts: 1013
Joined: Mon Nov 13, 2006 8:17 am
Location: West Yorkshire, England

Re: Using Variables on Status page

Unread postby Grandma Ruth » Wed Feb 27, 2008 4:43 pm

Well, what do you make of this?

Troops_Count.jpg


I don't know what's going on here. The event which creates the variable for "troops to Kyushu" is set to fire every week. The "Troops to Kyushu LTD" is just what it says and is correct. I put the date on there to check any discrepancy about when the different numbers show up on the page. But now I've no idea - where is it getting a count of 23?
Below is the event that creates this variable:

Kyushu_Conditions.jpg

Conditions for the event

Kyushu_Effects.jpg

Effects - this counts the variable that appears on the status page
"I will not take 'but' for an answer" - Langston Hughes
User avatar
Grandma Ruth
CEO
 
Posts: 1013
Joined: Mon Nov 13, 2006 8:17 am
Location: West Yorkshire, England

Re: Using Variables on Status page

Unread postby Grandma Ruth » Wed Feb 27, 2008 4:55 pm

This is what happens after another 4 loads are hauled:

Dec_1872.jpg


And this is what happens a month later (no more troops hauled):

Jan_73.jpg


**!!!**
Edit: I think I know what's happening - it's counting YTD every week, so it will add on 5 to 5 to 5 to 5 etc every week?? Is that it? :-? :-? I don't think there's an answer to this one, I think it's going to have to be a year-end count unless anybody else can think of anything? Thanks for all your help, anyway! !*th_up*!
"I will not take 'but' for an answer" - Langston Hughes
User avatar
Grandma Ruth
CEO
 
Posts: 1013
Joined: Mon Nov 13, 2006 8:17 am
Location: West Yorkshire, England

Re: Using Variables on Status page

Unread postby Gwizz » Thu Feb 28, 2008 3:21 am

I wish I could read the screen shots. They are just too blurry.

I don't remember having a problem with status reports. They were very fast to update. I do remember that they were easier to program if they were kept simple and the variables were used for adding etc.

Is it possible that you are counting from more than one company or territory or city.

I wish I could read the screen shots. I do have the ability to in-large the type on the new machine. But my better half has been using it lately.

She discovered that a relative was a member of a church and in attendance when George Washington was married. So she won't let me have it back.
Gwizz
CEO
 
Posts: 1129
Joined: Sat Nov 11, 2006 7:45 pm

Re: Using Variables on Status page

Unread postby Wolverine@MSU » Thu Feb 28, 2008 7:39 am

Gwizz: Are you clicking on the images Ruth posted to see the full size? They're blurry as seen in the post, but if I click on them, I get a larger image whith clear type.
User avatar
Wolverine@MSU
Engineer
 
Posts: 996
Joined: Fri Nov 10, 2006 3:14 pm
Location: East Lansing, MI

Re: Using Variables on Status page

Unread postby Hawk » Thu Feb 28, 2008 7:45 am

Gwizz - I don't know if you've noticed but on the images I add to posts I include a message that says to click on the image to view full size.
That is a poster option and I guess most folks don't think of that but it's the same for all posted images.
As Wolvy says, just click on it and you'll see the full size image. ;-)
Hawk
Purveyor of: The Hawk & Badger Railroad | Swindell Family

Webmaster for: Merci Train | Art's Bagels | B&B Lawnmower

When you were born, you cried and the world rejoiced. Live your life so that when you die, the world cries and you rejoice.
~ Cherokee Proverb ~
User avatar
Hawk
The Big Dawg
 
Posts: 5172
Joined: Fri Nov 10, 2006 11:28 am
Location: Georgia - USA

Re: Using Variables on Status page

Unread postby Gwizz » Fri Feb 29, 2008 2:20 am

G-wizz it worked. I can read it on the new mchine. Thanks for the help.
(Yep! I got the new machine back tonight) Clicking on a screen Shot didn't work on the ME machine for some reason; But the ME has been a bit fleaky lately.

Where are you with this problem Grandma Ruth?

Two general comments:

1. One thing that has happened to me in RT3 is: If some parts of a multi function event fire true, some of the other parts of the event may not test at all or not test correctly. It was important to list each condition in a given order to make the event work correctly with the most likely condition to fire true, listed last. This is not alway possible. Often I had to write each part of a multi-part event as a single event and use the effects to set or add to variable/s. Then in another event the variables are used or added to give the result wanted. It is more work writing all the extra events.

Yet it is still worth testing multi function events since some times they will work correctly.

This math worked much better with all conditions put into one event in RT2.

2. Status reports should test often and work, if not too many functions are part of the conditions. Same problem as above.

I'll read the thread again and see if I can help. I know there are many on this forum that are very good at writing events. Some times a small thing can stop me dead in the water until I find it or figure it out.
Gwizz
CEO
 
Posts: 1129
Joined: Sat Nov 11, 2006 7:45 pm

Re: Using Variables on Status page

Unread postby Sugus » Thu Apr 02, 2009 2:14 pm

Hi Grandma Ruth

I think I did the "territorial arithmetics" you've been looking for when starting this thread. (I have created a small scenario to be used as playground for such experiments.)

For this test I made three regions Yellow, Green and Blue, and the goal is simply to show the number of loads hauled from them together within the status. Because we can specify only one territory per event, we have to create three to get the sum:

Event 1: "Start with Yellow"
Conditions: "force test against territory" (Yellow) and "force test against companies" (player's one)
Effect: "game variable 1 = number of loads hauled by company from territory"

Event 2: "Add Green"
Conditions: "force test against territory" (Green) and "force test against companies" (player's one)
Effect: "game variable 1 + number of loads hauled by company from territory"

Event 3: "Add Blue"
Conditions: "force test against territory" (Blue) and "force test against companies" (player's one)
Effect: "game variable 1 + number of loads hauled by company from territory"

If you force these events to be checked after every week, the sum shown via the game variable 1 within the status is as actual as possible.

BTW - the status is updated whenever shown - either automatically at end of year or manually by demand. It simply accesses the actual (variable) values to make the presentations!

Hope this helps and is not too late - otherwise forget it.
There's no business like RT business ...
User avatar
Sugus
Engineer
 
Posts: 515
Joined: Wed Feb 04, 2009 2:33 pm
Location: Rorschacherberg, Switzerland

Re: Using Variables on Status page

Unread postby Grandma Ruth » Fri Apr 03, 2009 7:53 am

That's it! It certainly looks like that's the way to do it. I'm at work now so I can't look and see what I did eventually do. I know I completed the scenario and uploaded it, but as I don't have RT3 at work - that would be sheer madness, I'd never do any work! - I'll have to wait till tonight to see it. !hairpull!
And I've got to go with my husband to the jazz club and tomorrow's my grand-daughter's birthday and why does real life have to intrude ????!!!!! :lol: :lol:
User avatar
Grandma Ruth
CEO
 
Posts: 1013
Joined: Mon Nov 13, 2006 8:17 am
Location: West Yorkshire, England

Previous

Return to Scenario Writing

Who is online

Users browsing this forum: No registered users and 1 guest

cron