Jump to content
  • 0

About bonus stats


Ninja

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   84
  • Joined:  08/11/12
  • Last Seen:  

Is there a way to give bonus stats even without equipping an item or having an item in your inventory?

 

like:

OnPCLoginEvent:
     bonus bStr, 100;

Though this doesn't work at all.

Edited by jezznar
Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   344
  • Joined:  10/17/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   84
  • Joined:  08/11/12
  • Last Seen:  

Worked. Thanks :)


@Stolao

is there such a thing that takes off bonuses in just bonus command?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   344
  • Joined:  10/17/12
  • Last Seen:  

Worked. Thanks :)

@Stolao

is there such a thing that takes off bonuses in just bonus command?

Explain your thought, I don't understand the question.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2370
  • Joined:  10/28/11
  • Last Seen:  


OnPCStatCalcEvent:

bonus bStr,1;

bonus bAgi,1;

bonus bDex,1;

end;

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   84
  • Joined:  08/11/12
  • Last Seen:  

@Emistrt thanks man.

@Stolao like this case

	OnPCStatCalcEvent:
		bonus bStr,1;
		bonus bAgi,1;
		bonus bDex,1;
		end;
How do you cancel it with just 1 script command? I Think

bonus bAllStat, 0
Will solve it, but how about other bonuses such as those race-exclusive ones and size modifiers?

All in all is there a command that cancels everything like "bonus bCancelAll" or something?

Edited by jezznar
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2370
  • Joined:  10/28/11
  • Last Seen:  

just set the condition under the OnPCStatCalcEvent

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   84
  • Joined:  08/11/12
  • Last Seen:  

just set the condition under the OnPCStatCalcEvent

Can you explain further? The wikilink you sent doesn't contain any information

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   344
  • Joined:  10/17/12
  • Last Seen:  

Add a condition under onpccalcevent like

If($bonusstats){

Bonus bstr,1;

}

And add an at command to toggle this on or off for the server or whatever

Depends on your exact needs

Here is an example of it in use

https://github.com/Stolao/Npc_Release/blob/master/Weapon_Mastery/WeaponMastery_v1.21.txt

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   84
  • Joined:  08/11/12
  • Last Seen:  

Add a condition under onpccalcevent like

If($bonusstats){

Bonus bstr,1;

}

And add an at command to toggle this on or off for the server or whatever

Depends on your exact needs

Here is an example of it in use

https://github.com/Stolao/Npc_Release/blob/master/Weapon_Mastery/WeaponMastery_v1.21.txt

 

Oh, alright. I got what you guys are saying. Thanks. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...