Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - dayowlron

#1161
The Rumpus Room / Re: *Guess the Movie Title*
Mon 27/02/2017 15:28:32
Homeward bound or one of the Benji movies?
#1162
If these names are all characters in your game you can use the custom properties instead of arrays, but either one is the way you want to go.
#1163
The Rumpus Room / Re: The Movie Quote Game
Sun 26/02/2017 23:07:03
Friends with Benefits?
#1164
In dialogs you have to reference objects by number. for instance if ofortbot is object number 1
    object[1].Animate(0, 1, eOnce, eBlock);
#1165
The Rumpus Room / Re: The 4 word story thread
Sun 26/02/2017 12:59:07
a ninja with his
#1166
The issue is it is just sorting the items that exist in the listbox and not the arrays. Unfortunately the ListBox control in AGS does not have an ItemData property. For this reason you need to sort all of the arrays as you sort the listbox.
It looks like you have 3 fields that are linked together. clientName, clientAddress, and clientPhoto. What you need to do is add a "swap" for each item you swap on the Listbox. If you use the "Sort" function for another list box then make a different function than this one because this one will be built for explicitly your arrays.
Code: ags

void Sort(this ListBox*, eOrder order, bool caseSensitive) {
  
  int ic = this.ItemCount;
  if (ic < 2) return;
 
  int i, j, c, tempint;
  String temp;
  while (i < ic - 1) {
    j = i + 1;
    while (j < ic) {
      c = this.Items[i].CompareTo(this.Items[j], caseSensitive);
      if ((c < 0 && order == eOrderDescending) || (c > 0 && order == eOrderAscending)) {
        temp = this.Items[i];
        this.Items[i] = this.Items[j];
        this.Items[j] = temp;
        temp = clientName[i];
        clientName[i] = clientName[j];
        clientName[j] = temp;
        temp = clientAddress[i];
        clientAddress[i] = clientAddress[j];
        clientAddress[j] = temp;
        tempint = clientPhoto[i];
        clientPhoto[i] = clientPhoto[j];
        clientPhoto[j] = tempint;
      }
      j++;
    }
    i++;
  }
}

#1167
The Rumpus Room / Re: The Movie Quote Game
Sat 25/02/2017 03:44:37
Dude, Where's My Car?
#1168
The Rumpus Room / Re: The Movie Quote Game
Sat 25/02/2017 02:45:45
Sounds like a cheech and chong movie so I am gonna guess "Up in smoke."
#1169
The Rumpus Room / Re: The Movie Quote Game
Fri 24/02/2017 22:53:40
Dune?
#1170
You can SetWalkBehindBaseline, but don't know if you can retrieve it.
#1171
The Rumpus Room / Re: The 4 word story thread
Fri 24/02/2017 20:40:54
and the buttercream contained
#1172
The Rumpus Room / Re: The 4 word story thread
Fri 24/02/2017 20:32:00
any cake because he
#1173
The Rumpus Room / Re: The Movie Quote Game
Fri 24/02/2017 20:16:32
CHUD?
#1174
Correct me if I am wrong but something like:
player.ActiveInventory=null;
#1175
The Rumpus Room / Re: The 4 word story thread
Fri 24/02/2017 19:33:00
celebrate his birthday with
#1176
The Rumpus Room / Re: The Movie Quote Game
Fri 24/02/2017 19:09:12
Darth got it.
It was Iron Eagle.
#1177
The Rumpus Room / Re: The Movie Quote Game
Fri 24/02/2017 17:34:41
still (wrong)
Top Gun was a good guess though. probably the closest guess so far.
Even though it is the wrong branch of the military.
#1178
The Rumpus Room / Re: The Movie Quote Game
Fri 24/02/2017 17:01:23
all (wrong)
someone is bound to get it from this quote
...they're American! Roger Blue Leader, I've got two bandits on my ass, can you assist?
We were about to contact the aggressor and verify his intentions. Attention unidentified aircraft, this is Major Dwight Smiley of the United States Air Force, you are following one of our F-16s in international airspace, do you wish to engage?
(pause)
I didn't think so.
#1179
The Rumpus Room / Re: The Movie Quote Game
Fri 24/02/2017 15:49:37
That one was just guessed by Mandle
#1180
The Rumpus Room / Re: The Movie Quote Game
Fri 24/02/2017 14:54:02
(wrong)
Even though the movie could not happen in real life. There was not a "superhero" in it.
Might be good to not think about the sequel clue, because none of the sequels really did very good in the box office.
My next quote that I have picked out should give it away to anyone that has seen the movie.
SMF spam blocked by CleanTalk