YesNoOk
avatar

Who To Set/Make Vars? (Read 2570 times)

Started by Koopa901, January 18, 2018, 04:00:15 am
Share this topic:
Who To Set/Make Vars?
#1  January 18, 2018, 04:00:15 am
  • avatar
  • ***
Hey guys, if it wasn't a problem could someone show/explain/teach me how to set a var that changes sound and blood sprites for certain characters....
Like maybe a sample code and what does what...I guess a break down you could say.
Re: Who To Set/Make Vars?
#2  January 18, 2018, 04:13:52 am
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com
I would check the way infinites chars are coded, the customizable cns file
Where you can change hitsparks and sounds ECT.
Re: Who To Set/Make Vars?
#3  January 18, 2018, 04:14:52 am
  • avatar
  • ***
Dammit you may be on to something!
Re: Who To Set/Make Vars?
#4  January 18, 2018, 04:16:41 am
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com
Re: Who To Set/Make Vars?
#5  January 18, 2018, 05:34:22 am
  • avatar
  • ***
Still catching hell with it.....
What I have

[State 5900, Bullet Sounds]
type = VarSet
trigger1 = Enemy, Name = "Iron Man"
v = 44
value = 1


and where the sound plays

[State 1005, HitSound]
type=playsnd
trigger1=movehit && numtarget
trigger1=target, time=0 && target, movetype=H
value=2,6+20*var(44)   
channel=16+random%5
persistent=0
ignorehitpause=1


I assigned the sound to 2,26 still nothing though, well it plays the sound for 2,6
I have the enemy name plugged in correctly but seems to not work.
Re: Who To Set/Make Vars?
#6  January 18, 2018, 05:42:11 am
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com
Still catching hell with it.....
What I have

[State 5900, Bullet Sounds]
type = VarSet
trigger1 = Enemy, Name = "Iron Man"
v = 44
value = 1


and where the sound plays

[State 1005, HitSound]
type=playsnd
trigger1=movehit && numtarget
trigger1=target, time=0 && target, movetype=H
value=2,6+20*var(44)   
channel=16+random%5
persistent=0
ignorehitpause=1


I assigned the sound to 2,26 still nothing though, well it plays the sound for 2,6
I have the enemy name plugged in correctly but seems to not work.

What's up with the playsnd channel? Try putting 2 instead
Of random
Re: Who To Set/Make Vars?
#7  January 18, 2018, 06:30:31 am
  • avatar
  • ***
Still nothing....like the var isn't set or something...... The varset should be in the 5900 area right, the 1005 state hitsound is the bullet sound for Deadpool, nothing changed except for the value = 2,6*var(44).... what could be wrong....meh....
Re: Who To Set/Make Vars?
#8  January 18, 2018, 07:23:53 am
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com
Ill check it out tomorrow and see how I made it work out
Re: Who To Set/Make Vars?
#9  January 18, 2018, 10:05:28 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
are you sure the var is not resetting or changing its value elsewhere?
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: Who To Set/Make Vars?
#10  January 18, 2018, 10:15:59 am
  • avatar
  • ***
It's not changing or working at all, it won't play the 2,26 snd. Maybe it's the trigger....