Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TrailMyx

Pages: 1 ... 613 614 [615] 616 617 ... 621
9211
New member introductions / Re: Hell0 all!!!
« on: June 14, 2008, 11:28:03 AM »
Wow im surprised i found this... But im glad TM has made his own page to support a great cimmunty.. Im back on board to help out with testing and have great conversation people i see that are here already.. great familiar faces.

Howdy Knight, I'm glad you found my little place!  I'll be at WinUO.org as well, freddy and I are strategically allied it would seem, so no worries.  I may even post a couple scripts over there like the Heartwood quester 1.xx.  But I'm glad the good people are still around. We're just here because we love the game of UO and the extra "cool feeling" you get from being able to play it while you goto the beach.  ;)

Yes, I kinda needed my own site after all that's gone on.  I'm tired of re-inventing the wheel.  lol.  Plus there's my little extra thing here at ScriptUO that's been taking up most of my spare time.

9212
General Discussion / Post up your code snippets.
« on: June 14, 2008, 11:16:25 AM »
Although I have a bunch of code (lol) I'd like to throw a bunch of different styles at the parser to be sure it's functioning correctly.  So if you have anything that consists of these commands:

break
continue
display (complete)
for
gosub
goto
halt
if (bracketed, no 3rd argument skip yet)
menu (see list below)
pause
repeat
return
set
stop
sub
until
while
namespace (complete)
str (complete)


Attached them to this thread and I can add it to my test suit.  There are still a few parts of the menu that I haven't implemented yet.  The shape drawing parts in particular, but I do have the following implemented:


window size
window title
text
show
set
list create (no add yet)
font bgcolor
font color
font name
font size
font style
edit
delete
combo create (no add yet)
clear
check
button
activate

9213
Bug discussion / Re: Unhandled Exception
« on: June 13, 2008, 12:57:56 PM »
Ok, I fixed this little bug.  It's easy to handle when you are looking for it.  I will probably be posting a revision to his program this weekend sometime. I want to address a couple other crash issues I've found, but I'm thinking it's nearly ready for public consumption.

9214
Off Topic / Re: Dreadful new terrorist tactics....
« on: June 13, 2008, 10:42:25 AM »
Yes, is there ANYTHING they won't stoop to doing?   Next will be a porn magazine, bagz of cheetoz, and a Starbuck's Latte. Same suspiciously unremarkable very large mouse trap, but there's a world of options for us Infidels-on-the-go.

9215
General Discussion / Re: Set multiple variables at once
« on: June 13, 2008, 10:31:41 AM »
So, perhaps, just as simple as that, it might be able to be done?

Yeh, I'm pretty sure I'm not going to break any existing precedence rules or any other rule for that matter.  I'll check into it.  Good idea.

9216
General Discussion / Re: Set multiple variables at once
« on: June 13, 2008, 03:31:44 AM »
I was thinking about your original question a bit, Nicar.  I don't think it breaks any rule to do just this:

Code: [Select]
set %count1 %count2 %count3 %count4 0

Since this breaks down into 6 tokens, I always know the first token is the command and the last token is the argument to set to (assuming 3+).  So it's actually pretty straightforward to say that tokens 1 to n - 1 should be set to the same value.

EasyUO would evaluate it a bit differently:

Code: [Select]
set %count1 %count2

the %count3 %count4 0 part would be ignored.

9217
no kidding.  I've never really quit; I've always had a main account that I've paid for since the beginning.  But I've let it go unplayed for months at a time.  Then there have been times, especially in my IDOC days when I'd have 5 paid accounts to hold all the houses back in the day when you couldn't place a house anywhere on a shard.  Those were crazy days; I miss that.

9218
New member introductions / Re: Maddog HERE!!!
« on: June 13, 2008, 03:15:14 AM »
Howdy Maddog!  Glad  you made it here too!  Yet another site, no?  Well, this one isn't going anywhere anytime soon.

But welcome to you!

9219
General Discussion / Re: Set multiple variables at once
« on: June 12, 2008, 09:01:08 PM »
well, how about a colon ?   :  I don't think it's used for anything
Code: [Select]
int %count1 : %count2
float %realmath : %candivide

Yeh, I was going to look at what doesn't impact EasyUO too much, and can be included in the syntax that won't mess up EasyUO itself.  But I'm scheming.. ;)

9220
General Discussion / Re: Set multiple variables at once
« on: June 12, 2008, 08:38:30 PM »
Yeh, there are all kinds of constructs for various languages that allow you to specify the "type" of a variable.  I'll have to look at what matches closely enough to the EasyUO language.  I don't want this to turn into something that feels like a patchwork, so I'm going to be careful where I add to the syntax, but I still want to expand on the existing functionality.

I have to be careful because Cheffe has already created a meaning for the comma separation, and it's not for variable separation.  lol.  It's concatenation of all things.

9221
General Discussion / Re: Set multiple variables at once
« on: June 12, 2008, 07:30:41 PM »
Well not really.  If you look an many other languages (i.e. all) there's not really a way to initialize them unless you do it by hand.  There are compiler directives that allow you to assign a null value to the respective data type (kinda like what Hardyz suggests) but mostly all of them require you to do SOMETHING with the value.

For EasyUO, you can just have faith that math on a N/A value will default to zero, i.e. set %test %test + 1 = 1.  Otherwise, it gets kinda convoluted because of EasyUO's basic typeless structure.  I'm actually having to institute a way to differentiate that since I'm wanting to include decimal math, but you also have to be able to tell the difference between 0.0 (string) and 0.0 (float).

Right now I have a hirarchy of promotion/demotion from string->int->float, but I still need to allow for a way to let the user specify this.

9222
General Discussion / Re: Set multiple variables at once
« on: June 12, 2008, 04:08:47 PM »
Well because EUO doesn't have a real "value" for null since it deals with variable arguments mostly like strings unless math can be done.  At least with stronger typed languages, you can divine what the value should be, but you can't make the assumption with a language like EasyUO.  But if you can actually setup what you'd like "null" to be, then you get your <3 of nulls and you can talk about empty strings, zeros, N/A, etc.

Actually, if you try and do any math to a N/A, it's treated like a zero.  Also if the value that's found in a variable doesn't actually represent a number, then it's considered a zero or N/A.

Code: [Select]
set %test imanumber
set %test %test * 5 + 10
display ok %test

This will result in a 10 since the multiplication evaluates to zero.

9223
I didn't know about winuo.org until I just saw your post in another thread. I think I will take it there heh, but the offer is still open here. I love scripting, just more on the scripting for bugs side.

Oh, you'd love my orange cloth generator then. :)

9224
Off Topic / Dreadful new terrorist tactics....
« on: June 12, 2008, 01:14:47 PM »
Roadside bombs, suicide bombers, bombs strapped to women....

But this.............this is just plain wrong.


9225
General Discussion / Re: Set multiple variables at once
« on: June 12, 2008, 12:33:13 PM »
Am I the only one that wants/uses/does this?

Like, initializing variables to 0. I don't want to check for a variable by n/a. What if I ran the script, stopped it, and I'm running it again and it is holding a value? so, now I have 5 variables, I am setting to 0... I want to set them with 1 line of code, can SUO do that?

I've often wanted to do something exactly like that.  It really makes sense to initialize a variable to a number rather than some obscure reference that's not even a NaN or something more accepted like that.  Really, it would be pretty easy to add a system variable like #INITVAR which you can set that'll allow you set a variable initialization value. If you want to change to another block of initialization, you can just change the initializer.  I'll add that to the list of new features.

Pages: 1 ... 613 614 [615] 616 617 ... 621