YesNoOk
avatar

numprojid doesn't work for some reason (Read 3448 times)

Started by N0BIE, October 04, 2021, 02:01:19 am
Share this topic:
numprojid doesn't work for some reason
#1  October 04, 2021, 02:01:19 am
  • avatar
Quote
[State 200, 1]
type = projectile
trigger1 = random <= 5
trigger1 = NumProjId(67110) = 0
trigger1 = roundstate =2
ProjID = 67110
projanim = 6711
projhitanim = 6711
projremanim = 6711
projcancelanim = 6713
projscale = 1,1
projremove = 1
projremovetime = 200
velocity = 0,0
remvelocity = 0,0
accel = 0,0
velmul = 1
projhits = 99999
projmisstime = 5
projpriority = 1
projsprpriority = 3
projedgebound = 40
projstagebound = 40
projheightbound = -240
offset = 0,0
postype = P2         ;P2, Front, Back, Left, Right
projshadow = 0,0,0
attr = S, NA
damage = 0
animtype = Light
guardflag =
hitflag = MAFDP
guard.dist = 0
priority = 3, Hit
pausetime = 0, 2
sparkno = -1
sparkxy = -10, -76
hitsound = s6700,1
guardsound = s8888,3
ground.type = High
ground.slidetime = 0
ground.hittime  = 10
ground.velocity = 0
guard.velocity = 0
airguard.velocity = 0
air.type = High
air.velocity = 0
air.hittime = 10
envshake.time = 10
envshake.freq = 140
envshake.ampl = -1
I want to make this trigger only if the projectile itself doesn't exist.
But It just makes the projectile multiple times. Is there something wrong??
I'm putting this code in [statedef-2] btw.
Re: numprojid doesn't work for some reason
#2  October 04, 2021, 03:13:02 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Haven't got the docs in front of me but i think numprojid is ye olde style and you do

Numprojid67100 rather than brackets. Check the docs to confirm.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: numprojid doesn't work for some reason
#3  October 04, 2021, 05:13:32 am
  • ***
  • 하나뿐인 한국인 대표
  • Ambassador of MugenRevival
    • South Korea
    • sites.google.com/view/kolossoni-mugen
The brackets are still necessary... and it works fine for me.

Maybe the ProjID itself is too long?
Re: numprojid doesn't work for some reason
#4  October 04, 2021, 06:33:12 am
  • **
  • Don't copy code if you don't understand it.
    • USA
    • a13rown@hotmail.com
I think you would use the following:  trigger1 = NumProjId(67110) = 0     in the command file.  Not the actual hitdef
Re: numprojid doesn't work for some reason
#5  October 04, 2021, 06:42:41 am
  • avatar
  • **
    • USA
trigger1 = !Numprojid(67110)

2OS

Re: numprojid doesn't work for some reason
#6  October 04, 2021, 06:50:25 am
  • ****
  • 608 Wannabe
  • Ich schicke dich zur HOELLE!! STIRB DU FEIGLING!!
    • Egypt
Haven't got the docs in front of me but i think numprojid is ye olde style and you do

Numprojid67100 rather than brackets. Check the docs to confirm.

it's projhit projguarded and projcontact that use the old syntax

i'd advise never using those and using projhittime projguardedtime and projcontacttime instead both because current syntax and more flexible