View previous topic :: View next topic |
Author |
Message |
Verdagon Veteran Member
Joined: 05 Oct 2003 Posts: 1047 Location: San Luis Obispo, CA
|
Posted: Tue Jan 27, 2004 6:15 pm Post subject: Counters |
|
|
What's a counter? Is it like a variable? _________________ [WI Moderator]
http://verdagon.net/ |
|
Back to top |
|
|
Wizard Established Forum User
Joined: 30 Nov 2003 Posts: 68 Location: Bristol, England
|
Posted: Wed Jan 28, 2004 12:25 am Post subject: |
|
|
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 |
|
|
Wizard Established Forum User
Joined: 30 Nov 2003 Posts: 68 Location: Bristol, England
|
Posted: Wed Jan 28, 2004 4:59 am Post subject: |
|
|
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 |
|
|
Verdagon Veteran Member
Joined: 05 Oct 2003 Posts: 1047 Location: San Luis Obispo, CA
|
Posted: Fri Jan 30, 2004 11:59 pm Post subject: |
|
|
Ok thanks wiz. _________________ [WI Moderator]
http://verdagon.net/ |
|
Back to top |
|
|
Verdagon Veteran Member
Joined: 05 Oct 2003 Posts: 1047 Location: San Luis Obispo, CA
|
Posted: Sat Jan 31, 2004 12:26 am Post subject: |
|
|
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 |
|
|
crakerz Mega-Poster
Joined: 17 Sep 2003 Posts: 353 Location: California Bay Area
|
Posted: Wed Feb 04, 2004 3:55 pm Post subject: |
|
|
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 |
|
|
crakerz Mega-Poster
Joined: 17 Sep 2003 Posts: 353 Location: California Bay Area
|
Posted: Mon Feb 09, 2004 9:07 pm Post subject: Bump! |
|
|
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 |
|
|
Wizard Established Forum User
Joined: 30 Nov 2003 Posts: 68 Location: Bristol, England
|
Posted: Tue Feb 10, 2004 12:44 am Post subject: |
|
|
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 |
|
|
Verdagon Veteran Member
Joined: 05 Oct 2003 Posts: 1047 Location: San Luis Obispo, CA
|
Posted: Tue Feb 10, 2004 8:03 am Post subject: |
|
|
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 |
|
|
crakerz Mega-Poster
Joined: 17 Sep 2003 Posts: 353 Location: California Bay Area
|
Posted: Tue Feb 10, 2004 10:51 am Post subject: |
|
|
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 |
|
|
Wizard Established Forum User
Joined: 30 Nov 2003 Posts: 68 Location: Bristol, England
|
Posted: Tue Feb 10, 2004 11:43 am Post subject: |
|
|
In that case we need one of the developers to help us out here.!
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 |
|
|
crakerz Mega-Poster
Joined: 17 Sep 2003 Posts: 353 Location: California Bay Area
|
Posted: Tue Feb 10, 2004 3:05 pm Post subject: |
|
|
Wiz, I am afraid Scott is having too much fun in San Jose looking at all the cool new OS 6 stuff 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 _________________ Why negotiate when you can just blow things up?
------------------------------------------------------ |
|
Back to top |
|
|
Verdagon Veteran Member
Joined: 05 Oct 2003 Posts: 1047 Location: San Luis Obispo, CA
|
Posted: Tue Feb 10, 2004 4:34 pm Post subject: |
|
|
[quote="crakerz"]Wiz, I am afraid Scott is having too much fun in San Jose looking at all the cool new OS 6 stuff 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 [/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 |
|
|
scottlu WI Founder
Joined: 15 Aug 2003 Posts: 1773
|
Posted: Wed Feb 11, 2004 1:37 am Post subject: |
|
|
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 |
|
|
Verdagon Veteran Member
Joined: 05 Oct 2003 Posts: 1047 Location: San Luis Obispo, CA
|
Posted: Wed Feb 11, 2004 7:53 am Post subject: |
|
|
[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 |
|
|
|