Question about Globalints (SOLVED)

Started by Scarfy, Sat 17/02/2007 15:20:41

Previous topic - Next topic

Scarfy

It doesn't say in the manual. Is it possible to just add to a global int +1 instead of overwriting it?
Cause i have one event that has to be done and another for a dialog to appear.
For example i need to have talked about this with the guy and i must actually know that i need it from him for the option to appear.
So is it possible when one of the things is true to add 1 to the global int and then the other 1 aswell so when both is true the dialog option appears?
SetGlobalInt(10,+1);? something like this?
Or is there already a better way how to do this wich i haven't figured out yet?

Akatosh

If I understand your question right and you just want to add 1 to the GlobalInt 10, you should try...

SetGlobalInt(10, GetGlobalInt(10)+1);

Scarfy

Aaahh thats what i wanted yes =D thank you very much. Isn't something one will find in the manual   ;D
Just what i needed thanks

Ashen

It is, however, in the BFAQ, which you should also have read.

I know what you're thinking ... Don't think that.

Scarfy

Quote from: Ashen on Sat 17/02/2007 15:32:23
It is, however, in the BFAQ, which you should also have read.



Hmm didn't find a link to the americangirlscouts on http://www.adventuregamestudio.co.uk/.. is it linked there?

Akatosh

You know, that sticky thread is named "<<(([[|| * READ FIRST *BEFORE* POSTING!!! (updated 6 Oct 2006) * ||]]))>>" for a reason...

Scarfy

Well i did read it you can't give me that. It said "read the manual" thats what i do all the time. yeah i guess i skipped details when it was going on about posting things into a sticky post if you think its common enough and exactly missed that link.  Its human nature to read the important seeming stuff and finally get on workin on the actuall game.

I'm not someone who just posts around without having read and tried anything.. i'm meaby new here but i don't like thise whole you're an idiot you didn't read the fineprint aditude. Don't care if i get banned now for bad conduct or anything just had to write that down for once.

Akatosh

Quote from: TerranRich on Mon 31/05/2004 05:02:38

9. AGS WIKI [/size]
Topics covered: Too many to list. A growing, online encyclopedia of all things AGS.


That is "fine print"? ;)

Also... calm down. Nobody will ban you for "bad conduct". And

/EDIT: and... what? i think i need more sleep...

Scarfy

Oh.. no this link i didn't see cause i was looking through the list quickly and first few where all sources i already knew off.. so i guess i missed the 9th..

with fine print i ment the link to it in the top part.
Quote
Or, if you know the answer, add it directly to the Wiki BFAQ.

I'm sorry. I've just been up way to long the past few days trieng to get that game working. And most of the time i asked something i got this guilt trip you didn't try/ didn't read  don't even ask if you have a problem kinda answer back.
Didn't mean to rant on like that on you.

Ashen

#9
Alright everyone CALM DOWN, please. Particulalry Akatosh.

Scarfy, The Wiki and the BFAQ aren't linked from the main site - in fact the Resources page is in dire need of an update, with missing resources and outsated links.

I'd hardly call large purple letters at the top of a post called READ BEFORE POSTING 'lost in fine print', I don't see what your problem is there.
No-one's trying to 'guilt trip' you, and this actually seems to be the first 'Read the Manual/BFAQ' response you've got, it's just a case of the more information you put into a post, the more likelyhood there is of someone being able to help you quickly.

(EDITED, because you haven't been posting the obvious sort of questions, by and large. Not sure why I had the impression you were, and sorry about that.)
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk