R
Red Phantom
Guest
Down Press Event for created object obj_gravestone
Draw Event for subsidiary object obj_grave_text
Originally I had the numbers replaced with strings:
#1 ---- > grave_1_text
#2 -----> cross_grave_1_text
#3 -----> croos_grave_2_text.... and so on...
Neither seem to work, both causing different errors.
Originally I had separate text objects for each different string of text but I am determined to have solely one text object.
After I fix this I would like to further merge the obj_gravestone and obj_grave_text to one ultimate object
Code:
if instance_exists(obj_Exit_Game) then exit
inst_grave = instance_place(x, y, obj_Meskhenet)
if inst_grave != noone
{
if global.inconversation = false
{
global.inconversation = true
child = instance_create(0,0,obj_Grave_Text)
if inst_grave.image_index = 0 then child.identification = 1
if inst_grave.image_index = 3 and inst_grave.x = 120 then child.identification = 2
if inst_grave.image_index = 3 and inst_grave.x = 296 then child.identification = 3
if inst_grave.image_index = 4 then child.identification = 4
if inst_grave.image_index = 1 then child.identification = 5
if inst_grave.image_index = 2 then child.identification = 6
}
}
Code:
///Execute Script: scr_Draw_Grave_Text
if identification = 1 then script_execute(scr_Draw_Grave_Text,"GAMAL#103 AA, MARIS - 141 AA, DISAMBIR")
if identification = 2 then script_execute(scr_Draw_Grave_Text,"FUKAYNA#87 AA, DISAMBIR - 112 AA, SIBTAMBAR")
if identification = 3 then script_execute(scr_Draw_Grave_Text,"FADIL#61 AA, SHAHR NUFIMBIR#- 87 AA, 'AGHUSTUS")
if identification = 4 then script_execute(scr_Draw_Grave_Text,"FARID#65 AA, SIBTAMBAR -#101 AA, SHAHR FIBRAYIR")
if identification = 5 then script_execute(scr_Draw_Grave_Text,"NOUR#120 AA, SHAHR 'UKTUBAR#- 152 AA, QAD")
if identification = 6 then script_execute(scr_Draw_Grave_Text,"LAPIS#123 AA, YULIU - 152 AA, QAD")
#1 ---- > grave_1_text
#2 -----> cross_grave_1_text
#3 -----> croos_grave_2_text.... and so on...
Neither seem to work, both causing different errors.
Originally I had separate text objects for each different string of text but I am determined to have solely one text object.
After I fix this I would like to further merge the obj_gravestone and obj_grave_text to one ultimate object