8,484
edits
No edit summary  | 
				Paradox-01 (talk | contribs)   (more o_O)  | 
				||
| Line 51: | Line 51: | ||
:::Did you actually notice what paradox is doing here? riddle_counter is tracking how many times iterate works. So asking if riddle_counter works on its own is kinda silly ;-) Anyway, how sure are we that this is how iterate was meant to be used? I mean, it looks like you're setting an iterator to a function pointer or something, which is sort of weird for any language. Wouldn't iterate have been intended for use with arrays? It seems like all those deprecated keywords -- every, for, iterate, over, repeat, and using -- were meant for arrays. Now if only we knew how to make an array! --[[User:Iritscen|Iritscen]] 11:32, 7 December 2009 (UTC)  | :::Did you actually notice what paradox is doing here? riddle_counter is tracking how many times iterate works. So asking if riddle_counter works on its own is kinda silly ;-) Anyway, how sure are we that this is how iterate was meant to be used? I mean, it looks like you're setting an iterator to a function pointer or something, which is sort of weird for any language. Wouldn't iterate have been intended for use with arrays? It seems like all those deprecated keywords -- every, for, iterate, over, repeat, and using -- were meant for arrays. Now if only we knew how to make an array! --[[User:Iritscen|Iritscen]] 11:32, 7 December 2009 (UTC)  | ||
::::O_o You are right. Two things to check: See what somethingX is at the end. Try setting SomethingX to a value first. [[User:Gumby|Gumby]] 00:12, 8 December 2009 (UTC)  | ::::O_o You are right. Two things to check: See what somethingX is at the end. Try setting SomethingX to a value first. [[User:Gumby|Gumby]] 00:12, 8 December 2009 (UTC)  | ||
::::: iterate over something2 using 7<br>Line 43 Illegal token, got "7" expected "identifier"<br>Hm, whatever. I think the "right" one was ignored. See following... The messages stop appearing after the fourth time again. Any ideas? (Is my oni sick or what?) --[[User:Paradox-01|Paradox-01]] 07:09, 8 December 2009 (UTC)  | |||
 var int riddle_counter = 0;  | |||
 func main  | |||
 {  | |||
 	chr_wait_animtype 0 punch  | |||
 	BSL_chaos  | |||
 }  | |||
 func BSL_chaos  | |||
 {  | |||
 	riddle_counter = riddle_counter + 1;  | |||
 	sleep 30  | |||
 	if (riddle_counter eq 1)  | |||
 	{  | |||
 		dmsg "[g.riddle 1]"  | |||
 	}  | |||
  	if (riddle_counter eq 2)  | |||
 	{  | |||
 		dmsg "[g.riddle 2]"  | |||
 	}  | |||
 	if (riddle_counter eq 3)  | |||
 	{  | |||
 		dmsg "[g.riddle 3]"  | |||
 	}  | |||
 	if (riddle_counter eq 4)  | |||
 	{  | |||
 		dmsg "[g.riddle 4]"  | |||
 	}  | |||
 	if (riddle_counter eq 5)  | |||
 	{  | |||
 		dmsg "[g.riddle 5]"  | |||
 	}  | |||
 	if (riddle_counter eq 6)  | |||
 	{  | |||
 		dmsg "[g.riddle 6]"  | |||
 	}  | |||
 	sleep 30  | |||
 	BSL_chaos  | |||
 }  | |||
edits