MyBB-Plugins Forums

Full Version: MyLife - My ideas
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Ok spent an hour making up ideas & wrote it on paper here it is, tell me what's good / not please Smile.

HP --> Smile --> Happiness ( higher = best ) ( max = 200 )
HEL --> Healthiness ( higher = best ) ( max = 100 )

Each 24 hours:
Healthiness - X
(X = mybb setting. )
Healthiness = 0? Die!

Each 12 hours
HP = HP - (100-healthiness)
HP<1? DIE!! ( of sadness/suicide Tongue )


Items:
HP
Laptop
Car
Party
House
Friends
Pets
,....

HEL
Hamburger
fries
chips
medical checkup
bath
Toilet
Sleep
, ...



Fines
Pay €X when dead
==> Setting A in ACP: nobody will get that money
==> Setting B in ACP: will go to a random member of specified group ( E.G.: VIP ) -- probably gold feature.
I will make an item in plaza that will do this for you. ( like MyRPG's revive item, that will be the default way to revive with MyLife )

Special items
(probably gold features)
- Make someone sad ( aka pester ) ( happiness - X )
- Imprison somebody without food ( healthiness - X )


Those were my ideas..

Tell me about it!
Should you only be able to die of happiness/healthiness or both?
I think both!

- Shadows.
There shouldn't be any HP thing, there should be a Mood instead. e.g. If you buy a laptop, your mood changes to happy.
What does HEL mean?
HP = happiness
HEL = healthiness.
it's not like lives, it's just an abbreviation..
Oh I thought it was lives lol, then I wouldn't use any abbreviations Tongue
oh ok Tongue
it was just easier for me to use that in the scheme lol Tongue
- Shadows.
LOL you would have to buy friends LMAO
yah lol didn't add that item xP.
Will maybe add afterwards as gold edition item..

@ Nervo please help me!!
for postbit
in: inc/plugins/myplaza/mylife.php
PHP Code:
##############POSTBIT
function mylife_postbit($post)
{
    global 
$mybb$templates$lang;
    if(!
$post['uid']) return;
    
    
myplaza_langload('mylife');
    
    
$post['mylife_dead'] = intval($post['mylife_dead']);
    
$post['mylife_hp'] = intval($post['mylife_hp']);
    
$post['mylife_hel'] = intval($post['mylife_hel']);
    if(
$post['mylife_dead'] == 1)
    {
    
$mylife_stats "This user is <b><span style='color:red;'>dead!</span></b>";
    }
    else
    {
        
$mylife_stats "<hr>{$lang->mylife_hp}<b>{$post['mylife_hp']}</b>/200";
        
$mylife_stats .= "<br />{$lang->mylife_pb_hel}<b>{$post['mylife_hel']}</b>/100";
    }
    
    eval(
'$post[\'mylife_postbit\'] = "'.$templates->get('postbit_mylife').'";');
}

#######################################

########### TEMPLATES #################
    
$new_templates['postbit_mylife'] = '
    {$mylife_stats}<br />
    '
;
//didn't add the whole code to add templates just showing you the interesting thing.

    
my_find_replace_templatesets('postbit''<a href="{$mybb->settings[\'bburl\']}/plaza.php">{$lang->money}</a>''{$mylife_stats}<a href="{$mybb->settings[\'bburl\']}/plaza.php">{$lang->money}</a>'false'str_replace');
    
my_find_replace_templatesets('postbit_classic''<a href="{$mybb->settings[\'bburl\']}/plaza.php">{$lang->money}</a>''{$post[\'mylife_postbit\']}<a href="{$mybb->settings[\'bburl\']}/plaza.php">{$lang->money}</a>'false'str_replace'); 

but the problem is that it doesn't show the postbit_mylife template in the postbit =(..
I hope you can help me!

Thank you,
- Shadows.

the edits are successful but yah, it displays nothing lol =(
This is a cool module! Can't wait! Wink
Thanks CO_ol Smile ..
Still waiting on PN to be able to continue though Sad.
- Shadows.
I like it, but a hamburger and fries aren't the healthiest of foods. How about making them increase HP and decrease HEL? ALso, I prefer Mood instead of HP and HEALTH instead of HEL. And, no one dies with sadness Tongue But it would be a kool idea that if ones happyness is low enough, they can attack themselves in the MyRPG module?
Pages: 1 2