Language…
15 users online: Aerithos,  Anorakun,  Ayami, EmilyEmmi, GrenCarret, h.carrell, isaix, Knetog, MrDeePay, MrNapkino, renangaspar2, skyhi, SweatyNoodle, tehgooch, underway - Guests: 102 - Bots: 145
Users: 58,139 (2,454 active)
Latest user: renangaspar2

Block Insertion with GPS

FundamentalCustom BlocksTool-Specific

  • Pages:
  • 1
  • 2
I've inserted many blocks successfully since I learned how (like, 2 nights ago) but I can't seem to get this one to work. The block is Event Dependent Block 1.2. I am trying to make it activate after event 20, and it keeps giving me the error mentioned in the readme file- saying that event 20 is greater than 77. Any help would be greatly appreciated. I've been trying to figure it out for a while now, like maybe I'm entering the !Event number wrong in the code.


;Requested By Gi Manilla
;This block will act like another block when certain Event is activated
;Acts like "any".

!Event = $20 ;If this event is passed, this block will act like... another block
!BlockNum = $0195 ;Ats like when Event is active

OK:
assert !Event <= $77 "Error! Your Event value higher than 77! Refer to readme for more info." ;Give error. Intentionally.
Originally posted by devastatorx
I've inserted many blocks successfully since I learned how (like, 2 nights ago) but I can't seem to get this one to work. The block is Event Dependent Block 1.2. I am trying to make it activate after event 20, and it keeps giving me the error mentioned in the readme file- saying that event 20 is greater than 77. Any help would be greatly appreciated. I've been trying to figure it out for a while now, like maybe I'm entering the !Event number wrong in the code.


;Requested By Gi Manilla
;This block will act like another block when certain Event is activated
;Acts like "any".

!Event = $20 ;If this event is passed, this block will act like... another block
!BlockNum = $0195 ;Ats like when Event is active

OK:
assert !Event <= $77 "Error! Your Event value higher than 77! Refer to readme for more info." ;Give error. Intentionally.



It's always helpful to post the actual error and not a description of it. The error you're getting is not saying that 22 is bigger than 77 but that the assert command itself is malformed.

Seems like some version of asar, probably 1.80, changed how assert is handled which broke this already wrong use of it. To fix it just add a comma after the condition like this:
Code
assert !Event <= $77, "Error! Your Event value higher than 77! Refer to readme for more info."	;Give error. Intentionally.
Awesome, it worked! Thanks for the help!
  • Pages:
  • 1
  • 2

FundamentalCustom BlocksTool-Specific