YesNoOk
avatar

Trigger and Controller alternatives (Read 1892 times)

Started by 2OS, January 28, 2017, 09:48:22 pm
Share this topic:

2OS

Trigger and Controller alternatives
#1  January 28, 2017, 09:48:22 pm
  • ****
  • 608 Wannabe
  • Ich schicke dich zur HOELLE!! STIRB DU FEIGLING!!
    • Egypt
    • deuceovspadez.webs.com/
[State VarRandom]
type=null
trigger1=var(0):=random

[State ParentVarRandom]
type=parentvarset
trigger1=ishelper
var(0)=random

[State VarRangeSet]
type=null
trigger1=var(time%60):=1

[State ParentVarRangeSet]
type=parentvarset
trigger1=ishelper
var(time%60)=1

[State P2Dist X]
type=null
trigger1=numenemy
trigger1=var(0):=(ceil(enemynear(ifelse(enemynear(0),stateno!=5150,0,enemynear,teammode=simul)),pos x-pos x)*facing))

[State P2Dist Y]
type=null
trigger1=numenemy
trigger1=var(0):=(ceil(enemynear(ifelse(enemynear(0),stateno!=5150,0,enemynear,teammode=simul)),pos y-pos y)))

[State ParentDist X]
type=null
trigger1=ishelper
trigger1=var(0):=ceil(parent,pos x-pos x)*facing

[State ParentDist Y]
type=null
trigger1=ishelper
trigger1=var(0):=ceil(parent,pos y-pos y)

[State RootDist X]
type=null
trigger1=ishelper
trigger1=var(0):=ceil(root,pos x-pos x)*facing

[State RootDist Y]
type=null
trigger1=ishelper
trigger1=var(0):=ceil(root,pos y-pos y)

[State HelperDist X]
type=null
trigger1=numhelper
trigger1=var(0):=ceil(helper,pos x-pos x)*facing

[State HelperDist Y]
type=null
trigger1=numhelper
trigger1=var(0):=ceil(helper,pos y-pos y)

[State PartnerDist X]
type=null
trigger1=numpartner
trigger1=var(0):=ceil(partner,pos x-pos x)*facing

[State PartnerDist Y]
type=null
trigger1=numpartner
trigger1=var(0):=ceil(partner,pos y-pos y)


note: random ranges from 0-1000. multiply to increase or divide to decrease.

obvious note: varrangeset isn't a precise alternative but a scripted one that acts similarly enough.

these alternatives are for the sake of learning and more so for the sake of flexibility as many of these triggers don't actually exist.