Kyle's Edits

View previous topic View next topic Go down

Kyle's Edits

Post by Kyle? on Sat Oct 23, 2010 9:29 pm

Small Battle Damage:
Place in Game_Battler line 643
(Replace that line)
Code:

damage = attacker.atk / 2 - self.def / 4 

Letters to Numbers:
Replace Game_Troop line 12 to 14
Code:

LETTER_TABLE = [ ' 1',' 2',' 3',' 4',' 5',' 6',' 7',' 8',' 9',' 10',
                  ' 11',' 12',' 13',' 14',' 15',' 16',' 17',' 18',' 19',' 20',
                  ' 21',' 22',' 23',' 24',' 25',' 26']
avatar
Kyle?
Platinum Cookiez
Platinum Cookiez

Posts : 500
Gald : 418

Stats
Cookies: 5

View user profile

Back to top Go down

Re: Kyle's Edits

Post by Dezz123 on Sun Oct 24, 2010 8:03 am

Stupid question. What do these do?

avatar
Dezz123
Legendary
Legendary

Posts : 1534
Gald : 6469

Stats
Cookies: 0

View user profile http://www.dezzgames.webs.com, www.evalon.webs.com

Back to top Go down

Re: Kyle's Edits

Post by Kyle? on Mon Oct 25, 2010 12:15 am

What there names are.
The first one gives small damage so 3 instead of 30
and the other one is replacing the letters in battle of monsters to numbers
avatar
Kyle?
Platinum Cookiez
Platinum Cookiez

Posts : 500
Gald : 418

Stats
Cookies: 5

View user profile

Back to top Go down

Re: Kyle's Edits

Post by Dezz123 on Mon Oct 25, 2010 4:28 am

Ahh. Not bad.
avatar
Dezz123
Legendary
Legendary

Posts : 1534
Gald : 6469

Stats
Cookies: 0

View user profile http://www.dezzgames.webs.com, www.evalon.webs.com

Back to top Go down

Re: Kyle's Edits

Post by The Creator on Mon Oct 25, 2010 6:26 am

Great idea! Nothing is worse in an RPG game when you are dealing 100000 damage a pop to a slime! Razz
avatar
The Creator
Legendary
Legendary

Posts : 786
Gald : 920

Stats
Cookies: 0

View user profile

Back to top Go down

Re: Kyle's Edits

Post by Peva on Mon Oct 25, 2010 7:16 am

Now KAIL will do snippets for us!

__________________________________
New to OmegaDev? Read the OmegaDev Official Rules.

Peva
Spoiler:





Well, happy RMing Wink
avatar
Peva
Development Moderator
Development Moderator

Posts : 1281
Gald : 4414

Stats
Cookies: 0

View user profile

Back to top Go down

Re: Kyle's Edits

Post by The Creator on Tue Oct 26, 2010 9:57 am

hmmm, I have been meaning to try this! Ill have to do it soon.
avatar
The Creator
Legendary
Legendary

Posts : 786
Gald : 920

Stats
Cookies: 0

View user profile

Back to top Go down

Re: Kyle's Edits

Post by IMP1 on Tue Oct 26, 2010 10:42 am

Kyle? wrote:
Code:
LETTER_TABLE = [ ' 1',' 2',' 3',' 4',' 5',' 6',' 7',' 8',' 9',' 10',
                  ' 11',' 12',' 13',' 14',' 15',' 16',' 17',' 18',' 19',' 20',
                  ' 21',' 22',' 23',' 24',' 25',' 26']
Could also be written as
Code:
LETTER_TABLE = %w{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
                  18, 19, 20, 21, 22, 23, 24, 25, 26}
A little easier on the eyes, no?
You don't have to type out every ''

EDIT: @TheCreator... what?

__________________________________
Code:
"haystack".scan(/needle/)
avatar
IMP1
Coding Moderator
Coding Moderator

Posts : 503
Gald : 1399

Stats
Cookies: 5

View user profile

Back to top Go down

Re: Kyle's Edits

Post by Dezz123 on Tue Oct 26, 2010 11:19 am

@IMP1 - I think The Creator means testing the scripts out.
avatar
Dezz123
Legendary
Legendary

Posts : 1534
Gald : 6469

Stats
Cookies: 0

View user profile http://www.dezzgames.webs.com, www.evalon.webs.com

Back to top Go down

Re: Kyle's Edits

Post by IMP1 on Tue Oct 26, 2010 11:25 am

Landargon wrote:@IMP1 - I think The Creator means testing the scripts out.
Ohh. Silly me.

@Kyle, just to clarify %w creates an array of single-quoted elements.

See link:
https://simpleror.wordpress.com/2009/03/15/q-q-w-w-x-r-s/#q

__________________________________
Code:
"haystack".scan(/needle/)
avatar
IMP1
Coding Moderator
Coding Moderator

Posts : 503
Gald : 1399

Stats
Cookies: 5

View user profile

Back to top Go down

Re: Kyle's Edits

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum