Where would one go to learn HL2 Coding? I Googled it and got lots of random useless HL2 junk.
-Hell Raiser
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.
void main() { object oItem = GetItemActivated(); object oPC=GetItemActivator(); if (GetTag(oItem)=="FakeSpellRod") { int i,nClass; int nCanCast=0; for (i=1; i<=3; i++) { nClass=GetClassByPosition(i,oPC); if (nClass==CLASS_TYPE_SORCERER || nClass==CLASS_TYPE_WIZARD || nClass==CLASS_TYPE_BARD || nClass==CLASS_TYPE_CLERIC || nClass==CLASS_TYPE_DRUID) { nCanCast=1; break; } } if (nCanCast==1) AssignCommand(oPC,ActionStartConversation(oPC,"spell_rod",TRUE,FALSE)); else AssignCommand(oPC,ActionSpeakString("You must be a spellcaster to use this!")); }