Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,038 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
string 1 and string 2 under behavior tab (object properties) #203591
04/22/08 22:13
04/22/08 22:13
Joined: Feb 2008
Posts: 22
J
jsaechao Offline OP
Newbie
jsaechao  Offline OP
Newbie
J

Joined: Feb 2008
Posts: 22
When I add a behavior to an entity and then go back to the "Object Properties" under the behaviour tab, there are two sections "string 1" and "string 2". What are they used for? I am using the A6 template

Re: string 1 and string 2 under behavior tab (object properties) [Re: jsaechao] #203600
04/23/08 00:31
04/23/08 00:31
Joined: Apr 2008
Posts: 2
B
BobBobson108 Offline
Guest
BobBobson108  Offline
Guest
B

Joined: Apr 2008
Posts: 2
The manual at http://www.conitec.net/wdlman4.pdf lists two definitions for string1 and string 2.

string1, string2
String synonyms for use in actions (eg. to display a text if the mouse touches the object).

string = string1, string2...;
The actual text, containing of one or more strings (define maximum number in strings
beforehand!). String may be changed by functions during gameplay. If a string name null is
assigned, no text is displayed. If the text contains more than one string, individual strings can
be accessed through a [] index suffix, e.g.
my_text.string[7] = new_string;

Hope that helps!

Re: string 1 and string 2 under behavior tab (object properties) [Re: BobBobson108] #203646
04/23/08 08:49
04/23/08 08:49
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
they are general purpose strings to use like "skill"s


3333333333
Re: string 1 and string 2 under behavior tab (object properties) [Re: Quad] #212416
06/22/08 11:15
06/22/08 11:15
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
uhm.. don´t want to create a new Thread..so..

Am i able to set a count in the string. f.e. "200"
and set a variable to this??

Code:
var name = string1;


like that?


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: string 1 and string 2 under behavior tab (object properties) [Re: Espér] #212424
06/22/08 12:03
06/22/08 12:03

F
Fear411
Unregistered
Fear411
Unregistered
F



yes you can. but you have to convert it first:

Code:
var name;

name = str_to_num(string1); 


Re: string 1 and string 2 under behavior tab (object properties) [Re: ] #212435
06/22/08 12:47
06/22/08 12:47
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
ah..
thank you...


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: string 1 and string 2 under behavior tab (object properties) [Re: Espér] #212640
06/23/08 15:03
06/23/08 15:03
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
but for numbers you'd better use skills.

Re: string 1 and string 2 under behavior tab (object properties) [Re: Joey] #213231
06/26/08 14:14
06/26/08 14:14
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
hmm.. skills are called via:
Code:
my.distance = my.skill1;

???

Is that right?? Because i got an error..


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<

Moderated by  HeelX, rvL_eXile 

Gamestudio download | 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