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 - Crimson Wizard

#13341
By the way, Victor6, you forgot to pickup your golden trophy here:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=39789.msg525194#msg525194
;D


Good thing I did not won, I can participate in the next one :)
#13342
Quote from: Monsieur OUXX on Fri 09/07/2010 11:03:28
temporary variable : = complex expression
array[temporary variable] : =   ...

Pascal coder detected  ;D
#13343
I have a proposal to make a categorized list somwhere, like

Scripting Modules - the ones that give you more scripting opportunities (e.g, Stack, StringPlus, Calin's Utility)
Feature Modules - the ones that add some complete feature already usable in game (Flashlight, Credits, High Scores module, etc)
Engine Modules - ones that act as a base for certain game genre
Graphic Modules - 3d, Smooth Scrolling, etc

and so on.
#13344
Can it be that prof plum is not initially invisible?
#13345
Change it when room loads and change back when character leaves the room?
#13346
Will you update this over time with new backgrounds? :)
#13347
Remember: if you want more than one command under if/else, put brackets!

Code: ags

 if (player.View == 4 )
 {
    player.AddInventory (iDisguiseX);
    player.LoseInventory (iRemove);
 }
 else
 {
    player.AddInventory (iDisguiseX);
    player.LoseInventory (iDisguise);
 }




Also, please, when you post a code here, put it inside [ code ] [ /code ] tags (without inner spaces), it will be easier to read
#13348
Quote from: Khris on Thu 08/07/2010 18:51:18
I didn't test this and the error seems unrelated, but doesn't an array declaration require a constant?
What happens if you try this using a dynamic array?
It isn't array declaration. It is getting array's element by index.

There's no error if a non-static struct member is used.
I guess it is parsing mistake.
#13349
Example code:

Code: ags

struct MyStruct
{
  import static int func();
};

function SomeOtherFunc()
{
   int arr[100];
   int var = arr[MyStruct.func()];    // <--- line X
}


Compiler stops with error: " Error (line X): parse error after '[' ".


Possible workaround:
Code: ags

   int dummy = MyStruct.func();
   int var = arr[dummy];

#13350
You must insert single 'space' character before each script command that does not belong to the list of dialog-specific commands.
In other words:

Code: ags

@S  // Dialog startup entry point
Gustav: He waits, growing paler and paler.
return
@1
 player.Walk(334, 55, eBlock); // <--- notice space at the start of line
Gustav: Oh, thankyou sir! Thankyou! truely I... I... oh- F-farewell!
stop


Excution timing will be corresponding to command position in script, i.e. in this example player will walk to 334,55 and Gustav will say something only after.
#13352
General Discussion / Re: StarCraft anyone?
Wed 07/07/2010 17:45:42
SC2 downloads a huge patch today, about 550 MB. Looks like second phase of Beta starts soon.
Too bad I have no time for a regular play now.
#13353
Having fun, are ye? Oh well....

Quote from: Monsieur OUXXCrimson Wizard = Gordon Freeman!
also pictured you with a beard. the power of profile pictures!
Heh. I look more like Gordon Freeman when I grow my beard and moustach for a month or so  ;D

At least I don't look like a gi... uh-oh, can't believe I nearly said that.
#13354
If you put a function inside #ifdef --- #endif block which technically makes her disabled, code-wise, editor still "thinks" it's active:
1) Typing its name will make a tip appear showing its full name and parameters.
2) Right clicking on the typed function call and selecting "Goto Definition" will make editor go to disabled function's body.
3) If the function was used as an event handler and is still typed into object's properties pane, double clicking on its name there makes editor go to function definition.

If you make second function with same name, and make it active, "go to definition" still goes to previous one.
#13355
Simple: if you have an event handler function name assigned to the corresponding object's (gui, etc) property, but there's no real function (e.g. you deleted it), there will be no error or warning shown neigher during compilation or during game run (even when you interact with an object).
#13356
Well, why the heck not.  :)
I do not photograph myself often, so I decided I'll use this opportunity to post my most recent photo here for you to behold an evil (and unshaved) visage of a guy hiding beyond Crimson Wizard's personality... or vice-versa.








I had to cut a piece of image with me holding tablet with my prison number on it actually that's for the pass-paper on my new job did I mention I work in the uber secret science institute?.


#13357
Voting still going?

If yes, I vote for SookieSock's sprite, for it is not only damn cute, but also quite functional as it is.
#13358
Quote from: Radiant on Mon 05/07/2010 19:56:24
Quote from: Mati256 on Sun 04/07/2010 03:59:26
In Broken Sword, when you have to get out of the Hotel with the pergamin, but the gangsters outside will kill you if you do it. The solution was pretty logic, but after you have being killed.

Oh, there's worse examples, like the bobby pin in the meatloaf in Larry 2. You need the pin, and the only way to discover it's there is by eating the loaf, which kills you. And if you take the pin out, you get a remark like "you wonder if anyone was stupid enough to eat that"...
This reminds me Laura Bow 2 and a chest full of flesh-eating bugs. You had to put meat loaf (IIRC) there, but I don't see how you could guess that without first opening it and dying, then reloading.
#13359
General Discussion / Re: What are you reading?
Mon 05/07/2010 21:41:40
I decided to "remember my younger days" and re-read Jack London's stories, simply without any certain reason.
Also reading Lovecraft a little bit, for game-making inspiration mainly.
Also a book on C# ;)
#13360
Quote from: snoopy on Mon 05/07/2010 16:56:40
Wow surprised this topic hasn't been locked after this long

Now it WILL be locked, because of you :)

(watch for Darth aproaching >>>  :o)
SMF spam blocked by CleanTalk