Code:Click()
MakeHelperPortrait() // creates the portrait
usr.textonscreenbackground(1,1,13,3)//Sets up hwo big you want the background to be.
usr.textonscreenTEXT(1.5,12,3,1.5,"Oak: Hello! Welcome To Pokemon World!")
sleep(10) // how long after the text is writtin out
usr.close_menu() // kill the menu
DelHelperPortrait() // kill the po
MakeHelperPortrait() // create an obj for each and display em on screen
var/obj/p1=new
p1.icon='faceoak.dmi'
p1.icon_state=""
p1.screen_loc="12,2"
p1.layer = MOB_LAYER+7
usr.client.screen+=p1
DelHelperPortrait() // kill the portrait after
for(var/obj/p1 in usr.client.screen)del(p1)
Problem description:
when it closes the menu it calls on a proc delhelperportrait and then when it deletes that it aslo deletes my hub does anyone know how to fix it
ID:262312
![]() Apr 12 2005, 12:27 pm
|
|
![]() Apr 12 2005, 11:52 pm
|
|
You could either redraw the HUD after you call DelHelperPortrait() or put the portrait objects under a different path.
|