ID:156121
 
how would i go about making something count the amount of how many a move of a player has been used.

also if you can help me clean up what i have got thxs
so in this i am hoping to acheve a clone per lvl it will lvl up after 2 time then atfer 4 then after 8 so here we go

mob
verb
Clones()
if(Chakra >= 10)
var/mob/Clone/A = new/mob/Clone
A.loc=usr.loc
A.overlays+=usr.overlays
A.underlays+=usr.underlays
A.y-=2 // To the south of you, like you wanted
walk_to(A,usr,2)
var/mob/Clone/B = new/mob/Clone
B.loc=usr.loc
B.overlays+=usr.overlays
B.underlays+=usr.underlays
B.x-=2 // To the west of you
walk_to(B,usr,2)
var/mob/Clone/C = new/mob/Clone
C.loc=usr.loc
C.overlays+=usr.overlays
C.underlays+=usr.underlays
C.x+=2 // To the east of you
walk_to(C,usr,2)
else
ChakraAlert()
mob
Clone
New()
flick('Clone.dmi',usr)
density = 0

this is coding for 3 clones so if I use a if statment i should beable to get it started
mob
verb
Clones()
if(Chakra >= 10)
if(Clone_lvl1)
var/mob/Clone/A = new/mob/Clone
A.loc=usr.loc
A.overlays+=usr.overlays
A.underlays+=usr.underlays
A.y-=2 // To the south of you, like you wanted
walk_to(A,usr,2)
if(Chakra >= 15)
if(Clone_lvl2)
var/mob/Clone/A = new/mob/Clone
A.loc=usr.loc
A.overlays+=usr.overlays
A.underlays+=usr.underlays
A.y-=2 // To the south of you, like you wanted
walk_to(A,usr,2)
var/mob/Clone/B = new/mob/Clone
B.loc=usr.loc
B.overlays+=usr.overlays
B.underlays+=usr.underlays
B.x-=2 // To the west of you
walk_to(B,usr,2)
if(Chakra >= 20)
if(Clone_lvl3)
var/mob/Clone/A = new/mob/Clone
A.loc=usr.loc
A.overlays+=usr.overlays
A.underlays+=usr.underlays
A.y-=2 // To the south of you, like you wanted
walk_to(A,usr,2)
var/mob/Clone/B = new/mob/Clone
B.loc=usr.loc
B.overlays+=usr.overlays
B.underlays+=usr.underlays
B.x-=2 // To the west of you
walk_to(B,usr,2)
var/mob/Clone/C = new/mob/Clone
C.loc=usr.loc
C.overlays+=usr.overlays
C.underlays+=usr.underlays
C.x+=2 // To the east of you
walk_to(C,usr,2)
else
ChakraAlert()
mob
Clone
New()
flick('Clone.dmi',usr)
density = 0

so this is what i thouge i would need but i would need a new bit of coding for the Clone_lvl'si am geussing it would be a proc not completely sure well this my attemped
mob
proc
clone_lvl()
if(1)
use.2 = 2
if(2)
use.4 = 3
if(3)
Maxlvl

well i have not idear lol that is a fail attpemed

well any help will be aprsheated sorry for the bad spelling and if you could mabey show me how to shorten it it would help too thx you very much
In response to Jamesy577
use

tags for code. also explain your problem a little clearer please; i dont get it....
In response to Jamesy577
Have you ever read the guide, or any article, or anything, or will you keep posting here with whatever?

Just asking.

Assign a variable to level, and multiple it by your amount of clones.
In response to Emasym
no what i was going for is whenyou use clone jutsu 2 time it would lvl up and then the next time you used it it would make 2 clones obv just if it's a low number to lvl it up it's easier to test

this is what you meamt isn't it
mob
var
Level

proc>
Clone_Lvl>
Level = Level*Clone


somthing like that

well to answer you other question i'll stop asking for help i do try my best to work it out but it never seems to work the way i thouge it would in most cases well. i can't understand the guild but i do look at it to get some help
and i also ttry to use the ref but it's hard to understand
i am not really a program person so to say i am the icon man but my programmers are too lazy to learn as much as i want them to well i was hope to try and get a load of help on this forum untill i got the hang of it but it sounds like i am bothering you all too much so i will stop thx (sorry about the mistakes)
In response to Jamesy577
enclose your code in <"dm"> and <"/dm"> (without the parenthesis) to make it look like this:
//your code here
// to get this write <dm> press enter then write the code
no one BYOND can create an entire game without checking the reference/searching the forumn/asking for help..as a last resort.. bar maybe Garthor,Lummox,Tom etc

my point is what you are doing is entirely fine however you are using the last resort as your first point of call; check the reference or press f1 in the dreammaker if that fails, search the forumn; if u dont find what you are after(99.5% u will) then u may ask.

http://www.byond.com/developer/forum/?query=levelup

then scrolling thru u find this interesting:
http://www.byond.com/developer/forum/?id=760470&view=1

and u find out he resolved his problem and u follow the solution.

happy coding

-Rapmaster-