Aller au contenu

Photo

How do you make a custom runscript command script?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Cabola

Cabola
  • Members
  • 8 messages
How do you make a custom runscript command script? Do anyone know of any tutorial sites that contain info on how to create them by using already existing runscript command. Example if I wanted to create a shortend command for "runscript dbg_setattrib attribute_points value" making it use forexample "runscript giveattrib value" instead?

That isn't really the commands I'm looking for, but once I find them I imagen it'd be used in a similar way. I'm trying to make a console command so you can change the attribute, special, skill and talent/spell points that can be used.

Modifié par Cabola, 19 mars 2010 - 03:58 .


#2
Phaenan

Phaenan
  • Members
  • 315 messages
The console command is stored in the module's RUNSCRIPT_VAR local var, so one can grab parameters from that easily. You can have a look at the OC console scripts (under "debug" or something in the toolset palette) to see how Bioware guys did. :o

#3
Craig Graff

Craig Graff
  • Members
  • 608 messages
If you are trying to reroute a debug script to call another one, use DEBUG_ConsoleCommand, with the arguments "runscript (insert script name here) (insert arguments here)".

#4
Cabola

Cabola
  • Members
  • 8 messages
Thank you both for your replies :)