I can usually figure out my own problems now, but I am desperate here. I was just finishing up the new Firewall demo and I ran into a very hard wall. This is painful.
The robots have a certain amount of power that they can use, and it recharges. This all used to work perfectly. Then yesterday I was going to finish it up and suddenly all my robots lost all power and they can't get any more

There are two variables that I am using. One is rpowerhold#() and the other is rpower#() . rpowerhold#() holds the data for the amount of maximum power that a robot can hold. When a robot is build, this is in the code that fills its power:
rpower#(own,l)=rpowerhold#(rdesign)
(own is the owner of the robot and l is just the variable for a 'for next' loop, that is an l, not a 1. rdesign is predefined as the design of the robot. All designs have different amounts of power they can hold)
This used to work just fine. However, now, the rpower#() variable cannot hold any number! No matter what I put in it, it always goes right back to zero. Man, it is really annoying. Anyone else ever have this problem? I was considering it was possibly a memory shortage problem, but the rpower#() array is not defined last or anything, there are other arrays after it that work just fine. Here is a small snippet of my code, and the screen shot that I took from it that proves my point:
rpower#(own,l)=rpowerhold#(rdesign)
set current bitmap 0
for j=1 to 200:wait 1:text 100,100,"rpower#="+str$(rpower#(own,l))+" rpowerhold#="+str$(rpowerhold#(rdesign)):sync:next j
This prints the values to the screen, here is the screenshot:
As soon as I get this fixed I can release the Firewall 3.01 demo...
Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href]

[/href]