HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can you cancel in-progress research?

09-02-2005, 12:07 PM#1
marshall
Event: unit begins research
Condition: researched tech type is X
Action: cancel research

Is this possible? And if so, how?
Thus far, I can't see any way to do it.
09-02-2005, 01:28 PM#2
Zandose
I can't seem to find a way to turn off the research but I think I know another way around it.

Untitled Trigger 001
Events
Unit - A unit Begins research
Conditions
(Researched tech-type) Equal to Iron Forged Swords
Actions
Set Unit_Group = (Units currently selected by (Triggering player))
Selection - Select (Triggering unit) for (Triggering player)
Game - Force (Triggering player) to press Escape/Cancel
Selection - Select Unit_Group for (Triggering player)
09-02-2005, 07:49 PM#3
Vexorian
It would be better to order the building to cancel.

Cancel of researches, training and constructing is an orderid. You first

for example:

Quote:
Script code
constant function OrderIdCancel takes nothing returns integer
return 851796
endfunction
function IssueCancelOrder takes unit whichUnit returns boolean return IssueImmediateOrderById(whichUnit, OrderIdCancel())
endfunction

Quote:
Custom Script: call IssueCancelOrder(GetTriggerUnit())
09-03-2005, 08:43 AM#4
JBBeeza
Is there any way to Unlearn research?
09-03-2005, 09:00 AM#5
Thunder_Eye
Quote:
Originally Posted by JBBeeza
Is there any way to Unlearn research?

Nope
09-03-2005, 09:12 AM#6
JBBeeza
That sucks harder than.. well it just plain sucks.
09-03-2005, 11:08 AM#7
Thunder_Eye
Yep :P