Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,789 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
event_receive - send_skill #431317
10/14/13 04:01
10/14/13 04:01
Joined: Aug 2011
Posts: 42
F
fabiomartins Offline OP
Newbie
fabiomartins  Offline OP
Newbie
F

Joined: Aug 2011
Posts: 42
hello dear people,
I need some example using event_receive & send_skill & Physic together,
Because the manual & AUM is very poor for it.

Re: event_receive - send_skill [Re: fabiomartins] #431343
10/14/13 14:20
10/14/13 14:20
Joined: Aug 2011
Posts: 42
F
fabiomartins Offline OP
Newbie
fabiomartins  Offline OP
Newbie
F

Joined: Aug 2011
Posts: 42
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;
...
}

Re: event_receive - send_skill [Re: fabiomartins] #433110
11/23/13 19:25
11/23/13 19:25
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
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;
}



Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1