Decision Modding - Help Needed

For specific technical issues and questions.

Decision Modding - Help Needed

PostPosted by maky55 » Mon Jul 03, 2017 05:04

Hello all.

So I'm very new to modding, I've made a single simple event yesterday that gave the main character money and traits.
I'm having trouble making a decision. It's supposed to be an intrigue option (such as the hold a tourny/feast options) that starts an event for the user to search for a Valyrian steel sword if they have the ambition to get one. This is the code i have currently:

find_sword.txt (decision)
Spoiler: show
Code: Select all
descisions = {
   find_steel_sword = {
      is_high_prio = yes            
         potential = {
         ai = no
      
         has_ambition = obj_obtain_valyrian_steel
         NOT = { trait = nightswatch }
         NOT = { trait = kingsguard }
         NOT = { culture_group = winter_group }   
         NOT = { culture_group = unoccupied_group }
         NOT = { culture = dothraki }
      }
      allow = {
         age = 16            
         prisoner = no
         NOT = { trait = incapable }
            
      }
      effect = {
         character_event = { id = 3101 }
      }
      revoke_allowed = {
         always = no
      }
      
      ai_will_do = {
         factor = 0
      }
   }
}


steel_sword (event):

Spoiler: show
Code: Select all
character_event = {
   id = 3101
   desc = EVTDESC3101
   picture = GFX_evt_battle
   border = GFX_event_normal_frame_intrigue

   only_playable = yes
   prisoner = no
   
  option = {
    name = EVTOPTA3101   
   random = {
         chance = 25
         add_trait = valyrian_steel
         }
   random = {
         chance = 75
         add_trait = stressed
         }
   
       
    }
   
   option = {
   name = EVTOPTB3101
   prestige = -20
 
  }


finding_swords.csv (localisation)

Spoiler: show
Code: Select all
#CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x
find_steel_sword;Look for your own Valyrian sword;;;;;;;;;;;;;x
EVTDESC3101;You've decided to try your look and venture forth to find your very own Valyrian steal sword!;;;;;;;;;;;;;x
EVTOPTA3101;I'll make my house proud!;;;;;;;;;;;;;x
EVTOPTB3101;Maybe I'll try again later...;;;;;;;;;;;;;x


The problem is it doesn't show up as an intrigue option. If all the requirements are met then the event fires but it's not an option in the intrigue menu.

Can anyone tell me what I'm doing wrong? The event works as intended, but the intrigue option isn't showing up, instead the event fires automatically. I'm presuming it's a problem with the decision code.

Thanks.
maky55
 
Posts: 4
Joined: Wed Jul 20, 2016 21:49

Re: Decision Modding - Help Needed

PostPosted by maky55 » Mon Jul 03, 2017 09:02

I fixed the issue myself.

1. I misspelt 'decision' as 'descision', I was really tired when creating this! I tested the mod and it still didn't work.
2. I named the ambition wrong, I put 'obj_obtain_valyrian_steel', which was incorrect, it should've been 'obj_obtain_valyrian_sword'. This fixed the issue :D.
maky55
 
Posts: 4
Joined: Wed Jul 20, 2016 21:49


Return to Technical Discussion

Who is online

Users browsing this forum: No registered users and 0 guests