DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • November 20, 2018, 05:29:12 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: dumb question  (Read 2875 times)
0 Members and 1 Guest are viewing this topic.
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« on: February 04, 2005, 11:22:52 PM »

Extremely dumb question and I think its due to the fact I have been up almost 24 straight hours..

But using the buffdragon hook...

would an example string in my mod be?:
Code:
$badguy = array("creaturename"=>"`@The Green Dragon`0","creaturelevel"=>18,"creatureweapon"=>
"Great Flaming Maw","creatureattack"=>45,"creaturedefense"=>25,"creaturehealth"=>300, "diddamage"=>0, 'type'=>'dragon');

Now looking at the code I was thinking...just use:
array("yadda,yadda,whatever");

but I'm puzzled...Cant get it to work.

Any help would be appreciated.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #1 on: February 04, 2005, 11:48:16 PM »

Code:
function dragonpowerup_dohook($hookname,$args){
   global $session;
   if ($hookname == "buffdragon" && $session['user']['dragonkills'] > 1) {
      $args[creaturehealth] += ($session[user][dragonkills] - 1) * (int)get_module_setting("dragonhpperdk");
   }
   return $args;
}

That's how I tweak the dragon a bit... Wink

the badguy-array is pased to your module as "$args". So you'll have to change its values and then return the $args.
Logged

Running for more than three years now:
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #2 on: February 04, 2005, 11:50:20 PM »

Excellent

Thanks Smiley
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #3 on: February 04, 2005, 11:59:31 PM »

Always glad if I could help... Smiley

But be cautious with that... One player reported a dragon with 3884 HP!!! She was quite shocked (but survived...)

Players tend to get nervous, if they are not able to kill the dragon with one hit! Smiley
Logged

Running for more than three years now:
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5479



View Profile WWW
« Reply #4 on: February 05, 2005, 12:04:50 AM »

...and having the players nervous is bad how?   Wink

Logged

Play the latest beta version here on DragonPrime
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #5 on: February 05, 2005, 12:22:41 AM »

Almost as hard as Brendon... Tongue

Petitions over Petitions saying

"Wahhh, I just came from Yoresh, beat up some nasty forest creatures, didn't heal myself and have no buffs... Why did the dragon beat me... how can that be!!!"

*g*

Effectively doubling the dragon's hitpoints every 5 DKs makes life much more fun... I have no players anymore, which battle through the world with 1 dragon per game day (was possible due to resurrection and the ability to buy favor by gems)
Logged

Running for more than three years now:
MightyE
Global Moderator
Captain of the Guard
*****
Offline Offline

Posts: 104


Game Creator MIGHTYE


View Profile
« Reply #6 on: February 05, 2005, 04:45:22 AM »

...and having the players nervous is bad how?   Wink
I like Talisman's style.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
63 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search