Language…
16 users online: anonimzwx,  BeeKaay, codfish1002, DanMario24YT, Domokun007,  Eevee, HaruMKT, hhuxy, Knight of Time, margot, nonamelol1, Pizzagamer9791,  Ringo, ShoopDaWhoop, SysDataSoft, VLSkoot - Guests: 286 - Bots: 322
Users: 64,795 (2,375 active)
Latest user: mathew

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!
Why does the second block I add into the "list.txt" turn into the lunar magic description of the first block instead of being it's own?
  • Pages:
  • 1
  • 2

FundamentalCustom BlocksTool-Specific