if I define a entity example:
entity* megan_fox;
and make a action:
action sel_player {
megan_fox = my;
my.skill5 = 100;
}
1) does that make everything within the quotations marks megan_fox when i use my,
2) say I create a action weapon() in another wdl. for instance
action weapon {
while (1)
{
if (my.skill5 > 0 ) {wait(1);}
c_trace(megan_fox.x, enemy.x, ignore_me | ignore_passable);
if (you == enemy)
{
status_txt.string = "SEES ENEMY!";
enemy.invisible = off;
}
else
{
if (you != enemy ){
status_txt.string = "ALL CLEAR!";
enemy.invisible = on;
}
}
status_txt.visible = on; // show the text
sleep (1); // for 1 second
}
}
I put the action weapon() within the megan_fox action, will the action know megan_fox = my or do I need to include it again in the weapon() action or change my.skill51 to megan_fox.skill51
Last edited by 48th_Ronin; 01/06/09 03:37.