Author Topic: Making a Resident Evil RPG  (Read 768 times)

0 Members and 1 Guest are viewing this topic.

Offline BingBong

  • Major(1)
  • Posts: 12
Making a Resident Evil RPG
« on: December 19, 2007, 05:16:26 pm »
Yo, i was wondering how i would implement skills in my map like how to learn them as such (im using avaraxes ep script) i have when i get to certain levels it displays a message in the console to the player

i was wondering if this would work (im not very good at pascal)

Code: [Select]
case GetPiece(Text,' ',0) of
'/learn crit': begin
If soldier[ID].level = 5 Then

i dont know what to do after this plz help me

Offline poutch

  • Major(1)
  • Posts: 34
Re: Making a Resident Evil RPG
« Reply #1 on: December 19, 2007, 05:36:39 pm »
This won't work, GetPiece(Text,' ',0) takes the first word of the command, ie, it would be '/learn' and not '/learn crit'

You should check enesce help about scripting, there is too much stuff to talk about.
http://enesce.com/help/
www.pleez.fr .... coming soon

Offline BingBong

  • Major(1)
  • Posts: 12
Re: Making a Resident Evil RPG
« Reply #2 on: December 19, 2007, 05:54:06 pm »
K ill go there and just wondering think this code would for for holy medkit



Code: [Select]
  if regExpMatch('^/(commands|s1)$', Text) and soldier[ID].level = 5 and holymedkit[ID] = true then
    begin
      SpawnObject(GetPlayerStat(ID,'x')+20,GetPlayerStat(ID,'y')-20,16);
      WriteConsole(ID,'Holy Medkit Activated!',RGB(128,128,128));
    end;

and i would like to know how to add a timer into it so u cant just keep spamming /s1 and have inf health