Coding

 Reply to this postStart new topic

[Q] Variables to specify Labels ??

LINK/2012
post Jun 22 2011, 03:45 AM
Post #1


I will kill you

Posts: 126
Joined: 13-May 11



Is there any way to put a jump to label specifying a variable?

Do not you understand?
Example:
CODE
0@ = 1
jump @LABEL_0@

:LABEL_1
0ACA: show_text_box "Great!"
0A93: end_custom_thread


This is a little crazy, but, I need to know if it exists (I think not, but that's okay)

Please, Answer, even if it is not

[Sorry if my english is bad]
Go to the top of the page
 
+Quote Post
Deji
post Jun 22 2011, 04:32 AM
Post #2


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



SANNY
0@ = @LABEL_1
jump 0@

:LABEL_1
0ACA: show_text_box "Great!"
0A93: end_custom_thread


--------------------
Go to the top of the page
 
+Quote Post
LINK/2012
post Jun 22 2011, 02:30 PM
Post #3


I will kill you

Posts: 126
Joined: 13-May 11



No have a form to calculate the label to jump?
Example:
CODE
// The code below is a example \\
[...]
//Check What Mission the player are
while true
0@ = 1
if 1@ == 2@ //2@ is the var that stores the value of the Current Mission (Example)
then
jump @MISSION_1@
end
1@ += 1
end
[...]


This code above, no have any logic function, but, is a example.

This post has been edited by LINK2012: Jun 22 2011, 02:31 PM
Go to the top of the page
 
+Quote Post
Silent
post Jun 22 2011, 05:52 PM
Post #4


The master of cut retort

Group Icon

Posts: 239
From: Warsaw, PL
Joined: 21-July 10



No, it does not work like that.
Go to the top of the page
 
+Quote Post
LINK/2012
post Jun 22 2011, 06:29 PM
Post #5


I will kill you

Posts: 126
Joined: 13-May 11



Ok, thanks for the help.
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: