ID:162358
 
Ok. i need the code for if I'm making a character start off with a certain amount of items at once, like 25 Shurukens
can you explain your situation a little bit better?
In response to Zachatack21
i think he means, making new character start off with an item and in a certain amount.

considering that item stacking is made in the game already...

well, in the character creation thing after a new guy logs in, and the mob is sent the ..() defaults to be made and all, create the item with new var/obj/whatever/A it is and then reference it to the A.amount which is the new object, and do A.loc = usr.loc

or something similar along those lines.

or if its not an actual object, and a variable that shows up somewhere, then you do usr.gold = 255

or w/e around these lines...

considering item without item stacking...

just call the same code however many times, either by copy pasting it, which is a mess, or by doing

var/Loop = 25
var/Amount = 0
Start 'this is for a goto thing...
new var/obj/whatever/A
A.loc = src.loc
Amount += 1
if(Amount != Loop)
goto Start
In response to Superbike32
Ugh, no. Never tell people to use goto. This would be a proper way of doing that:

for(var/v = 1 to 25)
new /obj/whatever(src)