Forums
Games
Cyberpunk 2077 Thronebreaker: The Witcher Tales GWENT®: The Witcher Card Game The Witcher 3: Wild Hunt The Witcher 2: Assassins of Kings The Witcher The Witcher Adventure Game
Jobs Store Support Log in Register
Forums - CD PROJEKT RED
Menu
Forums - CD PROJEKT RED
  • Hot Topics
  • NEWS
  • GENERAL
    THE WITCHER ADVENTURE GAME
  • STORY
    THE WITCHER THE WITCHER 2 THE WITCHER 3 THE WITCHER TALES
  • GAMEPLAY
    THE WITCHER THE WITCHER 2 THE WITCHER 3 MODS (THE WITCHER) MODS (THE WITCHER 2) MODS (THE WITCHER 3)
  • TECHNICAL
    THE WITCHER THE WITCHER 2 (PC) THE WITCHER 2 (XBOX) THE WITCHER 3 (PC) THE WITCHER 3 (PLAYSTATION) THE WITCHER 3 (XBOX) THE WITCHER 3 (SWITCH)
  • COMMUNITY
    FAN ART (THE WITCHER UNIVERSE) FAN ART (CYBERPUNK UNIVERSE) OTHER GAMES
  • RED Tracker
    The Witcher Series Cyberpunk GWENT
THE WITCHER
THE WITCHER 2
THE WITCHER 3
MODS (THE WITCHER)
MODS (THE WITCHER 2)
MODS (THE WITCHER 3)
Menu

Register

[TW2] Scripting capabilities

+
B

Borgut1337

Forum regular
#1
Nov 2, 2013
[TW2] Scripting capabilities

I have not done any modding for The Witcher 2 yet (I have done some modding in Skyrim though), and have not yet had time to download the REDkit and look around it myself. Before I do so though, I'm wondering where I can find some more information on what's possible with scripting in The Witcher 2.

Is there a page anywhere with detailed information on the scripting language? I'm looking for information like:
- What is the performance like? Can I expect more than 20 lines of code to run without a noticeable delay in the script occuring for the player?
- What is possible to script? Are there loops/arrays (I'd very much hope they'd be there, but they weren't available in Oblivion scripting!). Can I create entirely new classes and data structures and script/program in an Object Oriented way?

I hope this is the right place to ask :) Already tried the witcher nexus modding forums but haven't had a single reply or even topic view in days.
 
S

Sam44

Senior user
#2
Nov 2, 2013
Hey, there is a category in the REDkit wiki about scripting.
You might wanna check that out:
http://wiki.cdprojektred.com/redkit/tiki-browse_categories.php?parentId=6&deep=off&type=
 
B

Borgut1337

Forum regular
#3
Nov 2, 2013
Yes I have looked there... unfortunately those pages don't have the information I'm looking for. Besides, the entire wiki seems a bit empty to me. Lots of interesting headers everywhere for ''planned'' content but the content itself hasn't actually been written yet :(
 
S

Sam44

Senior user
#4
Nov 2, 2013
Yes the tutorials often explain only the very basics and you have to find a lot of stuff on your own. Try sticking around in the REDkit chat (Its broken atm dunno why :D), maybe some people there could help you out.
 
B

blameless75

Rookie
#5
Nov 3, 2013
Just open REDkit and look through the code - there you should find what you're looking for.

Also checkout the (partial) manual, it has some content about scripting:
http://static.cdprojektred.com/redkit/files/REDkit%20Editor%20Basic%20Manual.docx
 
U

username_2079449

Senior user
#6
Nov 14, 2013
Borgut1337 said:
- What is possible to script? Are there loops/arrays (I'd very much hope they'd be there, but they weren't available in Oblivion scripting!). Can I create entirely new classes and data structures and script/program in an Object Oriented way?
Click to expand...
Everything is possible but there's not very much information. Best way to start is to expand/ modify existing scripts (see *.ws files).

You can write your own functions and extend classes.
But to my experience this kind of W2 scripting was not intended to be used by REDkit users.

I guess that 80 to 90 % of the W2 "scripting" is done graphically (flow chart like).

Have a look at the w2quest and w2phase files and you'll understand what I mean.
CQuestGraphBlocks being the main components.

Loops are possible.

There is 2d Array editor which uses csv files.

btw my preferred w2phase file is q105_tentadrake. Klick at the triss teleport block to see the underlying level.

This all is rather complex.

Best way to start with REDkit and scripting will be to do the tutorials imho. (see http://forums.cdproj...Tips-amp-Tricks)
 
Share:
Facebook Twitter Reddit Pinterest Tumblr WhatsApp Email Link
  • English
    English Polski (Polish) Deutsch (German) Русский (Russian) Français (French) Português brasileiro (Brazilian Portuguese) Italiano (Italian) 日本語 (Japanese) Español (Spanish)

STAY CONNECTED

Facebook Twitter YouTube
CDProjekt RED Mature 17+
  • Contact administration
  • User agreement
  • Privacy policy
  • Cookie policy
  • Press Center
© 2018 CD PROJEKT S.A. ALL RIGHTS RESERVED

The Witcher® is a trademark of CD PROJEKT S. A. The Witcher game © CD PROJEKT S. A. All rights reserved. The Witcher game is based on the prose of Andrzej Sapkowski. All other copyrights and trademarks are the property of their respective owners.

Forum software by XenForo® © 2010-2020 XenForo Ltd.