Skip to content

Commit

Permalink
updated read with new nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwittber committed Jul 19, 2015
1 parent a7d0223 commit 9246177
Showing 1 changed file with 35 additions and 15 deletions.
50 changes: 35 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,63 @@ Behaviour and Decision Library for Unity

# Example syntax
Root {

Jump JustLikeAFunction
Once {
BB set time 0.5
}
SubTree JustLikeAFunction {
Sequence {
Log "1"
Log "2"
}
}
MutatingSelector {
WhileBoth BADTester.CheckSomeCondition {
While BADTester.CheckSomeCondition {
Sequence {
UntilSuccess {
! BadTester.DoSomeLongTask
}
Chance 0.5 {
Log "Booya."
}
Chance 0.5 {
Sequence {
BreakPoint
Jump JUMPTOME
}
}
}
}

Sequence {
Sleep time, 0.5
? BADTester.CheckSomeCondition
! BADTester.DoSomeLongTask
RandomSelector {
Sleep time, 0
Label JUMPTOME {
Sequence {
Sleep time, 0.5
? BADTester.CheckSomeCondition
Cooldown 3 {
Invert {
UntilFailure {
! BADTester.DoSomeLongTask
! BADTester.DoSomeLongTask
RandomSelector {
Sleep time, 0
? BADTester.CheckSomeCondition
Cooldown 3 {
Invert {
UntilFailure {
! BADTester.DoSomeLongTask
}
}
}
}
}
WaitFor BADTester.CheckSomeCondition {
Loop 3 {
! BADTester.DoSomeLongTask
WaitFor BADTester.CheckSomeCondition {
Loop 3 {
! BADTester.DoSomeLongTask
}
}
}
}
}
}




0 comments on commit 9246177

Please sign in to comment.