Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (fogman, Grant, AndrewAMD, juanex), 989 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
variable define HELP!plz #274388
06/26/09 17:45
06/26/09 17:45

R
ricky5564 OP
Unregistered
ricky5564 OP
Unregistered
R



Ok so i want to define skill1 for the character only and im using this

DEFINE Pan_Range,skill1;

and the skill1 for the character dosent change... the scripts are linked to the WED FILE everything is workin but i need to defin the characters skill1 to Pan_Range .... and only the characters skill one... because i have doors and other stuff to define to if you could help me i would greatly appreciate it

Re: variable define HELP!plz [Re: ] #274392
06/26/09 17:48
06/26/09 17:48
Joined: Jul 2005
Posts: 187
L
lostzac Offline
Member
lostzac  Offline
Member
L

Joined: Jul 2005
Posts: 187
ok how are you calling it on the character to change its pan

like
action mychar
{
my.pan = skill1;
}


John C Leutz II

Re: variable define HELP!plz [Re: lostzac] #274487
06/26/09 22:51
06/26/09 22:51
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

YOur
DEFINE Pan_Range,skill1;

From the manual

#define HEALTH skill17


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: variable define HELP!plz [Re: Ottawa] #274610
06/27/09 15:13
06/27/09 15:13
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Hello,
Defines and Variables are almost the same.. but they are not.




The variable is created like so:

var pan_range = 0;


Quote:
Quote the manual: Variables store Numbers.

You can use these numbers anywhere, on anything.




Defines are made up like so:

Define pan_range, skill1;


defines can be used on all 'entities', not just one; But only entities, since its used like so:

//numbers are random for example
my.pan_range = 25;

..or..


enemy.pan_range = 50;


..or..


player.pan_range = 3234;


..or..

var d_button_down = 0;

...
if(d_button_down == 1){enemy.pan_range = 21;}





Hope that helps you out. smile


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com

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