Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, alibaba, TipmyPip), 1,144 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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