Author
|
Topic: dinkc is annoying
|
Lazybum |
posted 02-07- 09:06 PM CT (US)
hey, thx for all ur help see if u can figure this one out im probably doin something totally wrong..but i tried to learn this from existing scripts, because noone made a tutorial =)anyway, i wanted to make the scenario: dink talks to guy, dink talks to another guy, dink talks to the first guy who says something different..here are my scripts, it doesnt work so far... first guy: void talk( void ) { if (&pres == 0) { freeze(1); freeze(¤t_sprite); choice_start() "Hiya" "Que pasa?" "Im bored, this dmod sux" "Leave" choice_end() if (&result == 1) { wait(400); say_stop("message", 1); wait(250); say_stop("`9message", ¤t_sprite); wait(250); say_stop("message", 1); } if (&result == 2) { wait(400); say_stop("message", 1); wait(250); say_stop("`9message", ¤t_sprite); wait(250); say_stop("`9message", ¤t_sprite); } if (&result == 3) { wait(400); say_stop("message", 1); wait(250); say_stop("`9message,", ¤t_sprite); wait(250); say_stop("`9message", ¤t_sprite); } unfreeze(1); wait(500); unfreeze(¤t_sprite); } } //this is where i tried to make him say //something different instead of the choice //i made popping up void talk( void ) { if (&pres == 1) { freeze(1); say_stop("message", 1); wait(250); say_stop("`9message", ¤t_sprite); unfreeze(1); } } hope u can figure it out..thx for ur time=)
|
Lazybum
|
posted 02-07- 09:09 PM CT (US)
o, hehe, i forgot the second guys script.. void talk ( void ) { freeze(1); say_stop("message", 1); wait(250); say_stop("`1message", ¤t_sprite); wait(250); say_stop("`1message", ¤t_sprite); wait(1000); say_stop("message", 1); wait(2000); say_stop("`1message", ¤t_sprite); unfreeze(1); &pres = 1; }
|
BSitko
|
posted 02-07- 09:16 PM CT (US)
What is wrong with it? What is it not doing? |
BSitko
|
posted 02-07- 09:23 PM CT (US)
One thing I noticed already is that you have two void talk (void). You don't need two here. Secondly you should indent like this: void main (void) // This goes first! {void talk( void ) { if (&pres == 0) { freeze(1); freeze(current_sprite); choice_start() "Hiya" "Que pasa?" "Im bored, this dmod sux" "Leave" choice_end() if (&result == 1) { wait(400); say_stop("message", 1); wait(250); say_stop("`9message", 川_sprite); wait(250); say_stop("message", 1); } if (&result == 2) { Blah blah blah so forth and so on. Put two }'s at the end and then ask: if (&pres == 1) { blah blah blah Put and return; and the end of the choices.
|
BSitko
|
posted 02-07- 09:25 PM CT (US)
It didn't indent the above script. If you want send it to me at BSitko@prodigy.net and I can fix it for you. Then give you a txt file telling you how. I learned DinkC this way too so it is possible. Try downloading one of the tutorials from Dink Network like I did or check the tutorial in your Dink directory under develop. |
Lazybum
|
posted 02-08- 02:49 PM CT (US)
yea i did all the tutorial stuff...the problem is: when i first talk to guy#1 it brings up the choice i made like it was supposed to... then i talk yo guy#2 and i talk to guy#1 but nothing changes...still the choice comes up |
Lazybum
|
posted 02-08- 02:54 PM CT (US)
o, and do u know any alive links for good tutorials (hopefully u can see determine my lvl of knowledge by the scripts)? im especialy looking for a movie one (good link for walmas?). thx |
BSitko
|
posted 02-08- 11:25 PM CT (US)
You'll have to send me the scripts for me to help you. BSitko@prodigy.net |