Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: Vanguard on April 17, 2014, 06:56:48 PM

Title: SetScriptVar on Tech Artifacts.
Post by: Vanguard on April 17, 2014, 06:56:48 PM
http://knucklecracker.com/wiki/doku.php?id=crpl:docs:setscriptvar

Quote
Tech Artifact (Added in 1.83)

Script: 0

COUNT
  The number of items the tech artifact should unlock.

What is the Variable to set the Tech Artifact to a type other than "COLLECTOR"?


"TECHARTIFACT" 61 32 CreateUnit ->id
<-id 0 "TechType" "PULSECANNON" setscriptvar
<-id 0 "COUNT" 3 setscriptvar

Places a tech Artifact and sets it count to three.

But neither "TechType" "TECHTYPE" "Tech" "TECH" "Type" nor "TYPE" do work.

It seems to be missing from the Wiki. Can someone give me a hint on EITHER what the variable name is I am looking for or how Do i get the entire properties of an object? Since this is not a CRPLcore I cannot attach a Stacktrace to it. And even then I am not sure it would show me all I need. Taking a break for now, so you lazy gits get a chance to get to work for me.  ;D
Title: Re: SetScriptVar on Tech Artifacts.
Post by: planetfall on April 17, 2014, 07:29:23 PM
It actually has its own function.

<-id "PULSECANNON" SetTechArtifactType
Title: Re: SetScriptVar on Tech Artifacts.
Post by: Vanguard on April 17, 2014, 08:19:05 PM
Ok, here“s my thought process:

:D ... :o...  :( ...  >:( ...   :-[ ...  

I need to get me a big bottle of "DeleteThisTopic". Fast. Yesterday.

Edit: Followuptopic
http://knucklecracker.com/forums/index.php?topic=16048.0
if you find the time, take a look at it. Thanks.  :)