Sonck Posted June 17, 2008 Share Posted June 17, 2008 hi,i want Savlian Matius to go outside Kvatch when the siege is done.how do i do this? make him travel to a x marker outside and set the conditions:Target -|- Function Name -|- Function Info --|- Comp -|- Value -|- no ------|- getStage --------|- Quest: 'MS49' -|- == ----|--- 100 --|- AND so basically i tell him to travel to a spot when the quest (MS49 = The Battle for Castle Kvatch) is done (100%)can someone tell me this is correct cuzz this is the first time i use this.i dont know what the "target => no" and the "and" are forthanks in advance Link to comment Share on other sites More sharing options...
Vagrant0 Posted June 17, 2008 Share Posted June 17, 2008 hi,i want Savlian Matius to go outside Kvatch when the siege is done.how do i do this? make him travel to a x marker outside and set the conditions:Target -|- Function Name -|- Function Info --|- Comp -|- Value -|- no ------|- getStage --------|- Quest: 'MS49' -|- == ----|--- 100 --|- AND so basically i tell him to travel to a spot when the quest (MS49 = The Battle for Castle Kvatch) is done (100%)can someone tell me this is correct cuzz this is the first time i use this.i dont know what the "target => no" and the "and" are forthanks in advanceThat should work. Run on target conditions are used rarely in packaging, and make the package only run if the target specified in the package (usually the player) has that status. Naturally, not all the functions work with this. Run on target is used more often in dialogue, when you want one NPC to say something specific based on something about who they're talking to. Such as a check of the player's gold, or to ensure that the NPC they're chatting with is a member of the same faction before talking about faction specific stuff. There are many other uses, but these are the most common. The AND and OR statements at the end can be a bit tricky. Basically, it's saying that both that condition, and the one below it will be checked. If there are 3 conditions, all AND, all 3 will be checked. If none of them are valid, the package won't run. OR works similarly, but says that if that condition isn't valid, the one below it could be used instead. You can mix AND and OR statements, but in most cases, you should try to keep it to a minimum since it does require a bit of understanding. For most packaging, you can just use AND without any problems. Using OR just allows for a bit more flexibility. Link to comment Share on other sites More sharing options...
nosisab Posted June 17, 2008 Share Posted June 17, 2008 hi,i want Savlian Matius to go outside Kvatch when the siege is done.how do i do this? make him travel to a x marker outside and set the conditions:Target -|- Function Name -|- Function Info --|- Comp -|- Value -|- no ------|- getStage --------|- Quest: 'MS49' -|- == ----|--- 100 --|- AND so basically i tell him to travel to a spot when the quest (MS49 = The Battle for Castle Kvatch) is done (100%)can someone tell me this is correct cuzz this is the first time i use this.i dont know what the "target => no" and the "and" are forthanks in advanceThat should work. Run on target conditions are used rarely in packaging, and make the package only run if the target specified in the package (usually the player) has that status. Naturally, not all the functions work with this. Run on target is used more often in dialogue, when you want one NPC to say something specific based on something about who they're talking to. Such as a check of the player's gold, or to ensure that the NPC they're chatting with is a member of the same faction before talking about faction specific stuff. There are many other uses, but these are the most common. The AND and OR statements at the end can be a bit tricky. Basically, it's saying that both that condition, and the one below it will be checked. If there are 3 conditions, all AND, all 3 will be checked. If none of them are valid, the package won't run. OR works similarly, but says that if that condition isn't valid, the one below it could be used instead. You can mix AND and OR statements, but in most cases, you should try to keep it to a minimum since it does require a bit of understanding. For most packaging, you can just use AND without any problems. Using OR just allows for a bit more flexibility. About the conditions, this need a bit more clarification. And will check the conditions, and if one is not satisfied the test fails.Or test and pass if at least one is true. Better saying: AND only pass if all conditions are true. OR fails only if all conditions are false. PS edit: CS have a tricky behavior. Most of languages treat the "AND" operators first, but in CS this is done for the "OR"To be in the sure side aways use parentesis in scripting CS. Using in the boxes, mixing then can lead to strange behaviors. Since I never used OR in the boxes better I do verifying the way it works there, ASAP. Edit 2: confirmed in the wiki documentation: of use in the boxes.the condition items ( A AND B OR C AND D ) are evaluated as ( A AND ( B OR C ) AND D ) and not ( ( A AND B ) OR ( C AND D ) ). Link to comment Share on other sites More sharing options...
Sonck Posted June 18, 2008 Author Share Posted June 18, 2008 thanks for the info Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.