YesNoOk
avatar

Tag Code Help (Read 842 times)

Started by BurningSoul, October 03, 2021, 02:29:17 pm
Share this topic:
Tag Code Help
#1  October 03, 2021, 02:29:17 pm
  • ****
  • Pixels are atom's of resolution,Low-res or Hi-res
    • Turkey
    • metekervan26@gmail.com
Code:
value=playerid(floor(sysfvar(0))),var(53+id-playerid(floor(sysfvar(0))),sysvar(0))
this above is basically in my landing state of tag system it sets up assist,
I have a helper lifebar,inside of that helper I have this below,idea is simple 190193 is run to  state,var(49) sets main player
Code:
 [state 0]
    type=varset
    trigger1=(playerid(var(49)),stateno=190193) && (playerid(var(49)),sysvar(1)>0)
    var(53-sysvar(0)+var(49))=playerid(var(49)),sysvar(1)
Inside that helper I have changestate to an even different state,Inside it I have this below
Code:
[state 0] ;[.20]
    type=varset
    trigger1=numpartner
    var(53)=ifelse((root,sysvar(0)>159), (root,sysvar(0)), 1000)
;sys::tag_assist_stno-2
[state 0] ;[.21]
    type=varset
    trigger1=numpartner && playeridexist(root,id+1)
    var(54)=ifelse((playerid(root,id+1),sysvar(0)>159), (playerid(root,id+1),sysvar(0)), 1000)
;--- plus
;sys::tag_assist_stno-3
[state 0] ;[.22]
    type=varset
    trigger1=numpartner>1 && playeridexist(root,id+2)
    var(55)=ifelse((playerid(root,id+2),sysvar(0)>159), (playerid(root,id+2),sysvar(0)), 1000)
;sys::tag_assist_stno-4
[state 0] ;[.23]
    type=varset
    trigger1=numpartner>2 && playeridexist(root,id+3)
    var(56)=ifelse((playerid(root,id+3),sysvar(0)>159), (playerid(root,id+3),sysvar(0)), 1000)
 this is in helper state
it sets different assists for each
partner



If you are wondering what is sysvar(0) I have this in the other state that helpr lifebar changes,var(15) is usually used for id in the other partner
Code:
;---
;>>sys::root_id
[state 0]
type=varset
trigger1=!time
sysvar(0)=var(15):=(root,id)
;>>sys::partner_id_search_init
[state 0]
type=varset
trigger1=!time
var(49)=var(15)+(numpartner>0)
;>>sys::enemy_id
[state 0]
type=varset
trigger1=!time && numenemy
;bug; var(16)=var(15)+ifelse(teamside=1,numpartner+1,-(enemy,numpartner)-1)
var(16)=var(15)



Now my question is,normally you would be able to set an assist in this tag system putting below in cmd,but cant do same for Dual Hypers,I tried making another var and making a version of top landing code,but it always gives off error as it puts char in a nonexisting state.
Code:
;------
;sys::-1::Partner-Assist-Registration
[state 0]
type=varset
trigger1=(stateno=190193)
sysvar(1)=ifelse((p2statetype=a),1100,1000) ;;<-StateNo