Difference between revisions of "AddPerk"
Jump to navigation
Jump to search
m
→Notes: missed some whitespace
imported>DewiMorgan (→Notes: Example codearound for the bug.) |
imported>DewiMorgan m (→Notes: missed some whitespace) |
||
Line 17: | Line 17: | ||
One way is to add a zero weight token object to the player: first, an item called, eg "ExampleToken", with an "item" type script like the following is created: | One way is to add a zero weight token object to the player: first, an item called, eg "ExampleToken", with an "item" type script like the following is created: | ||
ScriptName ExampleTokenScript | ScriptName ExampleTokenScript | ||
Begin OnAdd player | Begin OnAdd player | ||
player.AddPerk ExamplePerk | player.AddPerk ExamplePerk | ||
Line 26: | Line 26: | ||
Then a quest called, eg "ExampleQuest" is created and set to "start game enabled", with a "quest" type script: | Then a quest called, eg "ExampleQuest" is created and set to "start game enabled", with a "quest" type script: | ||
ScriptName ExampleQuestScript | ScriptName ExampleQuestScript | ||
Begin GameMode | Begin GameMode | ||
player.addItem ExampleToken 1 | player.addItem ExampleToken 1 |