i cant get the code for pbag right...here is the code and errors
mob
pbag
icon = 'pbag.dmi'
Health = 1
if (Health -= 0) //This is line 19
Health = 1
Mobs.dm:19:error:Health:duplicate definition
Mobs.dm:19:error:0:duplicate definition
Mobs.dm:19:error:-= :instruction not allowed here
can some1 tell me how to fix this?
ID:180205
Aug 8 2001, 4:05 pm
|
|
In response to sunzoner
|
|
On 8/8/01 7:09 pm sunzoner wrote:
On 8/8/01 7:05 pm Eponick wrote: And it wouldn't be -=0 it would be <=0 and indent the Health thing below it |
In response to Nadrew
|
|
On 8/8/01 7:13 pm Nadrew wrote:
On 8/8/01 7:09 pm sunzoner wrote: Even if you did that, it wouldn't work. Because you can't have ifchecks in mob definitions. :) Nice try though. |
In response to Zagreus
|
|
well will some1 tell me he correct way
|
In response to Zagreus
|
|
On 8/8/01 7:15 pm Zagreus wrote:
cut... Even if you did that, it wouldn't work. Because you can't have ifchecks in mob definitions. :) Nice try though. Can't believe I have missed that. You are right. |
In response to sunzoner
|
|
heh...i didnt miss it
|
mob
pbag icon = 'pbag.dmi' var Health = 20 verb punch() set src in oview(1) src.Health -= 1 if(src.Health <= 0) src.Health = 1 thats about all i can tell you until you give me more explanation as to what your trying to do.... FIREking |
Eponick wrote:
i cant get the code for pbag right...here is the code and errors What's the deal with all these punching bags? Why do newbies like to make 'em? Is this some grand conspiracy? |
In response to Skysaw
|
|
actually, every newb has to have a punching bag because the new age gaming experience is coming to every game. Havent you heard yet? there is news that new games are coming out and in the game you are a professional boxer where you train your skills on a punching bag, hitting it mindlessly with the click of your mouse, over and over, until you become a level 543.2 boxer with 967 punching skills!! Every game is gonna have a pbag, and a boxer, even rpg's. Its whats "cool" in games now. I cant wait till i get good enough to make my own 4 lined punching bag code as well!! My game will be so cool too when it has a punching bag in it.....
FIREking ps. if you actually believe the post above, you will be looked down on by me, and probably most others as well....... |
In response to FIREking
|
|
FIREking wrote:
actually, every newb has to have a punching bag because the new age gaming experience is coming to every game. Havent you heard yet? there is news that new games are coming out and in the game you are a professional boxer where you train your skills on a punching bag, hitting it mindlessly with the click of your mouse, over and over, until you become a level 543.2 boxer with 967 punching skills!! Every game is gonna have a pbag, and a boxer, even rpg's. Its whats "cool" in games now. I cant wait till i get good enough to make my own 4 lined punching bag code as well!! My game will be so cool too when it has a punching bag in it..... Also, the boxers have pointy hair and run round looking for balls or sumthin... |
In response to Botman
|
|
Botman wrote:
Also, the boxers have pointy hair and run round looking for balls or sumthin... Mine are bald... |
In response to Botman
|
|
i figured that someone would reply laughing, but maybe my comedy days are over, eh?
|
In response to FIREking
|
|
i fixed it....i did it like FIREking told me to....kinda
|
In response to Air Mapster
|
|
Air Mapster wrote:
Botman wrote: What your balls or your hair?:) |
In response to Nadrew
|
|
Nadrew wrote:
Air Mapster wrote: Ha! My boxers. No, not those boxers! Tom knows what I'm talking about. The rest of you will just have to wait until the time is right. |
In response to Air Mapster
|
|
Air Mapster wrote:
Nadrew wrote: The time is usally right around puberty and I naver knew boxers could grow hair unless really dirty :) And Tom knows alot but does he know this 2+2=? HA Didn't think so |
There are two "Health = 1".
The if statment needs an action. For ex:
if (this) that
You miss out the "that"
Under an "if" within the (), no instruction is allowed.