Gamestudio Links
Zorro Links
Newest Posts
Zorro and IB Gateway
by cwford. 04/07/20 00:31
MT4 bridge: Check account number
by tradingest. 04/06/20 12:36
Loging off automatically ?
by jcl. 04/06/20 12:25
zorro contract example
by jcl. 04/06/20 09:22
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
4 registered members (Lozoteva, jbhunter, 3run, Stansmedia), 642 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
vishal, tanhwuser, beo, marsz, gonzalez21
18413 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,198
Caucasus
3run Online
Senior Expert
3run  Online
Senior Expert

Joined: May 2009
Posts: 5,198
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
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