ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Insideout on October 29, 2013, 05:08:47 PM

Title: How do you choose what to tackle
Post by: Insideout on October 29, 2013, 05:08:47 PM
Okay after wanting to try to write a script lol I take a look and there are ones for everything. How do you guys decided on what to work on as far as script writing?
Title: Re: How do you choose what to tackle
Post by: Endless Night on October 29, 2013, 05:11:58 PM
simple if i want to do sometime i write it.     I hardly ever use other peoples scripts.. I get more enjoyment and frustration writing my own.
Title: Re: How do you choose what to tackle
Post by: TrailMyx on October 29, 2013, 05:39:40 PM
I always start small with a basic idea to accomplish.  Then you just add features until the script does what you need.  There's added complexity when you release to the public because your script should be resistant to noobs and idiots. ;)
Title: Re: How do you choose what to tackle
Post by: gimlet on October 29, 2013, 05:43:47 PM
My motto is change someone else's to fit what I need. If no programs exist I then write my own!
Title: Re: How do you choose what to tackle
Post by: Insideout on October 29, 2013, 05:46:35 PM
I always start small with a basic idea to accomplish.  Then you just add features until the script does what you need.  There's added complexity when you release to the public because your script should be resistant to noobs and idiots. ;)


LOL then I should not even think about trying to script lol as I feel I'm both most of the time :)
Title: Re: How do you choose what to tackle
Post by: Insideout on October 29, 2013, 05:49:10 PM
Well i'm all about changing stuff as I have claimed before i'm far from an engineer but you build it and I can do something with it afterward. I'm looking at a few more plant scripts from EUO as they just seem they need tweaked. Not hearing back from the Authors and many have been gone for several years. So what does a person do just give props and hope they don't get upset over it?
Title: Re: How do you choose what to tackle
Post by: TrailMyx on October 29, 2013, 06:04:38 PM
Kinda depends on the degree of modifications.  If you end up re-writing 90% of the script with your own code, then just a thankful acknowledgement to the author.  But if it's just tweaked to work, you shouldn't be posting it publicly without the original author's consent.  If it's just for your use, then you can do whatever you want - that's how most of us started anyhow.
Title: Re: How do you choose what to tackle
Post by: NObama on October 29, 2013, 07:17:01 PM
Mostly, I look at what I'm doing a lot of, and how to automate it.

Hence my little helper scripts to pick up mushrooms, my effort to help with Ant Farm, my Ultra Hunter...

Title: Re: How do you choose what to tackle
Post by: dxrom on October 29, 2013, 10:33:52 PM
I get an idea of what I want to do and code it to work at the most basic level.

For example, if I want to have something that casts a spell I start with:

Code: [Select]
Cast(Spell);
And it begins there, then ofcourse I figure out what conditions I want to cast that spell under. Say I want to cast Heal, that means I would want to cast Heal when my HP is at a certain level so it becomes:

Code: [Select]
if( GetHP(Self) * 100 / (GetMaxHP(Self)+1) < 50 ) then //50 Percent
begin
  Cast(Spell);
  WaitForTarget(1000);
  if( TargetPresent );
    TargetToObject(Self);
end;

And so on. Maybe one day I decide to make this into it's own universal casting function that accepts the following information: Cast(SpellName:String; ManaCost,CastTime:Integer) and within itself calculate the effecting mana cost and spell cast/recovery time based on your current LMC,FC,FCR.
Title: Re: How do you choose what to tackle
Post by: manwinc on October 29, 2013, 11:45:46 PM
I pick up a stick and hit the Project with it. If that Doesn't work, I find a bigger Stick.

Repeat
Until Penguins
Title: Re: How do you choose what to tackle
Post by: Crome969 on October 30, 2013, 02:54:59 AM