Some fun with plugins.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@9125 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2008-05-20 21:25:32 +00:00
parent 7b8ecfecfb
commit 76bcc5ae88
3 changed files with 39 additions and 1 deletions

View File

@ -4,7 +4,7 @@ width 20
height 20
msg
Created: 2008-05-10 Nicolas Weeger
Modified: 2008-05-12 Nicolas Weeger
Modified: 2008-05-20 Nicolas Weeger
endmsg
end
arch pstone_1
@ -1201,6 +1201,23 @@ arch pstone_1
x 14
y 7
end
arch conjurer
x 14
y 7
stand_still 1
arch event_say
title Python
slaying /test/cfanim.py
msg
@match *
hmmm
endmsg
end
arch event_user
title Animator
slaying /test/cfanim.conjurer
end
end
arch pstone_1
x 14
y 8

View File

@ -0,0 +1,17 @@
[Config]
name= CFAnim test
victimtype= object
victim= who
unique= no
always_delete= no
paralyzed= yes
time_representation= second
errors_allowed= yes
verbose= no
animation= Animation
invisible= no
wizard= no
[Conjurer_1]
1 say First animation script
[Conjurer_2]
1 say Second animation script

4
test/cfanim.py 100644
View File

@ -0,0 +1,4 @@
import Crossfire
#Crossfire.WhoAmI().Say('message is %s'%Crossfire.WhatIsMessage())
Crossfire.WhoAmI().Event(Crossfire.WhoAmI(), Crossfire.WhoAmI(), Crossfire.WhatIsMessage(), 0)