Vaecrius wrote:If you really want an answer, it just looks neater and easier to keep that way if you're copying code from multiple different actors. ("What's this TROO H doing in this shotgun guy?")Gez wrote:Why do people always use TNT1 for zero length states?
For what it's worth, here's how the proposed syntax would look:compared to the current equivalent:Code: Select all
FOOB R 12 { A_Foobar("Foobar") A_Foobar1 A_Foobar2("Foobar") goto Foobar A_Foobar2If(user_foobar==2,"Foobar",1,2,3,4,5,6,7,8,9) A_Foobar3(15,"Foobar") A_Foobar4(111,222,333) A_FoobarEx("FoobarFatShot",1,2,3,4,5,6,7,8,9) }
EDIT: How would goto and jump work in the suggested syntax anyway? would they just not be allowed?Code: Select all
FOOB R 0 A_Foobar("Foobar") FOOB R 0 A_Foobar1 FOOB R 0 A_Foobar2("Foobar") goto Foobar FOOB R 0 A_Foobar2If(user_foobar==2,"Foobar",1,2,3,4,5,6,7,8,9) FOOB R 0 A_Foobar3(15,"Foobar") FOOB R 0 A_Foobar4(111,222,333) FOOB R 12 A_FoobarEx("FoobarFatShot",1,2,3,4,5,6,7,8,9)
Syntax rejected. Since this will have to be a stand-in for a scripted function each line must end with a semicolon. And the goto is a complete no-go. The scripting language won't allow a goto, it also won't allow A_Jump constructs, but real script syntax instead. In this area the main objective will be: no stopgap measures. Period.
BTW, if Randi continues his work on the scripting branch and manages to merge it this might not be so far away - but don't expect anything unless the scripting framework is in.