All times are UTC





Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Convenience/time saving scripts
PostPosted: Fri Jan 29, 2010 1:17 pm 
Offline
Power User

Joined: Tue Sep 29, 2009 12:20 pm
Posts: 1078
YouTD Score: 162
I found changing the modification values in the map and saving+running the map through GMSI repeatedly in an attempt to get the desired goldcost/level inconvenient, so I threw together a script that only requires you to input some values in dialog boxes, and gives you the goldcost of an item and the level it appears.


Attachments:
CalcItemCost.gsl [5.24 KiB]
Downloaded 508 times

_________________
Ability cost calculator.


Last edited by Majildian on Sat Mar 20, 2010 2:27 pm, edited 3 times in total.
Top
 Profile  
 
 Post subject: Re: Item cost calculation script
PostPosted: Fri Feb 05, 2010 10:06 am 
Offline
Power User

Joined: Tue Sep 29, 2009 12:20 pm
Posts: 1078
YouTD Score: 162
This takes a tower map, then changes most of the basic variables to values you input. These include cooldown, attack type, range, ability factor and more. You'll have to save the changed map in the world editor before running it through GMSI though.


Attachments:
ChangeBasics.gsl [5.94 KiB]
Downloaded 482 times

_________________
Ability cost calculator.
Top
 Profile  
 
 Post subject: Re: Item cost calculation script
PostPosted: Sun Feb 07, 2010 8:02 am 
Offline
Power User

Joined: Tue Sep 29, 2009 12:20 pm
Posts: 1078
YouTD Score: 162
Update to the CalcDPS one, it can now calculate the dps of an ability and tell you what the ability factor of your tower should be, which makes it probably the most useful one of these. :)

Updated with option dialogs.

Updated again, now you can select a map to load most of the values from. If your ability splashes or bounces but the tower doesn't, this will give a bad factor.

Fixed a serious bug with the ability calculation when loading values from a map.

Updated again with the formula for calculating ability DPS from the Balancing Spell Damage thread.

Changed a couple of the input boxes to percent instead of reals.

Updated to display some more of the chosen values after it calculates an ability.

Added fails/defaults if invalid values are chosen, or if the user pushes cancel.

Changed the range balancing to be the same as devkit 1.17.


Attachments:
CalcDPS.gsl [13.17 KiB]
Downloaded 437 times

_________________
Ability cost calculator.


Last edited by Majildian on Wed Mar 17, 2010 9:01 am, edited 13 times in total.
Top
 Profile  
 
 Post subject: Re: Item cost calculation script
PostPosted: Sun Feb 07, 2010 4:21 pm 
Offline
YouTD Admin
YouTD Admin

Joined: Sat May 16, 2009 6:16 pm
Posts: 573
YouTD Score: 110
include("dialog.gsl");

array<string> ops=array();
ops[0]="1st option";
ops[1]="2nd option";
ops[2]="3rd option";
string c =optionDialog("Option Dialog","Which one do you like best?",ops,"2nd option");
echo(c);

I don't know, if there is a better way to initialize the array, but this way it works.


Top
 Profile  
 
 Post subject: Re: Item cost calculation script
PostPosted: Sun Feb 07, 2010 4:53 pm 
Offline
Power User

Joined: Tue Sep 29, 2009 12:20 pm
Posts: 1078
YouTD Score: 162
tolleder wrote:
include("dialog.gsl");

array<string> ops=array();
ops[0]="1st option";
ops[1]="2nd option";
ops[2]="3rd option";
string c =optionDialog("Option Dialog","Which one do you like best?",ops,"2nd option");
echo(c);

I don't know, if there is a better way to initialize the array, but this way it works.


Excellent, thank you. This should make things quite a bit easier.

_________________
Ability cost calculator.


Top
 Profile  
 
 Post subject: Re: Item cost calculation script
PostPosted: Sun Feb 28, 2010 6:32 am 
Offline
Power User

Joined: Tue Sep 29, 2009 12:20 pm
Posts: 1078
YouTD Score: 162
Another script. This one takes a map and then changes all exports in the header to imports, removes all custom functions, empties the init function, and then asks for input to change the userInts/Reals in the tower creation trigger. It also displays the current uservalue you're changing, what it's at now, and 5 commented words after it. It then asks for the name/tooltip/goldcost of the tower, and saves the resulting map as a name of your choosing. Saves some time when creating families using code like this one.


Attachments:
FamilyScript.gsl [2.02 KiB]
Downloaded 431 times

_________________
Ability cost calculator.
Top
 Profile  
 
 Post subject: Re: Convenience/time saving scripts
PostPosted: Sat Mar 20, 2010 2:30 pm 
Offline
Power User

Joined: Tue Sep 29, 2009 12:20 pm
Posts: 1078
YouTD Score: 162
Any suggestions for other scripts that would be helpful or improvements to the existing ones?

_________________
Ability cost calculator.


Top
 Profile  
 
 Post subject: Re: Convenience/time saving scripts
PostPosted: Tue May 04, 2010 9:36 pm 
Offline
Power User

Joined: Tue Sep 29, 2009 12:20 pm
Posts: 1078
YouTD Score: 162
An alternative to the CalcDPS and CalcItemCost scripts, and more convenient when calculating many similar things in a row.

Suggestions for improvement are welcome.

DoT damage mod formula changed. Some info here.

Added wave level/element level required to the tower information.


Attachments:
YouTDUtilities.jar [110.34 KiB]
Downloaded 441 times

_________________
Ability cost calculator.
Top
 Profile  
 
 Post subject: Re: Convenience/time saving scripts
PostPosted: Tue Jul 05, 2011 9:25 am 
Offline
Power User

Joined: Tue Sep 29, 2009 12:20 pm
Posts: 1078
YouTD Score: 162
Bump. :mrgreen:

_________________
Ability cost calculator.


Top
 Profile  
 
 Post subject: Re: Convenience/time saving scripts
PostPosted: Tue Jul 05, 2011 10:25 am 
Offline
YouTD developer
YouTD developer
User avatar

Joined: Wed Dec 29, 2010 12:20 pm
Posts: 4527
Location: Australia
YouTD Score: 32
some nice work there! :)

btw, i think the site allows zip files, so an alternative could be to zip these scripts so peeps can download them like that. (or nicely ask master and he might add .gsl to list of allowed extensions :P)

_________________
Goldcost to waveLevel & elementLevel relationship
Incremental Testmap Stub & Tower Creation Map


Top
 Profile  
 
 Post subject: Re: Convenience/time saving scripts
PostPosted: Tue Jul 05, 2011 3:25 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Sat Jun 13, 2009 1:15 am
Posts: 2350
YouTD Score: 53
Glowackos wrote:
some nice work there! :)

btw, i think the site allows zip files, so an alternative could be to zip these scripts so peeps can download them like that. (or nicely ask master and he might add .gsl to list of allowed extensions :P)

Should be already allowed.

_________________
League of Legends (MasterCassim @ EUW)


Top
 Profile  
 
 Post subject: Re: Convenience/time saving scripts
PostPosted: Wed Jul 06, 2011 10:29 pm 
Offline
Advanced User
User avatar

Joined: Sun Jun 26, 2011 1:19 pm
Posts: 110
Location: Riga, Latvia
YouTD Score: 34
Looks like this might be useful to me, but I have no idea what to do with the script, lol. Do I copy-paste it somewhere?

_________________
Call me Sus.
Used Tower icons: http://www.eeve.org/YouTD/icons.php
Used Item icons: http://www.eeve.org/YouTD/icons.php?mode=items


Top
 Profile  
 
 Post subject: Re: Convenience/time saving scripts
PostPosted: Thu Jul 07, 2011 3:08 am 
Offline
YouTD developer
YouTD developer
User avatar

Joined: Wed Dec 29, 2010 12:20 pm
Posts: 4527
Location: Australia
YouTD Score: 32
Your YouTD devkit has a 'script' folder. Chuck the gsl files in there and then you can find and run them using GMSI

_________________
Goldcost to waveLevel & elementLevel relationship
Incremental Testmap Stub & Tower Creation Map


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group