Loop problems - 17/07/05 07:40 AM
Hi, with another problem, probably not that major.
here is my code:
It shows something like this:
Punch:
Kick:
in Moves.stats, I have this:
I want to make it so it shows something like this:
Punch: Level:1 Damage:2 Cost:$10
Kick: Level:1 Damage:2 Cost:$10
energybeam: Level:1 Damage:2 Cost:$10
and if under Available it has a =No then it doesn't show in the !listmoves.
Sorry for askign a lot guys this is the only place I get some answer, reading the /help over and over doesnt help here.
Any help is most appriciated.
EDIT: + here is teh error msg i get:
= Unknown command
-
= Unknown command
-
= Unknown command
-
= Unknown command
-
here is my code:
Code:
on 1:Text:!listmoves:*: { var %topics = $ini(Bot_Stats\Moves.stats,0) var %use = 0 while (%use != %topics) { inc %use %var %userline = $ini(Bot_Stats\Moves.stats,%use),effect) notice $nick 4 $ini(Bot_Stats\Moves.stats,%use) $+ :12 %userline } unset %userline }
It shows something like this:
Punch:
Kick:
in Moves.stats, I have this:
Code:
[Punch] Available=Yes effect=Level:1 Damage:2 Cost:$10 Cost=0 Base-Damage=2 Level=1 [Kick] Available=Yes effect=Level:1 Damage:2 Cost:$10 Cost=0 Base-Damage=2 Level=1
I want to make it so it shows something like this:
Punch: Level:1 Damage:2 Cost:$10
Kick: Level:1 Damage:2 Cost:$10
energybeam: Level:1 Damage:2 Cost:$10
and if under Available it has a =No then it doesn't show in the !listmoves.
Sorry for askign a lot guys this is the only place I get some answer, reading the /help over and over doesnt help here.
Any help is most appriciated.
EDIT: + here is teh error msg i get:
= Unknown command
-
= Unknown command
-
= Unknown command
-
= Unknown command
-