Not sure if this is possible with ES(I was able to have a buddy do it with SM so I hope we can do it with ES) but here it goes:
So lets say I want to prep def playerhurt(eventvar)
Maybe it could work like this:
def prepplayerhurt(eventvar):
#Maybe this could use es.ServerVar
#Set the damage that is about to be dealt to half of what it was going to be
es.ServerVar(eventvar['dmghealth']).set(int(eventvar['dmghealth'])/2)
#Or maybe a new command in case es.ServerVar would not work
#Set damage to half again
es.ModEventVar('dmghealth', int(eventvar['dmghealth'])/2)
Basicly for each event you would have the option of running block before to either A. change values of the event_vars or fire commands on the users that are about to be involved with the event.
If this can be done great :) if not I under stand.(Its a big request)
~J3ff
So lets say I want to prep def playerhurt(eventvar)
Maybe it could work like this:
def prepplayerhurt(eventvar):
#Maybe this could use es.ServerVar
#Set the damage that is about to be dealt to half of what it was going to be
es.ServerVar(eventvar['dmghealth']).set(int(eventvar['dmghealth'])/2)
#Or maybe a new command in case es.ServerVar would not work
#Set damage to half again
es.ModEventVar('dmghealth', int(eventvar['dmghealth'])/2)
Basicly for each event you would have the option of running block before to either A. change values of the event_vars or fire commands on the users that are about to be involved with the event.
If this can be done great :) if not I under stand.(Its a big request)
~J3ff
Just keep holding onto that though, you may be surprised soon ;) Maybe something will come up




freddukes posted on 2008-02-11 06:58:09