ID:155629
 
Well I made a grid in my skin and was wondering how I'd code it so that when you learn a jutsu a skill card will appear in it and I already made a drag N drop thing so I can drag the skill card from the grid and drop it onto the hotbar
Okay so this is what I've come up with so far from researching and I still cant get anything to display in the grids.I also want my skill cards to appear in the grid that in a different window, my skill cards are coded as objs

obj
Skillcards
Ninjutsu
icon = 'Hotkeys.dmi'
JutsuType = "Ninjutsu"

Ama
icon_state = "Amaterasu"
name = "Amaterasu"
Click()
alert("Test")//IM guessing you'd put the Jutsu to perform here to run after you click.
Rinnengan
icon_state = "Rinnengan"
name = "Rinnengan"
Click()
alert("Test")
Byakugan
icon_state = "Byakugan"
name = "Byakugan"
Click()
alert("Test")





These are the stats that I want to display in another grid in another different window since I got buttons that when you click a new window will pop up and the grid is in it. And I want it so when you train your stats update. ANY HELP APPRECIATED

mob/Client
Stat()
var/Statistics = 0
usr << output("Training Level", "Stats.Stat:[++Statistics],1")
usr << output("Health", "Stats.Stat:[++Statistics],1")
usr << output("Stamina", "Stats.Stat:[++Statistics],1")
usr << output("Energy", "Stats.Stat:[++Statistics],1")
usr << output("Strength", "Stats.Stat:[++Statistics],2")
usr << output("Defense", "Stats.Stat:[++Statistics],2")
usr << output("Spirit", "Stats.Stat:[++Statistics],2")
usr << output("Dexterity", "Stats.Stat:[++Statistics],1")
usr << output("Aura", "Stats.Stat:[++Statistics],2")
usr << output("Agility", "Stats.Stat:[++Statistics],2")
usr << output("Endurance", "Stats.Stat:[++Statistics],1")
src << output("Endurance", "Stats,Stat:1,")
winset(usr, "Stats.Stat", "cells=[Statistics]x2")




mob/proc/UpdateTechniques()
var/Techniques = 0
for(var/obj/O in src)
winset(src, "Skills,Skill", "current-cell=[++Techniques]")
src << output(O, "Skills,Skill")
winset(src, "Skills,Skill", "cells=[Techniques]")<dm>