Quote from: Khris on Fri 31/08/2012 18:13:12B < 1 && B > 3 will never be true.Code: ags bool cond = (A == 3 && B < 1 && B > 3); if (cond && C == 4) ...
Use (B < 1 || B > 3) instead.
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 MenuQuote from: Khris on Fri 31/08/2012 18:13:12B < 1 && B > 3 will never be true.Code: ags bool cond = (A == 3 && B < 1 && B > 3); if (cond && C == 4) ...
Quote from: monkey_05_06 on Sun 22/07/2012 07:46:34Actually I meant that some properties cannot be set directly (like Character.NormalView). I could call Character.ChangeView instead to set the value. Now I just ignore such properties.
Haven't checked it out yet, but I'm a bit confused by what you mean here... Just FYI, any readonly members of a struct cannot be modified in AGS. You'd have to make changes to the engine and/or the built-in script headers to change readonly properties (and every non-writable property of the built-in structures is readonly). If you meant instead that you wanted to provide readonly attributes or writeprotected members for your module's exposed script structure then that would make sense...
Quote
Edit: I was just looking over the code, and bloody hell cat, I have to commend you. Aside from Khris' code snippets he posts all the time, your code is one of the very few examples I can think of where I have seen another programmer's code actually maintaining consistent formatting (aside from cases of course where the IDE goes total dictator mode, like MSVC#).
Quote
One thing you might consider doing is adding a macro to your module. Something like:
...
Quote
Other than that I'd say it looks like you're off to a good start with this.
@1
ego: I don't want to have this option marked as read.
this.SetNotChosen(1);
return
if (info.DialogToRender.IsChosen(i)) ds.DrawingColor = 5;
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.253 seconds with 21 queries.