ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Can i disable verbs ?

This forum is the place to discuss the older ADRIFT versions 3.9 and 4.0.

Please refer to the ADRIFT 4 Manual for more information.

Postby roberto_m2002 » Sun Oct 10, 2010 8:36 pm

Is there any way to disable a verb and change it to something else ? (not a alias)

For example , i want the hit verb to be called "melee" , but i don't need a alias because i could use hit too then ...


I really need help for this , i want to use it in my combat system ...


Thanks .
roberto_m2002
 
Posts: 69
Joined: Sat Sep 27, 2008 12:43 pm
Location: Romania

Postby Xypher » Mon Oct 11, 2010 8:01 am

I think you can do this by taking the original statement from the game, like "Hit" then go into word pad or a similar writing program, and type "hit|melee" and then save it as a .ALR and import it into the Language Resources.

I dunno, it's a thought.

I might be so off I'm on Mars. rofl
Current Projects:
geek.EXE [progress: /HIATUS/]
UNREG. Comp. 2011: [progress: working]
User avatar
Xypher
 
Posts: 52
Joined: Fri Sep 24, 2010 4:25 am
Location: United States of America

Postby roberto_m2002 » Mon Oct 11, 2010 11:35 am

No ... it doesn't work , i am able to use hit an melee too....

Any other solution ? I really need this.
roberto_m2002
 
Posts: 69
Joined: Sat Sep 27, 2008 12:43 pm
Location: Romania

Postby Campbell » Mon Oct 11, 2010 11:39 am

In v3.9/4.0 I think you would have to create a task to override the default hit task (such as "hit *") and get it to output a standard error message, and then just write your own melee task.

In v5 you would have complete control over the verb.
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4620
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Postby roberto_m2002 » Mon Oct 11, 2010 3:25 pm

I created a hit* task but what do you mean by writing my own melee task ?


Could you explain a bit ? Thank you .
roberto_m2002
 
Posts: 69
Joined: Sat Sep 27, 2008 12:43 pm
Location: Romania

Postby Xypher » Tue Oct 12, 2010 6:09 am

Don't worry. I was speaking total nonsense anyways. XD rofl

Ignore my post.
Current Projects:
geek.EXE [progress: /HIATUS/]
UNREG. Comp. 2011: [progress: working]
User avatar
Xypher
 
Posts: 52
Joined: Fri Sep 24, 2010 4:25 am
Location: United States of America

Postby Campbell » Tue Oct 12, 2010 7:39 am

roberto_m2002 wrote:I created a hit* task but what do you mean by writing my own melee task ?

Well it depends on the context you want to use the verb. I just mean to create a new task with the command "melee" or however you want to word it.

I would point out that you should give people a hint on how to use it, as it's not a commonly known verb (certainly for me!)
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4620
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Postby roberto_m2002 » Tue Oct 12, 2010 11:33 am

But i want to act as hit , because i'l use the adrift battle system , with the speed , accuaracy etc .

I can't do a task that attack the typed character...

Is there no way to just rename it ?
roberto_m2002
 
Posts: 69
Joined: Sat Sep 27, 2008 12:43 pm
Location: Romania

Postby Campbell » Tue Oct 12, 2010 12:20 pm

Ah. In that case, no, I don't think v3/4 will do what you want, as the synonym just converts your input text into the original command, so overriding the original command will also override the synonym.
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4620
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Postby roberto_m2002 » Tue Oct 12, 2010 3:45 pm

Thanks for trying anyway ... well it looks like i have to use the original commands...
roberto_m2002
 
Posts: 69
Joined: Sat Sep 27, 2008 12:43 pm
Location: Romania


Return to ADRIFT 3.9 and 4.0

Who is online

Users browsing this forum: No registered users and 6 guests