vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   RPG Integration Hack (https://vborg.vbsupport.ru/forumdisplay.php?f=102)
-   -   RPG Monster Editor? (https://vborg.vbsupport.ru/showthread.php?t=78636)

Dorign 03-23-2005 04:51 PM

RPG Monster Editor?
 
Was there one that was supposed to be included? I'd like to adjust the EXP won per monster, unless that doesn't work.. :P

I'd also like to buff the monsters up.

Revan 03-23-2005 05:16 PM

mmm I forgot to include the instructions for new admincp/index.php edits.
Give us a sec and I'll have it ready

Under
PHP Code:

        construct_nav_group($vbphrase['rpg_battle'], '<hr />');
    }
    
// *** 

Add
PHP Code:

    if (can_administer('canadminrpg'))
    {
        
$printhr true;
        
construct_nav_option($vbphrase['rpg_view_monster_battles'], 'monsteradmin.php?do=viewbattles''<br />');
        
construct_nav_option($vbphrase['edit_options'], 'options.php?dogroup=rpg_battle''<br />');
        
construct_nav_option($vbphrase['rpg_add_monster'], 'monsteradmin.php?do=addmonster''<br />');
        
construct_nav_option($vbphrase['rpg_edit_delete_monster'], 'monsteradmin.php?do=editmonsters''<br />');
        
construct_nav_group($vbphrase['rpg_monster_arena'], '<hr />');
    }
    
// *** 


Dorign 03-23-2005 07:14 PM

Sweet. :D Do you by chance know the formula for the EXP? For example, right now, my "power level" or whatever, on a setting between 1 and 5, is on the default, which is 2. So how much EXP, at power level 2, would a monster need to be "level 10." And so on?

Revan 03-23-2005 07:52 PM

PHP Code:

pow(log10($experience), $exprate); 


Dorign 03-24-2005 06:14 PM

I'm stupid and I don't know what that means.. :F

Revan 03-24-2005 06:49 PM

the logarithm of [users experience] is given the power of [experience rate].
For instance, if the user has 100 EXP, the log10() would be 2. As 10 to the power of 2 is 100.
Then, if the EXP rate is 3, the equation would be 2 to the power of 3, which is 8. Because 2*2*2=8.
Hence, an user with 100 EXP in EXP Rate 3 is at level 8.

twoseven 03-24-2005 06:54 PM

any reason why you chose base 10?

Revan 03-24-2005 07:47 PM

As good a number as any...? :P


All times are GMT. The time now is 01:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01538 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete