Logo Platform
logo amplifiers simplified

HELP Request Starting a Quest or Quest Step on a Specific Turn

Reply
Copied to clipboard!
9 years ago
Feb 10, 2016, 9:04:28 PM
I imagine this is really easy to do, but actual coding is not something I'm an expert at and I need a little bit of help here.



I just need a simple example of how to trigger a quest and a quest step at specific turns. I just want to provide story updates at turn 20, turn 200, turn 300, etc.



Thank you so much for the help! <3
0Send private message
9 years ago
Feb 11, 2016, 3:42:35 PM
Hi there! Here is what you need. Paste this in the PREREQUISITES section of an xml quest:





$Property(ClassEmpire:CurrentTurn) ge (5 * $Property(ClassEmpire:GameSpeedMultiplier))





With this you can even decide to bind it to the gamespeed factor. In the example just above, your story update will be at turn 5 in normal speed (btw, this example has been copied from QuestDefinitions[FromInteract].xml)

Hope this will help.
0Send private message
9 years ago
Feb 11, 2016, 3:59:10 PM
Another example: here, you would decide to trigger this quest, at the beginning of the turn ("BeginTurn" tag), and if we count 1 or more than 1 city in the Broken Lords empire:





BeginTurn







../EmpireTypeMajor,AffinityBrokenLords

$Count(EmpireTypeMajor/ClassCity) ge 1





This prerequisite example is what we've been using for each 1st Chapter of each Faction quest. If you know how is made the simulation, you should be able to check, through a prerequisite, any property belonging to the Empire
0Send private message
9 years ago
Feb 11, 2016, 10:55:09 PM
Thanks so much Kaboomer. You're so awesome for helping out. <3
0Send private message
9 years ago
Feb 12, 2016, 2:19:16 PM
Where's my credit, I was the one to send him here! smiley: frown
0Send private message
9 years ago
Feb 12, 2016, 2:33:10 PM
Aww, thank you Frog. I didn't know you were involved. I'm extremely grateful. <3
0Send private message
9 years ago
Feb 12, 2016, 2:35:07 PM
Any time you see Kaboomer on the forums, it's me throwing sharp little things at him until he posts. smiley: stickouttongue



(it's almost true)
0Send private message
9 years ago
Feb 12, 2016, 3:28:44 PM
Aww, okay, I will absolutely remember that. Now I know who to suck up to for help. ;P <3
0Send private message
?

Click here to login

Reply
Comment