Rowan Interactions v2
Hopefully a nicer way to deal with getting and setting data in Rowan.
by Sam Fereday
JavaScript
var questData = [{
"name": "Unlock the door",
"type": "questData",
"regionId": "1a",
"id": "1",
"chainIndex": 0,
"questGiver": "Barret",
"fulfilled": false,
"subTasks": [{
"name": "Talk to Wad and get the key.",
"fulfilled": false,
"optional": false,
"order": 0,
"id": "s0"
}, {
"name": "Walk to the door to unlock it with the key.",
"fulfilled": false,
"optional": false,
"order": 1,
"id": "s1"
}],
"onFulfilled": {
"action": "changeProperty",
"of": "outside",
"property": "allowTransition",
"to": "true"
}
}]
var actionData = [{
"id": "shop1a",
"triggerEntity": "Tifa",
"actors": ["Player", "Tifa"],
"stringBank": [{
"owner": "Tifa",
"action": "talk",
"sentence": "Howdy! What do you need handsome?"
}, {
"owner": "Tifa",
"action": "openStore",
"storeId": "1"
}, {
"action": "endEvent"
}]
}, {
"id": "7a",
"triggerEntity": "Cloud",
"actors": ["Player", "Cloud"],
"stringBank": [{
"action": "talk",
"owner": "Player",
"sentence": "Hello, how are you today?"
}, {
"action": "talk",
"owner": "Cloud",
"sentence": "I'm alright thanks. What are you doing in my house?"
}, {
"action": "talk",
"owner": "Player",
"sentence": "Not entirely sure, but could I borrow your bathroom?"
}, {
"action": "talk",
"owner": "Player",
"sentence": "Actually on second thoughts, I'll just leave..."
}, {
"action": "endEvent"
}]
}, {
"id": "777b",
"triggerEntity": "Barret",
"actors": ["Player", "Barret"],
"stringBank": [{
"action": "talk",
...