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

#1
nice game, did you use a special plugin for the agi-look?
#2
Beginners' Technical Questions / Agi-style
Sun 04/09/2011 18:39:59
how can I do the graphics look like from an old c64 game? There is already a plugin http://www.adventuregamestudio.co.uk/yabb/index.php?topic=19601.0 but it doesn't work properly. I would be grateful if someone could help me, I need to change the modes optionally, just drawing the graphics this way is not an option :)

thanks, fonda

EDIT:
it works!!
#3
why do you mix up katakana and hirigana in the title? what does it mean? ba pu no me su ta - ku e su to
#4
unfortunately I can`t download your game, your link seems to be dead and therefore I'm sad ;)
#5
You created the first ags-game, that I played completely through since years. Very nice done, well chosen colors, cute story, cool charakterdesign, I really enjoyed it.
#6
nice graphics, but the charakter walking speed is too lame in my opinion, though well done
#7
I just need a script for a randomly asked stuff the player has to answer to make progress, something like typing a four-digit number for opening a door. I want to protect some parts/rooms ;) the game will be free :D
#8
how to make a security query like in monkey island 2 for example?
#9
can`t unzip  a_raindog_story.exe  :(
#11
Quote from: amanta4ray on Fri 27/08/2010 15:24:57
I don't know if this is what you are looking for, but here goes....

In the room where you want the hotspot enabled go to where it says before room loads and add  

if (player.HasInventory(isomething)) &&  (player.HasInventory(isomething2)) && (player.HasInventory(isomething3)) {hotspot[2].Enabled=true;}
else {hotspot[2].Enabled=false;}

Just replace the inventory items to the ones you need and change the number of the hotspot to the one you are using.

The code above will tell the room that a certain hotspot will only be enabled if your player has all three items.

             Hope it helps

if I script it this way, the compiler rumbles at the &&'s, I'm using version 3.1.2
and if I define a bool or integer in globalscript, yes, I can use it in my rooms, but if I modify the values in room 1, there are no consequences in room 2. the values do not overreach the rooms.

#12
the problem is that I want the hotspot to be enabled just if all three items are at the same time in my inventory



back to the first case:
Code: ags

function room_Load()
{
if (player.HasInventory(iSpiegel) || objectpick){

    oSpiegel.Visible=false;
}
...


this is an excerpt from my script, if I defined "bool objectpick=false;" in globalscript, does the function_room above asking, if objectpick equals false ?
#13
ok I did it  :=
unfortunately I wrote it in the globalscript.ASC firstly

THANX :)
#14
//You can define global variables in the editor pane by the same name.
//Add a new variable, type "bool", name "objectpick", initial value "false".

could you give me an example, Im a very noob on scripting


//This line:
//
Code: ags
  if (player.HasInventory(iItem1) && player.HasInventory(iItem2) && player.HasInventory(iItem))

//is correct and everything inside the brackets after it will only be executed if the player indeed has got at least one of
//each of the three.

my intention was to enable a hotspot only if there are all three items activated in my inventory, probably there is an other possibility to achieve the desired  result

//Btw, you can change the names of all the game objects (hotspots, inventoryitems, characters, etc.) in their properties
//pane. iItem1, iItem2 and iItem aren't exactly practical names. Maybe you're confusing the names and according in-game
//item graphics?

I already did it, iItem1 etc are not the names I used in my game :)
#15
Quote from: Mr. Matti on Fri 27/08/2010 10:15:42
Use a variable like this:

Pseudo-
Code: ags

bool objectpick=false;

// picking up object in room 1

objectpick=true;

//in the room_load of room 2

if (objectpick) oObject.Visible=false;



Of course objectpick got to be a global variable, since both rooms use it.

I tried it and I got an Error-message: "undefined token objectpick"

bool objectpick=false; (globalscript)
objectpick=true; (added to the function where I do pick up the object)
if (objectpick) oObject.Visible=false; (room-load of the second room)

I assume, I have to define a function with "bool objectpick=false;" in globalscript, but I dont know how to handle with :(
#16
Quote from: Khris on Fri 27/08/2010 11:10:48
Regarding the second issue, where did you put that code and when do you want the hotspot's condition to be updated?

What reservations are you talking about? Please be as clear as possible about what you want, what does work and what doesn't work.

the second one is in the same room_load as the first one I extended with "else if" and the problem is, that sometimes the hotspot appears by having only two items, sometimes it works correctly, I suppose, it depends on the order of picking up the items, I dunno.
#17
hi dudes, my english isn't very good, but I will explain you my problem anyway.

I have 2 rooms.
In room 1 there is an object (oSomething), that I can pick up ( after picking up this object disappears and an inventoryitem (iSomething) appears in my inventory), trivial.
In room 2, there is a hotspot/object, that has to be invisible/disabled until I didn't pick up oSomething (in room 1) or I have iSomething in my inventory.

my attempt at a solution would be:

function room_Load() //room2 script
{
if (player.HasInventory(iSomething) && // oSomething in room 1 is still visible){

    oBjectInRoom2.Visible=false;
    }



an other problem I have is to make a hotspot enabled, if I have all three items in my inventory, but it works just with some reservations using this scripting:

if (player.HasInventory(iItem1) && player.HasInventory(iItem2) && player.HasInventory(iItem))
    {
    hHotspot.Enabled=true;
    }
   
      else
      {
      hHotspot.Enabled=false;
      }


thanks for reading and I would be glad about a helping answer
SMF spam blocked by CleanTalk