DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • May 18, 2013, 07:23:14 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Alternate Titles  (Read 2411 times)
0 Members and 1 Guest are viewing this topic.
danbi
Codemeister
****
Offline Offline

Posts: 366


View Profile
« on: April 16, 2007, 01:37:42 PM »

Module to provide alternate, alignment and race based Titles, Weapons and Armor.
Titles, Weapons and Armor have their editors in the Grotto.

In order for the DK 0 (at character creation) alternate title to work, the following modification to the core file create.php is neccesary:

replace line 165

        $title = get_dk_title(0, $sex);

with

        $t['dragonkills'] = 0;
        $t['sex'] = $sex;
        $t['title'] = get_dk_title(0, $sex);
        $t = modulehook("change-dk-title", $t);
        $title = $t['title'];

The module is grossly unfinished, but I better release it now to get some input.
Logged
Iori
Mod God
*****
Offline Offline

Posts: 832


View Profile WWW
« Reply #1 on: April 17, 2007, 08:33:51 PM »

You might want to have an "ignore" option for alignment (in addition to evil, neutral and good), for admins who would like to have titles based only on race.
Logged

danbi
Codemeister
****
Offline Offline

Posts: 366


View Profile
« Reply #2 on: April 18, 2007, 04:22:48 AM »

It will all default to ignore, if you don't set it.

For example, if you only enter Neutral, Dwarf entries, all Dwarfs will get it, Good and Evil.
Logged
Iori
Mod God
*****
Offline Offline

Posts: 832


View Profile WWW
« Reply #3 on: April 18, 2007, 05:02:40 AM »

So...there is no actual setting for neutral (between alignment x and alignment y)?

And another thing I noticed...it messes up regular DK title handling. For example, after creating an entry for a title set for DK 25, a player who DKs for the 3rd time received the Goddess title, which is only supposed to be available for DK 31 to 50 (set from the normal title editor).
Logged

danbi
Codemeister
****
Offline Offline

Posts: 366


View Profile
« Reply #4 on: April 18, 2007, 08:33:11 AM »

So...there is no actual setting for neutral (between alignment x and alignment y)?

If either alignment or race is not available for a given DK, whatever is available (ignoring that attribute) will be chosen. If more than one, randomly.

Even if you have only Evil, Dwarf setting, and you are Good, you will get the same title (provided, that you don't have any other title available for that range).

I don't think it should mess with normal titles at all... There are few 'debug' outputs in the code (output_notl) commented in file modules/atitles/atitles_func.php. You may wish to uncomment these, replace 'output_notl' with 'debug' and enable Debug output for yourself to not show other payers weird things, then do a DK.

By the way, if you happen to not have sufficient number of entries in the Alternate Titles table, you will end up with God and Goddess, as with the 'standard' titles.
Logged
Iori
Mod God
*****
Offline Offline

Posts: 832


View Profile WWW
« Reply #5 on: April 18, 2007, 08:40:25 AM »

That's what I don't understand.

I know I only put in 1 alternate title set (only for DK 25 and higher), so it should not affect a player with 3 DKs. Yet that player still received the Goddess title upon DK. I know I did not have a alternate title set for DK 3, but should not the normal DK title take over in that case, instead of a default God/Goddess title?


Quote
Even if you have only Evil, Dwarf setting, and you are Good, you will get the same title (provided, that you don't have any other title available for that range).

Why could it not just simply jump to the next highest DK title (normal or alternate) that fits the criteria, instead of a good player receiving an Evil title for a particular DK if no Good title exists for the particular DK?
« Last Edit: April 18, 2007, 08:45:45 AM by Iori » Logged

danbi
Codemeister
****
Offline Offline

Posts: 366


View Profile
« Reply #6 on: April 18, 2007, 09:07:34 AM »

Ok, in version 0.3 I fixed at least the issue with God/Goddess.

About the other issue, will try to resolve it. Today is not one of my best days for thinking Smiley
Logged
cory
Captain of the Guard
***
Offline Offline

Posts: 248

There can be only One!


View Profile
« Reply #7 on: August 12, 2007, 09:27:51 AM »

erm with the alternate weapons and armor, when chooseing the alignment section, say if i picked to make a Bow and chose Alignment Evil, would that make the bow evil or the person have to be evil to get it?
Logged

Quote
performance-efficient like a one-armed tailor
danbi
Codemeister
****
Offline Offline

Posts: 366


View Profile
« Reply #8 on: August 14, 2007, 02:30:18 AM »

The person has to be evil to get it. The idea is, that each race and alignment may have their own weapons. For now, only the name is difrerent.
Logged
cory
Captain of the Guard
***
Offline Offline

Posts: 248

There can be only One!


View Profile
« Reply #9 on: August 14, 2007, 02:55:33 AM »

so a neutral weapon wont be seen by a good or evil race,
ok then.
Logged

Quote
performance-efficient like a one-armed tailor
cory
Captain of the Guard
***
Offline Offline

Posts: 248

There can be only One!


View Profile
« Reply #10 on: September 22, 2007, 12:58:18 PM »

my players are getting god and goddess titles as they join the game with no dks
and all the titles i use are in the alt titles module, not useing any normal titles what so ever,
could someone help please?
t'would be very greatful.
Logged

Quote
performance-efficient like a one-armed tailor
danbi
Codemeister
****
Offline Offline

Posts: 366


View Profile
« Reply #11 on: September 27, 2007, 05:27:10 AM »

Did you apply the mods to create.php?
Logged
cory
Captain of the Guard
***
Offline Offline

Posts: 248

There can be only One!


View Profile
« Reply #12 on: September 27, 2007, 08:54:56 AM »

i think i did but i cant find them on here again since,
i had to move to a new server and im running on an old backup but it had the settings for the module stored,
so im guesing the modifications are still there,
Logged

Quote
performance-efficient like a one-armed tailor
Loscil Derails
Militia
**
Offline Offline

Posts: 51



View Profile
« Reply #13 on: June 30, 2012, 02:15:17 PM »

I can't seem to get this to work on creation either even after editing the core
Logged

Your specimen is being processed...
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
21 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search