ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started 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?
-
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.
-
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. ;)
-
My motto is change someone else's to fit what I need. If no programs exist I then write my own!
-
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 :)
-
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?
-
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.
-
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...
-
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:
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:
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.
-
I pick up a stick and hit the Project with it. If that Doesn't work, I find a bigger Stick.
Repeat
Until Penguins
-