event_receive - send_skill

Posted By: fabiomartins

event_receive - send_skill - 10/14/13 04:01

hello dear people,
I need some example using event_receive & send_skill & Physic together,
Because the manual & AUM is very poor for it.
Posted By: fabiomartins

Re: event_receive - send_skill - 10/14/13 14:20

function receive_event()
{
if (event_type == EVENT_RECEIVE)
{
... // <<< I need the script to check skill and react
}
}

action actor()
{
...
my.ENABLE_RECEIVE = ON; // sensible for this event
my.emask |= ENABLE_RECEIVE;
my.event = receive_event;
...
}
Posted By: EpsiloN

Re: event_receive - send_skill - 11/23/13 19:25

I'm not shure what you're asking for...
Code:
if(my.skill40 != 0)
{
  // do stuff
}


?

If you want to keep track if a skill changed , you need to use another skill of the same entity. For example:
Code:
if(my.skill41 != my.skill40)
{
  // do stuff
  my.skill41 = my.skill40;
}

© 2024 lite-C Forums