Skip to content

Algumas funções para ajudar com o scripting de Custom Npc 1.7.10 interagindo com o mod Dragon Block C / Some functions to help with Custom Npc 1.7.10 scripting interacting with the Dragon Block C mod

License

Notifications You must be signed in to change notification settings

PewDizinho/CustomNpcScriptingWithDbcMod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

Custom Npc Scripting With Dbc Mod

  • Algumas funções para ajudar com o scripting de Custom Npc 1.7.10 interagindo com o mod Dragon Block C
  • Some functions to help with Custom Npc 1.7.10 scripting interacting with the Dragon Block C mod

Exemplos

  • Interact Hook
  npc.say("Hey " + player.getName() + " sua vida atual é de: " + getDbcHealth(player));
  • Damaged Hook
if(event.getSource().typeOf(1)){
  npc.say("Hey " + event.getSource().getName() + " sua CON atual é de: " + getDbcAttributes(event.getSource()).con); 
}
  • Attack Hook
  if(npc.getAttackTarget().typeOf(1)){
  setDbcAttributes(npc.getAttackTarget()).con(20);
  npc.say("Sua nova con é de 20!");
}

Usando juntos

  • Interact hook
  setDbcAttributes(player).str(getDbcAttributes(player).str + 5);

Links

About

Algumas funções para ajudar com o scripting de Custom Npc 1.7.10 interagindo com o mod Dragon Block C / Some functions to help with Custom Npc 1.7.10 scripting interacting with the Dragon Block C mod

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published