Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Where did you find the alignment IDs? Are they also stored in a .rpk file?
Let's say I like to do Happiness-200: #0000012000000098 for a city if a certain quest failed.
Or let's say I like to change the terrain of a hex from
Mountains Impassable: #0000012B0000058D
to
Barrens: #00000001058000DF
Would really appreciate any response.
For changing the terrain, you can use:
position = HexWorld:GetScriptingS():GetPosition("MARKERALIAS")
HexWorld:GetScriptingS():StrategicWorldChangeOverlay(position, 0, "#00000001058000DF")
the index "0" means 0 hex fields from the target. If you set this to 1, a radius of 1 hexes will be changed (and so on). I don't know if Mountains to barrens work, some combinations won't work (e.g. water to barrens doesn't as far as I remember).
Instead of "MARKERALIAS", use the name of a marker or structure (mabye even units or stacks?).
For applying the Happiness Malus to players, you can use:
HexWorld:GetScriptingS():PlayerApplyHappinessModifier("PLAYER1", "#0000012000000098", "[Explanation Text]")
I don't know if there is a way to add this to certain cities.
Hope this helps :)
Somebody else wrote elsewhere to perhaps use PlayerCastSpell would that work on happiness modifiers as well or is it just for Spell IDs
I can't try out right now, instead of asking because the editor won't open "any" my project files. Even though they were saved properly and tested in game to be working.... Hopefully I'll be able to fix it.
I hope this helps, if not, feel free to ask more.
3.7 Quest
A Quest is a task you can give to the player, completing a quest gives the player a reward.
3.7.1 PlayerOfferQuest
void PlayerOfferQuest(playerAlias : string, questAlias : string, popupQuest: bool)
Offers a quest to the player which he can accept or decline.
<param playerAlias>:
The alias of the player to offer the quest.
<param questAlias>:
The alias of the quest to offer.
<param popupQuest>:
Determines if it is a popup quest (= true) or a to-do quest (=false).
Example:
HexWorld:GetScriptingS():PlayerOfferQuest("PLAYER1", "QUEST1", false)
3.7.2 PlayerOfferCityQuest
void PlayerOfferCityQuest(playerAlias : string, cityAlias : string, questAlias : string)
Offers a quest from a city to the player which he can accept or decline. Completing this quest will absorb the city into the player's domain.
<param playerAlias>:
The alias of the player to offer the quest to.
<param cityAlias>:
The alias of the city offering the city quest.
<param questAlias>:
The alias of the quest to offer.
Example:
HexWorld:GetScriptingS():PlayerOfferCityQuest("PLAYER1", "CITY1", "QUEST1")
3.7.3 PlayerForceQuest
void PlayerForceQuest(playerAlias : string, questAlias : string)
Force a quest to the player which is automatically accepted (cannot be declined).
<param playerAlias>:
The alias of the player to force the quest.
<param questAlias>:
The alias of the quest to force.
Example:
HexWorld:GetScriptingS():PlayerForceQuest("PLAYER1", "QUEST1")
3.7.4 PlayerOfferSubQuest
void PlayerOfferSubQuest(playerAlias : string, questHeaderAlias : string, questAlias : string, popupQuest: bool)
Offers a subquest to the player which he can accept or decline, this quest will get added to the specified quest header.
<param playerAlias>:
The alias of the player to offer the quest.
<param questHeaderAlias >:
The alias of the questheader to which the subquest will be attached (required to add subquest)
<param questAlias>:
The alias of the quest to offer.
<param popupQuest>:
Determines if it is a popup quest (= true) or a to-do quest (=false).
Example:
HexWorld:GetScriptingS():PlayerOfferSubQuest("PLAYER1", "QUEST_HEADER_1", "QUEST1", false)
3.7.5 PlayerForceSubQuest
void PlayerForceSubQuest(playerAlias : string, questHeaderAlias : string, questAlias : string)
Force a subquest to the player which is automatically accepted (cannot be declined), this quest will be added to the specified quest header.
<param playerAlias>:
The alias of the player to force the quest.
<param questHeaderAlias>:
The alias of the questheader the subquest will be attached to.
<param questAlias>:
The alias of the quest to force.
Example:
HexWorld:GetScriptingS():PlayerForceSubQuest("PLAYER1", "QUEST_HEADER1", "QUEST1")
3.7.6 PlayerCompleteQuest
void PlayerCompleteQuest(playerAlias : string, questAlias : string)
Completes a quest of the player.
<param playerAlias>:
The alias of the player to complete the quest.
<param questAlias>:
The alias of the quest to complete.
Example:
HexWorld:GetScriptingS():PlayerCompleteQuest("PLAYER1", "QUEST1")
3.7.7 PlayerFailQuest
void PlayerFailQuest(playerAlias : string, questAlias : string)
Fails a quest of the player.
<param playerAlias>:
The alias of the player to fail the quest.
<param questAlias>:
The alias of the quest to fail.
Example:
HexWorld:GetScriptingS():PlayerFailQuest("PLAYER1", "QUEST1")
3.7.8 PlayerIncreaseQuestCompletionCount
void PlayerIncreaseQuestCompletionCount(playerAlias : string, questAlias : string)
Increases the completion count of a player's quest by 1.
<param playerAlias>:
The alias of the player to increase the quest completion type of.
<param questAlias>:
The alias of the quest to increase the quest completion type of.
Example:
HexWorld:GetScriptingS():PlayerIncreaseQuestCompletionCount("PLAYER1", "QUEST1")
3.7.9 PlayerDecreaseQuestCompletionCount
void PlayerDecreaseQuestCompletionCount(playerAlias : string, questAlias : string)
Decreases the completion count of a player's quest by 1.
<param playerAlias>:
The alias of the player to decrease the quest completion type of.
<param questAlias>:
The alias of the quest to decrease the quest completion type of.
Example:
HexWorld:GetScriptingS():PlayerDecreaseQuestCompletionCount("PLAYER1", "QUEST1")
E.g.:
https://forum.paradoxplaza.com/forum/threads/developer-guide.1589879/
Thank you very much for your help. I have been looking for some information about creating quests for a long time. One of these days I’ll try to create my own test quest. If I have any questions, I will contact you. I am glad that people like you share their knowledge with simple, beginners.