The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Poll: Which would you rather see for the Definition Naming in sphere base packs?
i_large_battle_axe
i_lg_battle_axe
i_axe_large_battle
i_axe_battle_lg
i_axe_battle_large
i_battle_axe_lg
i_battle_axe_large
[Show Results]
 
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BASE PACK DEFINITION NAMING
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #11
RE: BASE PACK DEFINITION NAMING
I think precise naming is better for memorizing, but not good for scripting purposes, imagine that you have a set of items in a def like this:

items_to_recolor=i_large_battle_axe,i_bardiche,i_paladin_sword,i_gargish_war_for​k

And you want to convert one of them to verite material so following this patron, it will be i_verite_whateverid... easy way of doing this without cuting up IDs? none. Using inheritance its so easy:
args=<def.items_to_recolor>
serv.newitem=<argv[x]>_verite

So while your way is better to understand at first... this other way is better for scripting and, always that this naming-way is strictly followed anyone will get up how call any item so quickly.
12-01-2013 08:02 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
BASE PACK DEFINITION NAMING - Khaos - 11-30-2013, 08:33 PM
RE: BASE PACK DEFINITION NAMING - karma - 11-30-2013, 09:52 PM
RE: BASE PACK DEFINITION NAMING - Crusader - 11-30-2013, 10:21 PM
RE: BASE PACK DEFINITION NAMING - Mulambo - 11-30-2013, 10:51 PM
RE: BASE PACK DEFINITION NAMING - Mordaunt - 11-30-2013, 11:12 PM
RE: BASE PACK DEFINITION NAMING - RanXerox - 12-01-2013, 04:42 AM
RE: BASE PACK DEFINITION NAMING - karma - 12-01-2013, 08:23 AM
RE: BASE PACK DEFINITION NAMING - Khaos - 12-01-2013, 10:56 AM
RE: BASE PACK DEFINITION NAMING - Khaos - 12-01-2013, 05:37 PM
RE: BASE PACK DEFINITION NAMING - XuN - 12-01-2013 08:02 PM
RE: BASE PACK DEFINITION NAMING - Khaos - 12-01-2013, 08:42 PM
RE: BASE PACK DEFINITION NAMING - Extreme - 12-01-2013, 09:46 PM
RE: BASE PACK DEFINITION NAMING - XuN - 12-02-2013, 12:07 AM
RE: BASE PACK DEFINITION NAMING - Khaos - 12-02-2013, 12:30 AM
RE: BASE PACK DEFINITION NAMING - Extreme - 12-02-2013, 06:26 AM
RE: BASE PACK DEFINITION NAMING - Khaos - 12-02-2013, 07:11 AM
RE: BASE PACK DEFINITION NAMING - XuN - 12-02-2013, 07:32 AM
RE: BASE PACK DEFINITION NAMING - Extreme - 12-02-2013, 08:51 AM
RE: BASE PACK DEFINITION NAMING - babazar - 12-04-2013, 10:59 PM
RE: BASE PACK DEFINITION NAMING - Khaos - 12-05-2013, 02:13 AM
RE: BASE PACK DEFINITION NAMING - karma - 12-06-2013, 02:39 AM
RE: BASE PACK DEFINITION NAMING - ShiryuX - 12-09-2013, 09:59 AM
RE: BASE PACK DEFINITION NAMING - Wap - 12-09-2013, 11:10 AM
RE: BASE PACK DEFINITION NAMING - Khaos - 12-09-2013, 11:13 AM

Forum Jump:


User(s) browsing this thread: 5 Guest(s)