Smbx 1.4.5: weird/questionable stuff 2
Posted: 29 Sep 2020, 5:27
1)
There is something to think about when you use the .width or .height properties of the npc, is that it is disabled by default(its autoscale), why would I use: .width=64 and the npc not change?
1.1) Or in this case, this script only works if I run it from npc(with autoscale enabled):
1.2) This may seem silly but: could normal npc(size=100%) have autoscale check enabled by default?
Every time I switch npc it is disabled.
2)
I have tested on my own what the .stimer property does and this property does only a decrement(.stimer-= 1) at the end of the npc script when it is positive.
Does it only do that? or is there an side effect that i don't see(and what could I do wrong), because we could do it ourselves with 'if .stimer>0 then .stimer=.stimer-1', that's suspicious.
3)
Something curious in visual basic 6.0 when you have selected an item from a list (or listbox) and press a letter key, the focus goes to the items that start with that letter, but the list of scripts in your smbx doesn't can do it.
There is something to think about when you use the .width or .height properties of the npc, is that it is disabled by default(its autoscale), why would I use: .width=64 and the npc not change?
1.1) Or in this case, this script only works if I run it from npc(with autoscale enabled):
Code: Select all
for v(i)=1 to 8
v(k)=32+int(rnd*3)*32
v(a)=ncreate(38,sysval(player1scrx)+rnd*800,sysval(player1scry)+32+rnd*64,0,0,0,0)
v(a)=getid(v(a))
npc(v(a)).width=v(k)
npc(v(a)).height=v(k)
npc(v(a)).x-=npc(v(a)).width/2
next1.2) This may seem silly but: could normal npc(size=100%) have autoscale check enabled by default?
Every time I switch npc it is disabled.
2)
I have tested on my own what the .stimer property does and this property does only a decrement(.stimer-= 1) at the end of the npc script when it is positive.
Does it only do that? or is there an side effect that i don't see(and what could I do wrong), because we could do it ourselves with 'if .stimer>0 then .stimer=.stimer-1', that's suspicious.
3)
Something curious in visual basic 6.0 when you have selected an item from a list (or listbox) and press a letter key, the focus goes to the items that start with that letter, but the list of scripts in your smbx doesn't can do it.