New node : exit current subtree

Tralalo
Script
Script
Posts: 20

New node : exit current subtree

Post#1 » 26 Jan 2017, 00:15

I'm pretty sure this has been already mentioned but I can't find it anywhere..
Let's say you want to write a "stay alive" subtree, this would let you write (consider each line as a branch) :
- if nobody attacks me then consider this subtree as "false"
- if there is no short range shotgun OR no medium range MG OR no long range sniper then consider this subtree as "false"
- run away
instead of :
- if someone attacks me AND if there is 1 short range shotgun AND if there is 1 medium range MG AND if there is 1 long range sniper then run away

It wouldn't add any new possiblity, it would just make trees easier to read (and most importantly to write) I think.. Thoughts ?

pier4r
Skynet
Skynet
Posts: 3390

Re: New node : exit current subtree

Post#2 » 26 Jan 2017, 00:33

http://www.reddit.com/r/Gladiabots/wiki/players/pier4r_nvidia_shield_k1 -> Gladiabots CHAT, stats, insights and more ;

sethcohn
Automaton
Automaton
Posts: 122

Re: New node : exit current subtree

Post#3 » 26 Jan 2017, 01:31

See the demo I just posted in there.

Tralalo
Script
Script
Posts: 20

Re: New node : exit current subtree

Post#4 » 26 Jan 2017, 08:53

Okay I didn't see this topic :oops:
I feel like this is a bit more complex than what I suggested, it lets you give goals instead of just reacting to the current situation at the price of losing some ticks (tagging and untagging)

pier4r
Skynet
Skynet
Posts: 3390

Re: New node : exit current subtree

Post#5 » 26 Jan 2017, 09:15

yes surely tagging is a workaround, but it means it is not extra urgent since, well, everyone (at the same xp level) has the same commands.

I would still prefer self filters instead of making 8 nodes about health and shield.
http://www.reddit.com/r/Gladiabots/wiki/players/pier4r_nvidia_shield_k1 -> Gladiabots CHAT, stats, insights and more ;

User avatar
Echo Blue
Script
Script
Posts: 27

Re: New node : exit current subtree

Post#6 » 26 Jan 2017, 14:16

pier4r wrote:...I would still prefer self filters instead of making 8 nodes about health and shield.

Yes please. Perhaps it could be covered when target refractoring gets done.

Return to “Feature Requests”

Who is online

Users browsing this forum: No registered users and 1 guest