Primitive 0x0021 - Find 5 Worst Motives
Finds the Sim's five worst motives and stores them in Temp 0 thru Temp 4
There is no SimPe wizard for this instruction, so the following table details the meaning of each of the operands.
Operand | Description | Operand Values |
---|---|---|
0 thru 3 | Unused | |
4 & 5 | Target | 0: Me 1: Stack Object |
6 & 7 | Motive Type | 0: All 1: Mental 2: Physical |
8 thru 15 | Unused |
// Decompiled with JetBrains decompiler // Type: pjse.BhavNameWizards.WizPrim0x0021 // Assembly: pjse.coder.plugin, Version=4.0.3349.37576, Culture=neutral, PublicKeyToken=null using SimPe.PackedFiles.Wrapper; using System; namespace pjse.BhavNameWizards { public class WizPrim0x0021 : BhavWizPrim { public WizPrim0x0021(Instruction i) : base(i) { } protected override string Operands(bool lng) { byte[] numArray = new byte[16]; ((byte[]) this.instruction.Operands).CopyTo((Array) numArray, 0); ((byte[]) this.instruction.Reserved1).CopyTo((Array) numArray, 8); return "" + this.dataOwner((byte) 8, (ushort) 0) + "..4 :=" + " " + BhavWiz.readStr(GS.BhavStr.ShortOwner, BhavWiz.ToShort(numArray[4], numArray[5])) + " " + BhavWiz.readStr(GS.BhavStr.MotiveType, BhavWiz.ToShort(numArray[6], numArray[7])); } } }