![]() |
CTP2 Bureau The Modding Knowledgebase |
|
Apolyton CTP2 forums Apolyton CTP2 archives Source Code Project SVN |
![]() |
Search the site: |
SLIC-Reference :
|
Arguments: | player1, player2, priority, response_type[, optional_parameters_see_source] | Type: | void |
Makes player 1 consider the response indicated by type with the given priority - optional parameters allow for adding of counter proposals or threats |
if counter: tone,num_types,first_type [,first_arg][,second_type [,second_arg]] if threat: [city] |
tested
working
// VOID ConsiderResponse(sender, // receiver, // priority, // response_type, RESPONSE_REJECT=1,RESPONSE_ACCEPT=2,RESPONSE_COUNTER=3,RESPONSE_THREATEN=4 // [counter_type|threat_type], // if counter: tone,num_types,first_type [,first_arg][,second_type [,second_arg]] // if threat: [city] // ); // SFN_ERROR Slic_ConsiderResponse::Call(SlicArgList *args) { if (args->Count() < 4) return SFN_ERROR_NUM_ARGS; sint32 argNum = 0; Response response; if (!ParseResponseSlicArgs(args, argNum, response)) SFN_ERROR_TYPE_ARGS; if (Diplomat::GetDiplomat(response.senderId).GetReceiverHasInitiative(response.receiverId)) Diplomat::GetDiplomat(response.receiverId). ConsiderResponse(response.senderId, response); else Diplomat::GetDiplomat(response.senderId). ConsiderResponse(response.receiverId, response); DPRINTF(k_DBG_SLIC, ("ConsiderResponse:sender %d, receiver %d, type %d\n", response.senderId,response.receiverId, response.type)); return SFN_ERROR_OK; } |
Using this form you may add your own observations concerning the above item, e.g. additional hints for usage, limitations, oddities etc. Please note this is not the place for asking questions or carrying out discussions about modding - please refer to the Apolyton CTP2 Modification Forum on that purpose.
*) Required fields
No user comments yet. |
![]() |
This site is currently maintained by: BureauBert (Webmaster) Maquiladora (Manager) Legal Notice: Legal Notice Statistics: 113407 unique users since 02.05.2004 (» Site Statistics) Hosted by: WebhostOne |