Warfare Incorporated :: View topic - Counters
Warfare Incorporated Forum Index
 FAQ   Search   Memberlist   Usergroups 
 Profile   Log in to check your private messages   Log in 
 
Counters
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Warfare Incorporated Forum Index -> Mission Authoring
View previous topic :: View next topic  
Author Message
Verdagon
Veteran Member


Joined: 05 Oct 2003
Posts: 1047
Location: San Luis Obispo, CA

PostPosted: Tue Jan 27, 2004 6:15 pm    Post subject: Counters Reply with quote

What's a counter? Is it like a variable?
_________________
[WI Moderator]
http://verdagon.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Wizard
Established Forum User


Joined: 30 Nov 2003
Posts: 68
Location: Bristol, England

PostPosted: Wed Jan 28, 2004 12:25 am    Post subject: Reply with quote

Yes.

I was going to think of an example - but its early.! sorry.

_________________
Wizard

There's no place like 127.0.0.1
HTML | JS | VB | KIX | CFM | English

Everyone is a 'disgruntled employee'. What kind of word is 'disgruntled' anyway.? Can someone be 'gruntled'.?
Back to top
View user's profile Send private message
Wizard
Established Forum User


Joined: 30 Nov 2003
Posts: 68
Location: Bristol, England

PostPosted: Wed Jan 28, 2004 4:59 am    Post subject: Reply with quote

OK, I am awake now.!

Um a counter can be used to for something like the following...

every time a user builds a gun tower
increase a counter by one.

check for the value of the counter and if it is over a specific value create some more enemy units.


that sort of thing

_________________
Wizard

There's no place like 127.0.0.1
HTML | JS | VB | KIX | CFM | English

Everyone is a 'disgruntled employee'. What kind of word is 'disgruntled' anyway.? Can someone be 'gruntled'.?
Back to top
View user's profile Send private message
Verdagon
Veteran Member


Joined: 05 Oct 2003
Posts: 1047
Location: San Luis Obispo, CA

PostPosted: Fri Jan 30, 2004 11:59 pm    Post subject: Reply with quote

Ok thanks wiz.
_________________
[WI Moderator]
http://verdagon.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Verdagon
Veteran Member


Joined: 05 Oct 2003
Posts: 1047
Location: San Luis Obispo, CA

PostPosted: Sat Jan 31, 2004 12:26 am    Post subject: Reply with quote

Wizard, what's the condition that checks the counters? I cant find it.

Theres something called "Test persistent variable" but isnt that for the whole-campaign variables?

_________________
[WI Moderator]
http://verdagon.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
crakerz
Mega-Poster


Joined: 17 Sep 2003
Posts: 353
Location: California Bay Area

PostPosted: Wed Feb 04, 2004 3:55 pm    Post subject: Reply with quote

Did you guys figure out how to test for counters? 'Cuz it would sure be nice!
_________________
Why negotiate when you can just blow things up?
------------------------------------------------------
Back to top
View user's profile Send private message Send e-mail
crakerz
Mega-Poster


Joined: 17 Sep 2003
Posts: 353
Location: California Bay Area

PostPosted: Mon Feb 09, 2004 9:07 pm    Post subject: Bump! Reply with quote

I hate to bump, but as we progress with testing and building, I see more and more of a need to answer these issues.

1. Can we use them?

2. HOW?

I can create and modify, but not test. Not much use if the last can't be done. Anybody figure it out yet?
Back to top
View user's profile Send private message Send e-mail
Wizard
Established Forum User


Joined: 30 Nov 2003
Posts: 68
Location: Bristol, England

PostPosted: Tue Feb 10, 2004 12:44 am    Post subject: Reply with quote

Yes.
There is a MODIFY COUNTER action...
This, take from my newly created CHM Help File...



Modify Counter
--------------------------------------------------------------------------------

Format :
Counter 'Counter': Set/Add/Subtract quantity

Description :
Use this to modify the value of a Counter

Example :
Counter 'cntCounter': Set 60
Counter 'cntCounter': Subtract 5



There is no SET COUNTER, as you set the value as in the first example.
Also, DON'T think in terms of counters (up/down) but in terms of variables.

_________________
Wizard

There's no place like 127.0.0.1
HTML | JS | VB | KIX | CFM | English

Everyone is a 'disgruntled employee'. What kind of word is 'disgruntled' anyway.? Can someone be 'gruntled'.?
Back to top
View user's profile Send private message
Verdagon
Veteran Member


Joined: 05 Oct 2003
Posts: 1047
Location: San Luis Obispo, CA

PostPosted: Tue Feb 10, 2004 8:03 am    Post subject: Reply with quote

Thanks wizard! I was wondering where it was... I was looking under 'S' for "Set"...

...We've made and 'modified' the variable, how do we check/test it?

_________________
[WI Moderator]
http://verdagon.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
crakerz
Mega-Poster


Joined: 17 Sep 2003
Posts: 353
Location: California Bay Area

PostPosted: Tue Feb 10, 2004 10:51 am    Post subject: Reply with quote

Wizard,

I appreciate the above, but you misunderstand my personal dilemma. I know about the Modify Counter action. I know how to set, add, subtract from it. But, as I posted in the sticky bug thread, if I use that action it freezes the level during load (even if it is the only action). Not sure if you also have this issue.

I understand that it is really a variable, also (many years of programming). I want to use it in that fashion.

What I want to know is how to TEST it. No Condition seems to look at it. I've tried using the Test Persistant Variable (which is the only one that *might* work), as well as just about every other condition that tests a quantity. I've tried many formats, including the use of preceding symbols (!@#$%&*etc) and enclosures ({[<>]}) in all combinations.

Nothing works.

_________________
Why negotiate when you can just blow things up?
------------------------------------------------------
Back to top
View user's profile Send private message Send e-mail
Wizard
Established Forum User


Joined: 30 Nov 2003
Posts: 68
Location: Bristol, England

PostPosted: Tue Feb 10, 2004 11:43 am    Post subject: Reply with quote

In that case we need one of the developers to help us out here.! Question

Calling scottlu.!

_________________
Wizard

There's no place like 127.0.0.1
HTML | JS | VB | KIX | CFM | English

Everyone is a 'disgruntled employee'. What kind of word is 'disgruntled' anyway.? Can someone be 'gruntled'.?
Back to top
View user's profile Send private message
crakerz
Mega-Poster


Joined: 17 Sep 2003
Posts: 353
Location: California Bay Area

PostPosted: Tue Feb 10, 2004 3:05 pm    Post subject: Reply with quote

Wiz, I am afraid Scott is having too much fun in San Jose looking at all the cool new OS 6 stuff Crying or Very sad He won't be back until tonight.

I wanted to go. I even got the Developer's discount. But, I thought "spend the $$ on a new PDA or commute four hours round-trip in bumper-to-bumper?"

What really sucks, is I probably won't spend the $$ on the PDA, either Embarassed Crying or Very sad Embarassed

_________________
Why negotiate when you can just blow things up?
------------------------------------------------------
Back to top
View user's profile Send private message Send e-mail
Verdagon
Veteran Member


Joined: 05 Oct 2003
Posts: 1047
Location: San Luis Obispo, CA

PostPosted: Tue Feb 10, 2004 4:34 pm    Post subject: Reply with quote

[quote="crakerz"]Wiz, I am afraid Scott is having too much fun in San Jose looking at all the cool new OS 6 stuff Crying or Very sad He won't be back until tonight.

I wanted to go. I even got the Developer's discount. But, I thought "spend the $$ on a new PDA or commute four hours round-trip in bumper-to-bumper?"

What really sucks, is I probably won't spend the $$ on the PDA, either Embarassed Crying or Very sad Embarassed[/quote]

Good choice Crakz. A meeting can last an hour, but a PDA can last a year. Don't get the Zodiac. It sucks.

_________________
[WI Moderator]
http://verdagon.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
scottlu
WI Founder


Joined: 15 Aug 2003
Posts: 1773

PostPosted: Wed Feb 11, 2004 1:37 am    Post subject: Reply with quote

You guys found an action that was conceptualized but never implemented in-game! In other words it _seemed_ like a good idea at some point but didn't cross the finish line. I'll remove it for the next build.

To do counters you can use the "Test Persistent Variable" condition and the "Modify Persistent Variable" action.

About the conference: Palm OS 6 looks well engineered (this is coming from a former OS engineer). I'm giving it a tenative thumbs up. Can't wait for hardware.

_________________
Warfare Incorporated Development Team
Back to top
View user's profile Send private message
Verdagon
Veteran Member


Joined: 05 Oct 2003
Posts: 1047
Location: San Luis Obispo, CA

PostPosted: Wed Feb 11, 2004 7:53 am    Post subject: Reply with quote

[quote="scottlu"]You guys found an action that was conceptualized but never implemented in-game! In other words it _seemed_ like a good idea at some point but didn't cross the finish line. I'll remove it for the next build.

To do counters you can use the "Test Persistent Variable" condition and the "Modify Persistent Variable" action.

About the conference: Palm OS 6 looks well engineered (this is coming from a former OS engineer). I'm giving it a tenative thumbs up. Can't wait for hardware.[/quote]

So do we just type in the name of the counter inside the "test persistent variable" field?

_________________
[WI Moderator]
http://verdagon.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Warfare Incorporated Forum Index -> Mission Authoring All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2002 phpBB Group