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 - Matti

#141
+1

That would indeed be very useful!
#142
Instead of

Code: ags
if (EventType == eEventAddInventory)


write

Code: ags
if (event == eEventAddInventory)


Because the function looks like this:

Code: ags
function on_event(EventType event, int data)


;)
#143
You could have two variables, seconds an minutes. If seconds reach -1, set them to 59 and decrease the minutes by 1.

Alternatively you could make a while loop that substracts 60 from a number of seconds until there are less than 60 seconds left, while adding +1 to a minute variable. The first solution should be simpler though.
#144
Kary Mullis denied AIDS being caused by HIV, the ozon depletion, climate change.. and believed in astrology. I don't think I want to listen to him, and I also don't really care what he thinks about Fauci.
#145
Does it work if you use Game.InventoryItemCount instead of invCustom.ItemCount?
#146
So the player loses items 14 and 15, but not items 16-18? That sounds strange. Right now I don't have the time to look into this/test it myself, but maybe tomorrow.
#147
You can cycle through all items and check each item's property.

Untested code:
Code: ags

for (int i = 0; i < invWindow.ItemCount; i++) {
  if (inventory[i].GetTextProperty("Cooking")
  {
    // do stuff, e.g. lose the item
  }
}
#148
Yeah, that's almost as funny as that incel video  :-X
#149
Oh, please elaborate and maybe even enlighten us, Slasher.
#150
Regarding question 5:

It's possible to do that. You have to set the Speechstyle in the general settings from LucasArts to Sierra, but I don't know how it's set up properly. I'm not using the Display function either, so I can't help you with the other questions.
#151
Beginners' Technical Questions / Re: eKeyEnter
Sun 04/07/2021 09:57:39
It's eKeyReturn.
#152
I'll get my first shot in two weeks and because of the delta variant I'm quite happy about this too. I really hope a lot more people will get vaccinated over the summer, and gladly most of my friends will or already got vaccinated.

I'm definitely hoping for a better fall and winter than last year!
#153
I just realized that I haven't posted in this thread yet! This looks really nice. Your art skills are superb and the animations look fantastic. The premise sounds fun too  :)

Good luck with the development! I'll try out Off the Clock soon(ish).
#154
Gerne  :)

And yes, CW did the explanation I had in mind but was too lazy to write down  ;)
#155
Hi there  ;-D

You need some extra brackets:

Code: ags
if ( (aliceCount >= 1 || lilaCount >=1 || tedCount >= 1) && brushCount == 0 && cMalcolm.ActiveInventory == iDinceyDollBrush)


Because in your code the condition would be true even if brushCount would be higher than zero as long as aliceCount or lilaCount would be >= 1.
#156
You can give the object a name via the object's properties panel at the lower right of the editor.

The code goes into the room's script, not the global script, like everything else that is room-related. If you want for example a constantly flickering light in a room, put oLight.Animate(loop, delay, eRepeat, eNoBlock) in the room_Load() function. If you want to make an animation to start at some later point, put the code where the condition is met to start the animation.

I named the object oLight, because an "o" is useful to indicate that it's an object, not something else.

On another note: Densming has made video tutorials for AGS on Youtube. You should check them out, they might help you a lot with the basics.
#157
Using objects is the way to go if you want to animate parts of the background. I'm not sure what the problem is though, just use Object.Animate. Make sure that you use eNoBlock and also eRepeat in case it's supposed to be constantly animated.
#158
Same for me  :-D I still do not own a smartphone and maybe I never will, as long as they still sell regular/old cellphones. If I try to do something on a friend's smartphone I usually fail as I'm not used to the interface at all.

Advertising is one of several issues that keep me from using smartphones.
#159
#160
Works fine for me. SetPosition is definitely not broken.
SMF spam blocked by CleanTalk