Adding a pentagram in Developer Help
|
|
Code:
mob/verb/Add_Penta() for(var/obj/O in typesof(/obj/OnScreen/Battle/PentaGram)) usr.client.screen += new O
PentaGram icon='OnScreen - Battle layers.dmi' New() ..() screen_loc = icon_state _1_0/icon_state="1,0" _2_0/icon_state="2,0" _3_0/icon_state="3,0" _4_0/icon_state="4,0" _5_0/icon_state="5,0" _6_0/icon_state="6,0" _7_0/icon_state="7,0"
|
Problem description:
I hit the verb, and well, nothing happens. I'm completely stumped. =( All the icon_states are in the format of "#,#" So I don't see how that would be a problem.
Haha. I'm just failing so hard today.
|
I had a simple code like that but it didn't work so you have to do each one individually.
you can either go
usr.client.screen += new obj/PentaGram/_1_0usr.client.screen += new obj/PentaGram/_2_0
etc
or you can make a list
var/list/Pentagram = list(new obj/PentaGram/_1_0,new obj/PentaGram/_2_0/*etc*/)
for(var/obj/O in Pentagram)
usr.client.screen += new O
</dm>