> For the complete documentation index, see [llms.txt](https://notebook.lazyknight.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notebook.lazyknight.com/index/exp-formula.md).

# 英雄经验值公式

（AI生成，未经检验）

魔兽争霸3中，英雄在L级时升级所需的经验值计算公式为：

```scss
f(x) = A + B + (L-1) × C + D × (英雄(L-1)级时升级所需经验值)
```

其中：

* A、B为固定因素
* C为等级因素
* D为上一个值因素
* L为当前英雄等级

这个公式在游戏的 **高级-游戏平衡性常数** 中可以找到相关参数设置，勾选 **自定义数据** 后可以查看和修改这些参数。

## 参考

* [魔兽地图 英雄EXP需求 公式](https://zhidao.baidu.com/question/207460601.html?qbpn=2_2\&tx=\&word=%E9%AD%94%E5%85%BD%E5%9C%B0%E5%9B%BE%20%E8%8B%B1%E9%9B%84EXP%E9%9C%80%E6%B1%82%20%E5%85%AC%E5%BC%8F\&fr=)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://notebook.lazyknight.com/index/exp-formula.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
