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.


Topics - TaskForce

Pages: [1]
1
Scripting Chat / Cascading subs
« on: September 10, 2014, 01:29:06 AM »
Hi,
I have written that long script a while ago, which consists of a lot of gotos depending from a hotkey and calls a sub, which itself calls other subs too.
Now goto has determined as "bad" especially if one tries to adapt the script to OpenEUO.

Code: [Select]
00:
gosub task N E S W 00 01 11 21 00
21:
gosub task N E E S 21 210 211 212 213
210:
gosub task E N S W 210 210 210 21 99
212:
gosub task N S E W 212 212 212 21 99
213:
gosub task N E W S 213 213 213 21 99
...
halt
main:

The sub task does something, the result is read by the operator on the screen and entered via hotkey to call the sub task again with different parameters.
Depending from the entered hotkey the sub would issue an goto %x, where x is the position of the parameter containing the next tag to goto.  My thinking now is, that it could be a way, to create simply subs instead of the tags and name them i.e. sub 21.

Code: [Select]
sub 21
gosub task N E E S 21 210 211 212 213
return

This however means, all subs would be started from within sub 00 and therefore create a hierarchy of cascaded, never really closed subs (unless the script comes to its planned halt within one of these subs).
The question now is: Is there a limit, how deep such cascade can be or a better idea to address the various parameter levels?

Greetings
TaskForce

2
New member introductions / Found this forum
« on: September 08, 2014, 01:57:12 AM »
and here I am.
As TaskForce I am more or less also active in the EUO community.
Recently some non scripter pointed me to a thread in this forum, which woke my interest, so I registered here to read a bit more. Well, nice try ... in 60 days I may have forgotten this forum again, or not (after crossing 50 forgetting is definitively faster).

I play Ultima Online since more than a dozen years on shards like Catskills, Atlantic, Drachenfels, Europa and even Siege.
More the collector and hoarder type than anything else.
Scripts I use to save me some time with training and other mostly boring stuff in game, protect my wrists from carpal tunnel issues, have a more organized and less emotion controlled way to do things and in a few cases to be competitive with other scripters.

It is beautiful, what all can be done with scripts. Its not longer Origin, but somehow with our scripts the slogan comes to life again: We create worlds. Our own worlds in a virtual world, even if it is a smaller scale.

My preferred way of script creation is to read and (trying to) understand scripts other people created, pick what fits my intended use and adapt/transform it for my own needs.

About the tool, which gives the website its name, I cannot comment yet - just downloaded it and had a first look. But the very first impression: I like the navigation tree to jump to certain positions within the script. Alone this is worth a lot.

Greetings
TaskForce

Pages: [1]