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

Topics - mchammer

#1
General Discussion / Discuss about drugs
Sun 18/11/2007 15:56:04

HERE
is the article.

So what you think of it? They say that the main reason of the ban are stupid turists who go to Holland thinking: "Jeah! A LEGAL DRUG! I heard it's even more cool than cannabis."

It's sad if that really was the reason of the ban, because most of the turists aren't such amateurs and realize 'the point' of the shrooms and other psychedelics.

Of course the new law won't prevent anyone buying or gathering shrooms and maybe its even good thing that people need now get some info about shrooms before trying them, but still... smart shops are part of
dutch culture and you cant find such culture in any other place.
I feel guite lucky myself because i spent a week in holland just before they decided about the new law.

I hope this topic wont turn into "U USE DRUGS!!! I HOPE U DIE PAINFULLY!!!" conversation. Those posts are pointless and i would claim that i know the dangers of psycedelics much better than people who write such posts. Of course matter-of-fact critic is always welcome.

Ps. Psychedelics are ILLEGAL and this topic is ment to discuss about them, not to attract using them.
#2
Completed Game Announcements / My 40 bullets
Wed 03/10/2007 05:10:01
At last i actually finished one of my projects  :)

'My 40 bullets' is a war game with these features:
*12 more and more challenging levels.
*4 different kind of enemies.
*5 different weapons.
*A story witch you wont really need.
*These days very popular "Im against USA" atmosphere.



Here is the download link.

Edit:
Changes in version 1.1:
*Added stats window to gamemenu.
*Added ablility to hire snipers.
*Added two new levels.
*Improved gamemenu backgrounds.
*Changed quitgame key to Esc.
#3
Im trying to write a function witch speeds up the whole game at least over 20xNormal game speed. The use of the function would be that when player character sleeps, the game world keeps going normaly (but very fast) at background.
  I have tried simple "SetGameSpeed(1000)" when player goes sleeping and first it seemed to be working fine, but then game started crashing (whitout any errormessage) when this speed is used.
And now it sometimes work and sometimes crashes after about 10secs, even if i dont change anything. Debug shows that fps is somewhere around 400 when it works and around 200 when it crashes.

Can this kind of function be done whit SetGameSpeed() properly? Or is there any other way to do it?

#4
Im editing strazer's character control module for my own purposes, and I'm trying to add new function to module. But i have problems using optional parameters.

Im importing function in module's header like this:
Code: ags

struct CharacterControl {
	import static function CreateChain(int chainid, String commandstring);
	import static function AppendChain(int chainid, String commandstring);
	import static function GetChain(Character *thechar);
	import static function GetChainPosition(Character *thechar);
	import static function GetRoom(Character *thechar);
	import static bool IsExecuting(Character *thechar);
	import static bool IsPaused(Character *thechar);
	import static function PauseExecuting(Character *thechar);
	import static function ResumeExecuting(Character *thechar);
	import static function StartExecuting(Character *thechar, int chainid, int chainposition=1);
	import static function StopExecuting(Character *thechar);
        import static function SetNewChain(short mainchainid,short subchainid, int subchainposition=1, int WhoExecutes =-1);  
};

My function is the last one (SetNewChain)


And at module script I'm using it like this:
Code: ags

static function CharacterControl::SetNewChain(short mainchainid, short subchainid, int subchainposition, int WhoExecutes) {
CharacterControl_NewChain(null, String.Format("%d", subchainid));
CharacterControl.CreateChain(mainchainid, NewChain);
if (WhoExecutes != -1) CharacterControl.StartExecuting(character[WhoExecutes], mainchainid, subchainposition);
  }


The problem is that  when i use function whitout setting value to optional parameter 'WhoExecutes', if-command at the last line of script is executed even WhoExecutes value should be at -1?
#5
Hi  :)

Im trying to change player's activeinventory and the problem is that i have the new activeinventory value in a integer variable. It seems to me that activeinventory function accepts only inventory items' script names and using script names would mean loads of extra scripting for me.
  So is there any command that changes a number value to script name, like ID property backwards?
Or is there any other way to do it?
#6
Is is possible to set new value to inventory properties by scripting?
I didnt find any commands like SetInvProperty.
#7
There was couple old topics about this problem but there wasnt clear solutions.

I use invisible npc's inventory as a secondary inventory to the player, but when i add items to the secondary inventory, sometimes items are invisible even if i use update inventory. In this topic someone said that multiply inventories dont work in earlier versions of AGS, but i use version 2.72.

Code where I add item to inventory:
Code: ags
if (player.activeinv == 5) {
player.LoseInventory(iHamburger);
cRefrigerator3.AddInventory(iHamburger);
}  


if (player.activeinv == 10) {
player.LoseInventory(iGroundmeat);
cRefrigerator3.AddInventory(iGroundmeat);
} 

(its in object's "use inventory on object" script)


Code where you "open the fridge" and inventory is displayed:
Code: ags

object[1].SetView(5);
object[1].Animate(0, 5, eOnce, eNoBlock, eForwards);
Wait(10);
gRefrigerator2.Visible = true;
UpdateInventory();
SetGlobalInt(eGRefrigeratorOpenClosed, 1);



and code when you take items from secondary inventory:
Code: ags

if (GetGlobalInt(eGRefrigeratorOpenClosed) == 1) {
 cRefrigerator3.LoseInventory(iHamburger);
 player.AddInventory(iHamburger);
 UpdateInventory();
 }  

(its in inventory object's "other click on inventory item" script.)


thnx for any help.


EDIT: Forgot to say that items are invisible only sometimes, usually everything works fine.
#8
I have a lot of global ints witch get a random value in game_start section. When I use RestartGame() function, those globals dont get new random values. Id like to have a button to my game witch would completely restart game and give new values to the globals.

Is that possible?
#9
I dont know if its possible, but can you start music from a certain spot of a song?

I mean that when i stop playing a song, can i save to a global int a value, witch would tell how many seconds i have played the song and then continue playing the song from the same spot later?  ???
#11
I just cant find a way to stop room background animation. I mean that is there for example a certain value for animation delay that would stop repeating frames
#12
Not sure if this is a beginners problem but:
1. I change a NPC to different room.
2. I change the player to the same room.
3. I set the NPC to walk different location.

character[RASTA2].ChangeRoom(4, 199, 24);
character[HARRY].ChangeRoom(4, 199, 28);  //HARRY is the player char.
character[RASTA2].Walk(48, 72,eNoBlock,eWalkableAreas);

When I play and the game runs this script, it crashes and a message something like
"Error: Cant move char. Its not in current room." pops up.
#13
AGS Games in Production / Harry The Hippie
Sat 08/04/2006 14:18:24
Harry the Hippie is a life simulator game. That means the idea of the game is to stay alive.
So you must try to get a job, eat, exercise,stay out of troubles,have fun...

Harry is "a hiphop guy" and thats why game's music is mostly rap, funk, reggae and soul: Jurassic 5, James Brown, Mighty Diamonds and that kind of music.(I hope i dont brake copyright things a lot... At least the game is free and i have bought all music i have in the game.)

When you play, Harry gets experience and learns new things like cooking, stealing, b-boying and graffiti arts.
The game uses Strazer's character control module which makes realistic NPCs possible. They will sleep, go to work and have normal day routines.

The demo is quite big (21mb) because of the music.

Graphics 10%
Music 10%
Scripting 10%





-09.04.06: -There is a new demo to download.

-10.04.06: -English isnt my original language so if you find grammatical mistakes or if you think that some sentences could be said in more realistic way, you can send PM.

-24.08.06: -A New demo whit many new things to do.

-26.08.06: -I started to remake the graphics.

-01.09.07: -Back in the project again..  Maybe new update in few days/Months

#14
Is there anykind of ways to add time to your game?
For example some function which counts seconds...
#15
I have problem with setting the amount of inventory object.

I have tried to use these scripts:

player.inv[6] = player.inv[5];  (this was ment to set object[6]'s amount equal to
object [5]'s amount)

player.inv[5] = 0; (I try to set inv.object[5] amount to 0)
SMF spam blocked by CleanTalk