Jump to content

Calls


Xaiya

Recommended Posts

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.

 

Code:
 short get_attitude(short which_char) - Returns the attitude of the character.3 - friendly to party4 - neutral10 - hostile A11 - 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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...