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

#1
Ok, this is problably a very dumb question.

My code is like this:
Code: ags

#sectionstart game_start  // DO NOT EDIT OR REMOVE THIS LINE
function game_start() {

struct Charas {
int str;
int dex;
int lvl;
};

Charas Stiletto;
Stiletto.str = 10;
Stiletto.dex = 8;
Stiletto.lvl = 1;

#sectionstart repeatedly_execute  // DO NOT EDIT OR REMOVE THIS LINE
function repeatedly_execute() {

int str;
int dex;
int lvl;

StrFormat(str, "d%", Stiletto.str);
SetLabelText(2, 5, str);



It return a "Stiletto - Undefined Token". What I'm doing wrong?





#2
Hello.

I want to display all messages in a gui or something like that, in the low part of screen. I also wanted to make all them "roll" like BG dialogs. There is anyway to do that?

thankx in advance.
#3
Heya. I was wondering if there is a way to make the same character graphic with several colors, like BG games, when you have the same sprite in diff characters with diff colors, without needing to color everyone by hand using wildcard colors, something like:
c.Ego.color(X,Y,Z,..); // you tell that the 3 wildcard colours are X,Y and Z

example:


#4
Heya ppl. Im having some troubles and I appreciate any light anyone can give me.

In my Inventory GUI I have 9 buttons. 3 of then are the "Examine, Use and Drop" buttons, pretty normal on AGS GUIs. The Other 6 are "Equip Slots", that works in this way (example):

Code: ags

if ((button=5) { 
if ((getglobalint(0) = 1))
Setbuttonpic(2,5,1,0); // remove the button pic
Addinv (1); // Add the item 1 back to inv
SetglobalInt(0,0);
wait(5);
}
else if ((getglobalint(0) = 0) &&  (player.activeinv =1))) { // I dont remember right now the active inv command, but this line says "if you have in active inv the item 1 and GlobalInt =0"
SetButtonPic(2,5,1,2); // Chance button to weapon
LoseInv (1); // Lose the item 1
SetGlobalInt(0,1);
wait(5);
}
}


The main problem is: You "equip" the weapon = OK
You "unequip" the weapon = OK
You try to equip it again, you have to click it a thousand times. I dont know why.

Anyone can help me?

[]'s


#5
Heya ppl. I just get my hands in this game. Looks promising. See for yourselves.

http://www.agathachristiegame.com/
#6
Code: ags

if (IsKeyPressed(65)&&(GetGlobalInt(25)>0)) {
 
 character[GetGlobalInt(25)].room=character[0].room
 character[GetGlobalInt(25)].x=character[0].x
 character[GetGlobalInt(25)].y=character[0].y
 SetGlobalInt(25,0);
 LoseInventory((GetGlobalInt(25)));
}


i guess im missing something here. Can anyone shed me a light?
#7
I didnt found in the manual and in the search. How I use them?
#8
General Discussion / Isometric builder
Mon 09/06/2003 02:43:10
Anyone know a good isometric map builder?
I'm planning using isometrics for some ags tests.
SMF spam blocked by CleanTalk