Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, SBGuy, Petra, flink, 1 invisible), 699 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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