Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 831 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Define, manipulate Skills for Entities #458056
02/15/16 02:11
02/15/16 02:11
Joined: Oct 2007
Posts: 40
Switzerland
N
Nikozu86 Offline OP
Newbie
Nikozu86  Offline OP
Newbie
N

Joined: Oct 2007
Posts: 40
Switzerland
Hi everyone!
After a Long time (since A7) i started again with some Game programming. But i have Trouble getting entity-skills to work :-(

#define HEALTH skill01

....
Action plmove()
{
player = me;
my.HEALTH = 100;
....
}


No script Errors but it doesn`t work, there is no Haelth at all! Whats wrong??

Re: Define, manipulate Skills for Entities [Re: Nikozu86] #458057
02/15/16 02:39
02/15/16 02:39
Joined: Oct 2007
Posts: 40
Switzerland
N
Nikozu86 Offline OP
Newbie
Nikozu86  Offline OP
Newbie
N

Joined: Oct 2007
Posts: 40
Switzerland
If i change my.HEALTH to my.skill01 in the Action-function
plmove()

my.skill01 = 100; // instead of my.HEALTH = 100; ???


it works! Why is that??

Re: Define, manipulate Skills for Entities [Re: Nikozu86] #458058
02/15/16 06:14
02/15/16 06:14
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hi, try skill1 instead of skill01. Plus, you better don't use first like 20 skills (or even more, but it depends on what you are trying to archive), cause they might be changed by WED etc.

Greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Define, manipulate Skills for Entities [Re: 3run] #458074
02/15/16 19:51
02/15/16 19:51
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
Yes, it is skill1 instead of skill01. Also, keep in mind you can access skills like an array now skill[0] (or ex. skill[health] laugh Awesome improvement!


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: Define, manipulate Skills for Entities [Re: EpsiloN] #458076
02/15/16 21:05
02/15/16 21:05
Joined: Oct 2007
Posts: 40
Switzerland
N
Nikozu86 Offline OP
Newbie
Nikozu86  Offline OP
Newbie
N

Joined: Oct 2007
Posts: 40
Switzerland
Thanks for the tips! :-)


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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