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

#61

I am experimenting with alternating the position of class portraits LEFT to RIGHT as different characters speak. I just thought it would be useful if you could change the position of the dialog pictures via the dialog script.

Just a suggestion.

#62
Math.max
Math.min

;D ;D
#63
Thanks. But sadly, what I need to assign an unique set of values to each individual room and pass them to a global function. Its for drawing stars in the sky at night time using rawdraw functions.
I suppose it coulda been done by passing the array values individually using a while loop.

However, I have done this using an special string property instead which is decoded and  the relevant numbers are extracted. This saves me the bother of having to add script per room.

Thanks anyway.
#64
That doesn't solve the problem as you can't pass structs to functions either. And AGS doesn't even allow this:
int foo(IntArray *i)
#65
Is there not a way to pass arrays to functions in AGS? It'd be cool to do it a similar way to C++.

i.e. int foo(int *array)
#66
Hi,

Another beginner question from an experienced programmer. Oh the shame!

I can't find the option to disable character blocking. i.e. when a character automatically walks around another character.
I would like to disable this feature for characters who in my game are lying dead on the floor as they can sometimes block access to exits.

How do I do this?
#67
I've also just noticed that you can't use '_' in script names for dialogs and inventory, yet you can with characters ???

Please can '_''s be allowed for script names next time. I could certainly use them to have clearer script_names
#68

I had a VIEW name which was the same as a character script name. AGS wouldn't allow these two script names to match. This is odd coz surely these names shouldn't really be a match as the character script name is prefixed with a 'c'.
#70
Ok, I admit it. Its a stats screen. You're too clever for me. ;D
#71
Its a GUI with 13 numbers each with two associated buttons to increase and decrease the numbers. Plus a few labels to summarise the numbers.
I'm not at liberty to say much right now as I'm still not certain if this project will continue through to the end.

Rui's suggestion seems to work though.
#72

Oh dear!
I have a large GUI that will require just under 50 Controls vastly surpassing your limit of 30. Why the tight limit?
#73
Silly me.

Thanx
#74

Hi,

I tested the game.following_room_timer by setting it to 500.
I found that it only does what it says it does when the player changes room by script. It doesn't work when the player changes room via the interaction editor. Is this intentional?
#75
I have the following code in the global script.
 
  lblHealth.Text = String.AsInt(heroHP);
  lblMonsterHealth.Text = String.AsInt(enemyHP);

Unfortunately, I get the following compilation error:

In: 'Global script'

Error (line 14): must have an instance of the struct to access a non-static member

How do I fix this? I cannot find any documentation about this.
#76

Ok technically not a method but you know wot I mean. The ability to overload functions in AGS will be useful.

I have just written min and max maths functions (shame AGS don't seem to support these) which I hoped to overload for different data types.  :(

Thanks
#77
Thanx. Thats all I need to know. ;)
#78
Hi,

I guess this classifys as a beginner question despite my previous experience. Ok, its been a long time and AGS has changed a lot.

Anyway, I have declared a struct in the script header along with an instance of it which I can access and modify perfectly well within the global script.
However, I can't seem to access it in room scripts. Although the compiler don't crash attempting to access it, the values of the struct are no longer instantiated.

For example:

mystruct.value = 64;

In the global script, it shows at 64 but in the room scripts, it shows as 0. Whats going on?
#79
Aha. Thanx for explaining wot the error actually means. Now I have fixed it. It was an illegal space character in the script name of an inventory object.

Thanx
#80
Line 70 of some sort of 'internal script' apparently. Nothin wrong with MY scripts.

No interactions were added. The object has been deleted and now I can't save any room at all
SMF spam blocked by CleanTalk