Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drax requires no beer for teaching hunting skills #27

Closed
AmProsius opened this issue Jan 4, 2021 · 1 comment · Fixed by #118
Closed

Drax requires no beer for teaching hunting skills #27

AmProsius opened this issue Jan 4, 2021 · 1 comment · Fixed by #118
Labels
compatibility: difficult This issue is difficult to make compatible. impl: replace assign int This issue requires replacing integer assignments in the scripts. impl: replace func call This issue requires replacing function calls in the scripts. opinionated This issue or this issues' fix is opinionated and not predefined by the scripts. provided fix This issue has a fix provided in the comments. type: session fix The fix for this issues is persistent across a session.
Milestone

Comments

@AmProsius
Copy link
Owner

Drax teaches hunting skills no matter if the player gives him a beer or not.

@AmProsius AmProsius added this to To Do in v1.0.0 via automation Jan 4, 2021
@catalinstoian
Copy link

catalinstoian commented Jan 16, 2021

FUNC VOID Org_819_Drax_Scavenger_Info()
{
if (Npc_HasItems(other,itfobeer)>0)
{
B_GiveInvItems (other, self, itfobeer,1);
AI_Output (other, self,"Org_819_Drax_Scavenger_15_00"); //Here you are, take a beer and tell me about hunting.
if ( C_BodystateContains(self, BS_SIT) )
{
AI_StandUp (self);
AI_TurnToNpc (self, hero);
};
AI_UseItem (self, ItFobeer);
AI_Output (self, other,"Org_819_Drax_Scavenger_06_01"); //Scavengers, that's what we call the big birds, should be attacked one after the other. It's easy to lure single scavengers from the pack.
AI_Output (self, other,"Org_819_Drax_Scavenger_06_02"); //If you come too close, they'll become irritated. After a while they'll storm in your direction. At this point, you should be waiting for them with a raised weapon.
AI_Output (self, other,"Org_819_Drax_Scavenger_06_03"); //If you manage to strike the beast before it hits you, you have to keep fighting, then you'll be able to defeat the creature without being hurt yourself.
AI_Output (self, other,"Org_819_Drax_Scavenger_06_04"); //If it hits YOU first - well - just don't let them.
drax_bierbekommen = TRUE;
}
else
{
AI_Output (other, self,"Org_819_Drax_Scavenger_KEIN_BIER_15_00"); //I don't have any beer.
AI_Output (self, other,"Org_819_Drax_Scavenger_KEIN_BIER_06_01"); //Then go and fetch some. That'll be the best free hint you'll get in a long time. And as you're going anyway, bring some ore with you as well!
AI_Output (self, other,"Org_819_Drax_Scavenger_KEIN_BIER_06_02"); //I can give you some information about animals, but it'll cost you!
};
drax_Lehrer_frei = TRUE;
Log_CreateTopic (GE_TeacherOW, LOG_NOTE);
B_LogEntry (GE_TeacherOW,"The rogue Drax offered to teach me about the gutting of animals if I can pay his prices. He hunts on the way from the trading square to the Old Camp.");
};

changed to

FUNC VOID  Org_819_Drax_Scavenger_Info()
{
	if (Npc_HasItems(other,itfobeer)>=1)
	{
		B_GiveInvItems	(other, self, itfobeer,1);
	
		AI_Output	(other, self,"Org_819_Drax_Scavenger_15_00"); //Here you are, take a beer and tell me about hunting.
		if ( C_BodystateContains(self, BS_SIT) )
		{
			AI_StandUp		(self);
			AI_TurnToNpc	(self, hero);
		};
		AI_UseItem	(self,	ItFobeer);
		AI_Output	(self, other,"Org_819_Drax_Scavenger_06_01"); //Scavengers, that's what we call the big birds, should be attacked one after the other. It's easy to lure single scavengers from the pack.
		AI_Output	(self, other,"Org_819_Drax_Scavenger_06_02"); //If you come too close, they'll become irritated. After a while they'll storm in your direction. At this point, you should be waiting for them with a raised weapon.
		AI_Output	(self, other,"Org_819_Drax_Scavenger_06_03"); //If you manage to strike the beast before it hits you, you have to keep fighting, then you'll be able to defeat the creature without being hurt yourself.
		AI_Output	(self, other,"Org_819_Drax_Scavenger_06_04"); //If it hits YOU first - well - just don't let them.
		drax_bierbekommen = TRUE;
		drax_Lehrer_frei = TRUE;
		Log_CreateTopic	(GE_TeacherOW, LOG_NOTE);
		B_LogEntry	(GE_TeacherOW,"The rogue Drax offered to teach me about the gutting of animals if I can pay his prices. He hunts on the way from the trading square to the Old Camp.");
	}
	else
	{
		AI_Output (other, self,"Org_819_Drax_Scavenger_KEIN_BIER_15_00"); //I don't have any beer.
		AI_Output (self, other,"Org_819_Drax_Scavenger_KEIN_BIER_06_01"); //Then go and fetch some. That'll be the best free hint you'll get in a long time. And as you're going anyway, bring some ore with you as well!
		AI_Output (self, other,"Org_819_Drax_Scavenger_KEIN_BIER_06_02"); //I can give you some information about animals, but it'll cost you!
	};	
};

@szapp szapp added type: session fix The fix for this issues is persistent across a session. compatibility: difficult This issue is difficult to make compatible. labels Jan 24, 2021
@AmProsius AmProsius added this to the v1.0.0 milestone Feb 9, 2021
@AmProsius AmProsius added the provided fix This issue has a fix provided in the comments. label Feb 11, 2021
@szapp szapp moved this from To Do to In Progress in v1.0.0 Feb 13, 2021
v1.0.0 automation moved this from In Progress to Done Feb 13, 2021
AmProsius added a commit that referenced this issue Feb 13, 2021
#27: Update conditions for Drax to teach
@AmProsius AmProsius added the opinionated This issue or this issues' fix is opinionated and not predefined by the scripts. label Feb 18, 2021
@szapp szapp added this to Dialog: Info function in Fix templates Mar 17, 2021
@szapp szapp added impl: replace assign int This issue requires replacing integer assignments in the scripts. impl: replace func call This issue requires replacing function calls in the scripts. labels Mar 17, 2021
AmProsius added a commit that referenced this issue Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility: difficult This issue is difficult to make compatible. impl: replace assign int This issue requires replacing integer assignments in the scripts. impl: replace func call This issue requires replacing function calls in the scripts. opinionated This issue or this issues' fix is opinionated and not predefined by the scripts. provided fix This issue has a fix provided in the comments. type: session fix The fix for this issues is persistent across a session.
Projects
Fix templates
Modify dialog function
v1.0.0
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants