ID:147209
 
Hello I'm trying to make a technique panel. First off, I have three statpanels all labeled "Your Stats","Items","Techniques". For techniques, I made it self a variable called "techs" so this is what the code looks like:

mob/Stat()
<---Other Panels Here--->
statpanel("Techniques")
stat("")
stat(src.techs)

Then (just to test it), in the login file I coded it so when you login you automatically learn 3 techniques but when I login, only 1 shows up. What's wrong??
this mite work:
mob/Stat()
statpanel("Techniques")
stat("")
for(var/T in src.techs)
stat(T)

tell me if this works or not
Edited this once
In response to Theosco
Nope, it says proc definition not allowed inside of another proc.
You're sure you're adding them to the tech list?

IE:

var/obj/a=new/obj/techs/superduperpunchattack
src.tech+=a
In response to Kamikashin
man i stil haven't figured this out..can someone like Arthosa help me here!!! Please!! He does it with Icon Chatterz >.>
In response to Kamikashin
i know wut ure problem is cause i can code it where any race get ccertain stats so try this

usr.tech +=new/obj/tech

put it below any thing
In response to Mastergamerx
thanks for the attempt in trying to help me but I've tried that before and it only lists one of the techniques no matter how many a code in.
Show us the code where you're adding the techniques, I'm not so posotive you are adding them at all, or adding them correctly.

[edit]

It would also help if you show where you define the technique variable, because I have a feeling it might not be a list.

[/edit]
In response to SSJ2GohanDBGT
I definated the variable in a list like this:

mob/var
techs

then, under the statpanel, I put this:

mob/Stat()
<----Other Panels---->
statpanel("Techniques")
stat("Here are the techniques that you have mastered:","")
stat(src.techs)
mob
var
list/techlist
Stat()
statpanel("Techniques")
stat(src.techlist)
Login()
src.techlist+="Punch "
src.techlist+="Kick "
src.techlist+="Bite "
Login with this and it'll say Punch Kick Bite under the techniques panel, not the best way of doing it but it does work.
In response to Kamikashin
Kamikashin wrote:
I definated the variable in a list like this:

mob/var
techs

then, under the statpanel, I put this:

mob/Stat()
<----Other Panels---->
statpanel("Techniques")
stat("Here are the techniques that you have mastered:","")
stat(src.techs)

Thats not a list =P
mob/var/list/techs = list("Jump","Attack")

mob/Stat()
statpanel("Techniques")
stat("Here are the techniques that you have mastered:","")
stat(src.techs)