DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • April 25, 2018, 01:02:18 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: buff tutorial/explanation?  (Read 2371 times)
0 Members and 1 Guest are viewing this topic.
GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« on: July 08, 2005, 06:24:20 PM »

I'm interested in some buff making and I'd like to read up on exactly what the christ I'm doing
Logged



Castle Siege - a work in progress
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #1 on: July 08, 2005, 06:26:36 PM »

Code:
if (isset($session['bufflist']['transmute'])) {
          $session['bufflist']['transmute']['rounds'] += get_module_setting("transmuteturns");
} else {
      apply_buff('transmute',
         array("name"=>"`6Transmutation Sickness",
         "rounds"=>get_module_setting("transmuteturns"),
         "wearoff"=>"You stop puking your guts up.  Literally.",
         "atkmod"=>get_module_setting("atkmod"),
         "defmod"=>get_module_setting("defmod"),
         "roundmsg"=>"Bits of skin and bone reshape themselves like wax.",
         "survivenewday"=>get_module_setting("survive"),
         "newdaymessage"=>"`6Due to the effects of the Transmutation Potion, you still feel `2ill`6.",
          "schema"=>"module-cedrikspotions"
        )
       );
     }

Best thing to do, is look at existing code.
« Last Edit: July 08, 2005, 06:28:10 PM by Sichae » Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« Reply #2 on: July 08, 2005, 06:27:51 PM »

are atkmod and defmod percentages?  I've seen them listed as 0.95 in a negative buff, if I wanted to give .1 more attack, would I write that as "1.10"?
Logged



Castle Siege - a work in progress
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #3 on: July 08, 2005, 06:28:36 PM »

They are multipliers.

So, if you put in 1.1, it will be 110%. Smiley
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« Reply #4 on: July 08, 2005, 06:33:23 PM »

jawsome that's what I meant (it's my birthday so I'm laying into the sauce pretty heavy heh)
Logged



Castle Siege - a work in progress
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
34 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search