Calls

AuthorTopic: Calls
Canned
Member # 8014
Profile #0
I am having trouble putting in a call that was listed in the Appendix, I have tried to place it in my scenario, but it isn't working.

short get_attitude(short which_char) - Returns the attitude of the character.
3 - friendly to party
4 - neutral
10 - hostile A
11 - hostile B
Oh, and is this the right call to change the attitude of a creature?

I'm sure this is a dumb question but I can't figure it out, and I don't recall any scenarios that use it.

--------------------
Don't judge a sentence until you know all the words.
Muffins n' Hell|Muffins n' Hell: The Muffins Are Back Again
Muffins n' Hell: The End is Near
Not in your shed -We are sort of done. Helpful criticism is welcome.
Everyone, just call me Iffy. Please.

Be grateful you have your unsellabe trowels -Goldenking

Just so you know, I am working on Muffins n' Hell the scenario.
Posts: 1799 | Registered: Sunday, February 4 2007 08:00
Lifecrafter
Member # 6193
Profile Homepage #1
No, it isn't. set_attitude(char,value); is the appropriate call. The call you have will tell you what attitude the character in question is. (Note the description of this call: "Returns the attitude of the character." If it says "return," then there's a good chance that you use this call to get information, rather than to actually do something. Just think about the names of the two calls: set_attitude, get_attitude. It should be obvious which call is used for what, and this carries over to many other calls as well.)

I'll also add that if you actually pasted that entire block of code into your scenario, it will not work. The actual call is 'get_attitude(char)' (with char replaced by the number of the character whose attitude you want.) The rest of that stuff is information on what the call does, you don't actually put it in the scenario.

--------------------
"NOW PASS ME MY BOOTS. I HAVE AN APPOINTMENT WITH A FACE." -Nikki

Frostbite: Get It While It's...... Hot?
Posts: 900 | Registered: Monday, August 8 2005 07:00