Yes! :bananarock: It Works! Thanks TID.
Two last questions before I am done.
I want my slaves to disable after they get a distance from the player.
This is what I have go so far, the CS can't parse it.
Quote:ScriptName STIPTheTradeCleanup01
Begin GameMode
if STIPTheTrade 50
if player.getdistance => 3000
disable
endif
endif
end
Secondly,
When I use the
Quote:
STIPSailor.SetActorValue Aggression 100
All the members of the same factio begin to kill each other. Do I need to set something in the factions tab to fix this?
A suggestion.
Code:
ScriptName STIPTheTradeCleanup01
Short Distance
Short DoOnce
begin gameMode
if GetStageDone Quest ID == 50 && DoOnce == 0
Set distance to Getdistance Player
endif
if distance >= 3072 && DoOnce == 0
[refVar.]Disable
Set DoOnce to 1
endif
end
I would use a higher distance value.
Quote:Originally posted by AnImpatientFan
Secondly,
When I use the
Quote:
STIPSailor.SetActorValue Aggression 100
All the members of the same factio begin to kill each other. Do I need to set something in the factions tab to fix this?
Quote:From the CS Wiki
Setting an actor's aggression to a value higher than their disposition for any other actor will cause them to attack the other actor. A setting of 5 or below means it will only initiate combat defensively. (Meaning the 'Defensive Combat' tag attached to AI Packages have a redundant function.)
It depends on their disposition.
You could modify the interfaction relations.
Thanks,
Should cap it off sometime today.
Okay I have an issue.
The quest seems to be disabled in-game.
Stages, dial, and scripts don't work.
Which is pretty weird.
if you could quickly check my file it would be much apprectiated.
-Facedesk-
:lmao:
I forgot to tick the file in the OB launcher.
No wonder my edits weren't showing up.
Works fine now.
Just have one last thing to do.
Grr.. X(
Another issue.
I hope it's my last on this claim.
For some reason this script won't complete the quest for me.
Quote:;AIF Soluthis0916TheTrade Quest End Trigger
scriptname STIPTheTradeEndTrigger
;short freed
;Begin GameMode
;set freed to STIPFreeSlaves
;if freed == 4
;setstage STIPTheTrade 50
;endif
;end
This is the line I use on the doors when they are activated to +1 the variable.
Quote:;set STIPFreeSlaves to (STIPFreeSlaves + 1)
Is the STIPFreeSlaves defined by a global?
The door uses an object script.
Please use DoOnce conditions or return to optimize your scripts. It improves the game performance.
EDIT
Code:
;AIF Soluthis0916TheTrade Quest End Trigger
scriptname STIPTheTradeEndTrigger
short freed
short Doonce
Begin GameMode
If DoOnce == 0
set freed to STIPFreeSlaves
endif
if freed == 4 && DooNce == 0
setstage STIPTheTrade 50
set DoOnce to 1
endif
end
STIPFreeSlaves is a global.