Posted: Thu Jun 08, 2017 9:11 am Post subject: I'm Making A Text Based RPG And I Seem To Be Stumped

What is it you are trying to achieve?

I am trying to get these functions working so that way I can make the combat system work more efficiently and when the story progresses I can just call upon the functions to make it easier to start the combat part.

What is the problem you are having?

I'm getting some errors that I'm not too sure about. It says that a "." is expected when I try to give a range for a Rand.Int or that I can only reference "Int" (when I try to use Rand.Int) in a post statement and I've never heard of Post statements...

Describe what you have tried to solve this problem

I have tried to move some functions around because maybe it's the order they'r in. I have a hunch that it could be my variables and the input that the function takes to make the output unless I'm missing something which I think I am... maybe it's right there (is it "result [something here]"?).

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)

Posted: Thu Jun 08, 2017 10:17 am Post subject: RE:I\'m Making A Text Based RPG And I Seem To Be Stumped

Rand.Int uses a comma, not periods.

Rand.Int (85, 150)

I can't test it right now but I have a feeling that fixing this might solve both of your error messages.

ProxyKaliber

Posted: Fri Jun 09, 2017 9:36 am Post subject: Re: I'm Making A Text Based RPG And I Seem To Be Stumped

Thanks. I'm going to try that right now haha. I get tiny things like that confused.

ProxyKaliber

Posted: Mon Jun 12, 2017 8:17 am Post subject: Re: I'm Making A Text Based RPG And I Seem To Be Stumped

Unfortunately that solved very little of the many errors I've been getting. I also logged on today for the second time to find that all of my progression has been deleted, either by computer error or my own it is too soon to assume because assuming makes an ass out ouf u and me. Anyways. I've got a lot to catch up with.

TokenHerbz

Posted: Wed Aug 16, 2017 9:45 pm Post subject: RE:I\'m Making A Text Based RPG And I Seem To Be Stumped

Turing:

%%First thing i seen was your functions are wrong.%% i got a slight feeling some copy pasting was done??

also i'd usually have the inputs in the main loops and have functions/procs that deal with it from there.

Dragon20942

Posted: Fri Sep 22, 2017 9:21 pm Post subject: RE:I\'m Making A Text Based RPG And I Seem To Be Stumped

I don't think Rand.Int can be introduced as a local variable. That might be the whole deal with the "post statement" since Rand.Int can only be "posted" as a value, but it cannot be assigned values itself.