changing entity'strings at runtime

Posted By: tzw

changing entity'strings at runtime - 04/02/11 14:27

change entity'strings at runtime. and further, change the limited to more charas (128?) in order to store some file's address which entity need (such as entity sound) i guess it is very useful in a lots of conditions. sorry for my poor english.
Posted By: tzw

Re: about entity'string1/2 - 04/03/11 14:15

or anyone can tell me how to bind a string to a entity easily? thx.
Posted By: MasterQ32

Re: about entity'string1/2 - 04/03/11 14:23

//to create the string in string1
my.string1 = str_create("#256");

//to create the string in skill1
my.skill1 = str_create("#256");
Posted By: tzw

Re: about entity'string1/2 - 04/03/11 14:46

thx sir , but the manual says that string1 is read only … i'm confused...
Posted By: MasterQ32

Re: about entity'string1/2 - 04/03/11 16:04

it is read-only until you redefine it
Posted By: Uhrwerk

Re: about entity'string1/2 - 04/03/11 17:33

How do you redefine a struct member?
Posted By: Redeemer

Re: about entity'string1/2 - 04/04/11 13:55

It is really annoying how you can only use str_cpy and str_cat with entity strings. It would be helpful if you could use entity strings just as easily as any other type of string.
Posted By: tzw

Re: about entity'string1/2 - 04/04/11 14:31

....wait for MR.JCL
Posted By: jcl

Re: about entity'string1/2 - 04/07/11 08:06

Entity strings are only for passing some short name, tag, or file name from WED to the script. They have no other purpose and must NOT be used for attaching strings to entities, string operations, or anything like that.

If you don't know how to connect STRING objects to entities, ask on the forum - you'll certainly get 100 solutions.
Posted By: tzw

Re: about entity'string1/2 - 04/07/11 11:30

em...thank you anyway
© 2024 lite-C Forums