Recent Posts

Pages: 1 ... 8 9 [10]
Site & Forum Reports / Re: Someone’s having trouble registering.
« Last Post by AGA on 10 Dec 2018, 22:32 »
Okay, so I've made quite a lot of changes to the forums in the background, to fix the registration, plus various issues people probably never even noticed.  Please do let me know of anything that's missing, or weird looking, though.
The Rumpus Room / Re: Happy Birthday Thread!
« Last Post by dactylopus on 10 Dec 2018, 22:09 »
Happy birthday Scavenger!
Happy birthday dactylopus!

Thank you!
1) Yes. I also debugged and made sure it does.
2) Everything is done in the GlobalScript. I didn't export anything, I just stated the array like the code snippet shows(was I supposed to?)
3) Yes.
4) I meant there are a couple of more If statements that follow, didn't want to trouble the readers :)

I really appreciate the help!
The error is not where you think it is.

Things to check:
-Is InitEditorExpectations() actually called, and before GetEditorExpectationsInTextFormat()?
-Are the two functions in the same script? If not, how are you exporting and importing interviewExpectations[]?
-Are you sure you're actually checking the return value of GetEditorExpectationsInTextFormat()?
-What's in that "...." in the code?

(I've got my money on the second point, and that you've inadvertently created two different interviewExpectations[] arrays.)
Well, the code is basically the same as I posted in the original post, plus the fix for the string appending error I did.

I have a Boolean array that should represent a certain desired state for the player.
Some of the cells will be false, some will be true depending on the situation.
For the sake of understanding what am I doing wrong, I set them all to be true.
Now, on the GetEditorExpectationsInTextFormat() function I would like to generate a string representation of the desired state.
So for each cell in true state, add something to a string. In the end return the string.
What I meant is, that despite the entire array set as true, none of my If statements are considered true, so nothing happens.

Code: Adventure Game Studio
  1. bool interviewExpectations[10];
  3. function InitEditorExpectations()
  4. {
  5.   //init the array
  6.   for(int i=0; i < 10; i++)
  7.   {
  8.     interviewExpectations[i] = true;
  9.   }
  10. }
  12. String GetEditorExpectationsInTextFormat()
  13. {
  14.   String expectations = "";
  15.   if(interviewExpectations[0] == true)
  16.     expectations.Append("Aggressive, ");
  17.   if(interviewExpectations[1] == true)
  18.     expectations.Append("Emotional, ");
  19.   if(interviewExpectations[2] == true)
  20.     expectations.Append("Fictional, ");
  21.   if(interviewExpectations[3] == true)
  22.     expectations.Append("Friendly, ");
  23.   ....
  24.   return expectations;
  25. }

Congrats on the release! I liked the first episode, good thing you completed the game.

Putting on moderator hat: Please create a new database entry for the full game. Otherwise, the download stats, nominations, links from extern etc. would be messed up. Additionally, if you add a new entry, you will be able to participate in the AGS awards 2018 with the game.
To make it clear that the full game was released, you can edit the page of chapter 1 and add a note and link to the full game. I have no idea why you cannot update the entry yourself, it looks alright to me. However, I can update it for you, if you want.
Critics' Lounge / Re: My son wants to make music for games
« Last Post by cat on 10 Dec 2018, 19:56 »
Since you asked especially for feedback, I've moved the thread to critics lounge.

I'm looking forward to many father-son productions :)
The Rumpus Room / Re: The funny pics thread? :)
« Last Post by Blondbraid on 10 Dec 2018, 16:33 »
I tried drawing a funny Idea I got in my head:
Hints & Tips / Re: Blooded Fields
« Last Post by Cassiebsg on 10 Dec 2018, 16:31 »
Spoiler: ShowHide

Newspaper? Spyglass? Am I playing the same game? I only have the knive,bloody clothes, note and a cup of tea. 8-0

Pages: 1 ... 8 9 [10]