ModGuy
Content Creator
- Joined
- Feb 17, 2011
Re: Mods
No.
Think about what a waste of a hotkey that is.
I will however look in to enabling modders to raise events using hotkeys.
EDIT:
Custom events are now possible.
Example, pressing key 40 (Down arrow) triggers event "doThing" which makes her invisible.
Expect in next release.
EDIT2:
Working on some things but I looked over Kona's dialogue code and it is wonderful.
Unfinished but very well thought out.
From a coder's view I have to complain about this:
He should have used an array like this:
And so on and used the following code to utilise it:
Code probably is bugged but it's off the top of my head so, yeah.
EDIT3:
Cough hotkey example.
Yup, that's it.
EDIT4:
Multiple custom mods now possible.
Hakkesshu said:Can you make her cough with a shortcut?
No.
Think about what a waste of a hotkey that is.
I will however look in to enabling modders to raise events using hotkeys.
EDIT:
Custom events are now possible.
Code:
if (this.parent.parent != null)
{
var main = this.parent.parent;
main.registerFunction(doThing, 40);
main.unloadMod();
}
function doThing(){
main.her.alpha = 0;
}
Example, pressing key 40 (Down arrow) triggers event "doThing" which makes her invisible.
Expect in next release.
EDIT2:
Working on some things but I looked over Kona's dialogue code and it is wonderful.
Unfinished but very well thought out.
From a coder's view I have to complain about this:
Code:
public function replaceTokens(param1:String) : String
{
param1 = param1.replace("*FINISHES*", this.finishes());
param1 = param1.replace("*BREASTSIZE*", this.breastSize());
param1 = param1.replace("*YOU*", this.partnerName());
param1 = param1.replace("*YOUR*", this.partnerPosessive());
param1 = param1.replace("*ME*", this.herName());
param1 = param1.replace("*MY*", this.herPosessive());
return param1;
}
He should have used an array like this:
Code:
var replacements:Array = new Array("*FINISHES*", finishes(), "*BREASTSIZE*", breastSize())
Code:
for(var i:int = 0; i<replacements.length;i+=2){
param1 = param1.replace(replacements(i), replacements(i+1));
}
Code probably is bugged but it's off the top of my head so, yeah.
EDIT3:
Cough hotkey example.
Code:
her.cough();
EDIT4:
Multiple custom mods now possible.